Difference between revisions of "Template:Infobox player"

From WORST WIKI EVER
Jump to navigationJump to search
(Added documentation)
("currently active" -> "status", replaced parameters thingy with templatedata)
 
Line 29: Line 29:
 
<tr>
 
<tr>
 
<th colspan="2" class="infobox-separator">Personal details</th>
 
<th colspan="2" class="infobox-separator">Personal details</th>
 
</tr>
 
<tr>
 
<th scope="row" class="infobox-label">Status</th>
 
<td class="infobox-data">{{{status|Unknown}}}</td>
 
</tr>
 
</tr>
 
<tr>
 
<tr>
Line 58: Line 62:
 
|
 
|
 
}}
 
}}
<tr>
 
<th scope="row" class="infobox-label">Currently active</th>
 
<td class="infobox-data">{{{active|Unknown}}}</td>
 
</tr>
 
 
</table>
 
</table>
 
</onlyinclude>
 
</onlyinclude>
Line 67: Line 67:
 
<nowiki>{{Infobox player}}</nowiki> is template for creating infoboxes of players.
 
<nowiki>{{Infobox player}}</nowiki> is template for creating infoboxes of players.
   
  +
<templatedata>
== Parameters ==
 
  +
{
* '''title''': Username (optional, in case if it wasn't provided will be replaced with page name)
 
  +
"description": "template for creating infoboxes of players",
* '''image''': Name of PFP image file
 
  +
"params": {
* '''imagealt''': In case if tabber was used for images, use this instead '''image'''
 
  +
"title": {
* '''usergroup''': Player's usergroup (owner, admin, sage, regular, player)
 
  +
"label": "Username",
* '''joindate''': The date of first appearance on server
 
  +
"description": "Player's username",
* '''aliases''': Player aliases (yea)
 
  +
"example": "El Chapo",
* '''associations''': Associations the player is member of
 
  +
"type": "string",
* '''birthday''': Birthday date. Always use '''Month D''' format
 
  +
"required": true
* '''active''': Is player currently active?
 
  +
},
  +
"image": {
  +
"label": "Avatar",
  +
"description": "Usually used for player's avatar",
  +
"type": "string"
  +
},
  +
"imagealt": {
  +
"label": "Multiple Images",
  +
"description": "In the case if you use tabber for multiple images",
  +
"type": "string"
  +
},
  +
"usergroup": {
  +
"label": "Usergroup",
  +
"description": "Player's rank on server",
  +
"type": "string",
  +
"suggested": true
  +
},
  +
"status": {
  +
"label": "Status",
  +
"description": "Current player status",
  +
"type": "string",
  +
"required": true
  +
},
  +
"joindate": {
  +
"label": "First join date",
  +
"description": "basically when the player first joined on server",
  +
"type": "date",
  +
"required": true
  +
},
  +
"aliases": {
  +
"label": "Aliases",
  +
"description": "Other usernames that player known by",
  +
"type": "string"
  +
},
  +
"associations": {
  +
"label": "Associations",
  +
"description": "List of associations player belong to",
  +
"type": "string"
  +
},
  +
"birthday": {
  +
"label": "Birthday",
  +
"type": "date",
  +
"suggested": true
  +
}
  +
}
  +
}
  +
</templatedata>

Latest revision as of 18:16, 21 April 2025

Infobox player
Personal details
Status Unknown
Joined Unknown

Usage

{{Infobox player}} is template for creating infoboxes of players.

template for creating infoboxes of players

Template parameters

ParameterDescriptionTypeStatus
Usernametitle

Player's username

Example
El Chapo
Stringrequired
Avatarimage

Usually used for player's avatar

Stringoptional
Multiple Imagesimagealt

In the case if you use tabber for multiple images

Stringoptional
Usergroupusergroup

Player's rank on server

Stringsuggested
Statusstatus

Current player status

Stringrequired
First join datejoindate

basically when the player first joined on server

Daterequired
Aliasesaliases

Other usernames that player known by

Stringoptional
Associationsassociations

List of associations player belong to

Stringoptional
Birthdaybirthday

no description

Datesuggested