Difference between revisions of "Template:Infobox player"

From WORST WIKI EVER
Jump to navigationJump to search
(fixed my weird decision to add "if")
("currently active" -> "status", replaced parameters thingy with templatedata)
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
  +
<onlyinclude>
<templatestyles src="Template:Infobox_player/styles.css"/>
+
<templatestyles src="Template:Infobox/styles.css"/>
 
<table class="infobox player">
 
<table class="infobox player">
 
<tr>
 
<tr>
Line 28: 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 57: Line 62:
 
|
 
|
 
}}
 
}}
<tr>
 
<th scope="row" class="infobox-label">Currently active</th>
 
<td class="infobox-data">{{{active|Unknown}}}</td>
 
</tr>
 
 
</table>
 
</table>
  +
</onlyinclude>
  +
== Usage ==
  +
<nowiki>{{Infobox player}}</nowiki> is template for creating infoboxes of players.
  +
  +
<templatedata>
  +
{
  +
"description": "template for creating infoboxes of players",
  +
"params": {
  +
"title": {
  +
"label": "Username",
  +
"description": "Player's username",
  +
"example": "El Chapo",
  +
"type": "string",
  +
"required": true
  +
},
  +
"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