Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Player/doc: Difference between revisions

Template page
No edit summary
(update params)
Line 10: Line 10:
"UUID": {
"UUID": {
"label": "UUID",
"label": "UUID",
"description": "The UUID of the player",
"description": "The UUID of the player. Required to display the correct image",
"example": "bb317801-c2c4-4e18-8e26-ee21e03f4c69",
"example": "bb317801-c2c4-4e18-8e26-ee21e03f4c69",
"type": "string",
"type": "string",
Line 24: Line 24:
"Rank": {
"Rank": {
"label": "Rank",
"label": "Rank",
"description": "The rank of the user",
"description": "The rank of the user in-game",
"example": "Owner",
"example": "Owner",
"type": "string",
"type": "string",
Line 35: Line 35:
"type": "wiki-user-name"
"type": "wiki-user-name"
},
},
"Staff": {
"group": {
"label": "Staff",
"label": "Group",
"description": "Whether the user is staff or not. Accepts true or false as inputs and is used to generate the correct background.",
"description": "Whether the user is staff or not. Accepts \"staff\" or \"player\" as inputs and is used to generate the correct background.",
"example": "staff",
"type": "boolean",
"suggested": true
},
"ShowProfile": {
"label": "Show Profile",
"description": "Controls whether or not to show a link to the user's site profile. Overrides all other options. Accepts true or false as inputs.",
"example": "true",
"example": "true",
"type": "boolean",
"type": "boolean",
Line 44: Line 51:
},
},
"description": "Displays a card of the given staff member with an auto-generated image and profile link.",
"description": "Displays a card of the given staff member with an auto-generated image and profile link.",
"format": "block"
"format": "block",
"paramOrder": [
"Name",
"UUID",
"group",
"Rank",
"Profile",
"ShowProfile"
]
}
}
</templatedata>
</templatedata>

Revision as of 00:10, 30 April 2023

{{Template:Player}} is a template for displaying a graphical card that represents a member of the server. Given a name, UUID, and rank, it will generate a card with the appropriate image and profile link.


Displays a card of the given staff member with an auto-generated image and profile link.

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
NameName

The Minecraft name of the user

Example
BakiDance
Stringrequired
UUIDUUID

The UUID of the player. Required to display the correct image

Example
bb317801-c2c4-4e18-8e26-ee21e03f4c69
Stringrequired
Groupgroup

Whether the user is staff or not. Accepts "staff" or "player" as inputs and is used to generate the correct background.

Example
staff
Booleansuggested
RankRank

The rank of the user in-game

Example
Owner
Stringrequired
Profile LinkProfile

The username of the user on the site. This field is not required if the "User" parameter matches their username on the site.

Example
BakiDance
Useroptional
Show ProfileShowProfile

Controls whether or not to show a link to the user's site profile. Overrides all other options. Accepts true or false as inputs.

Example
true
Booleansuggested