Difference between revisions of "Template:Infobox player"
From WORST WIKI EVER
Jump to navigationJump to searchNotsokodya (talk | contribs) (since making gallery in infobox was a pain for me I return whole thing back =3= (i hate mediawiki lua)) |
Notsokodya (talk | contribs) ("currently active" -> "status", replaced parameters thingy with templatedata) |
||
(7 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
+ | <onlyinclude> |
||
− | <templatestyles src="Template: |
+ | <templatestyles src="Template:Infobox/styles.css"/> |
<table class="infobox player"> |
<table class="infobox player"> |
||
<tr> |
<tr> |
||
<th colspan="2" class="infobox-title">{{{title|{{PAGENAME}}}}}</th> |
<th colspan="2" class="infobox-title">{{{title|{{PAGENAME}}}}}</th> |
||
</tr> |
</tr> |
||
+ | {{#if: {{{image|}}} |
||
⚫ | |||
+ | | |
||
⚫ | |||
− | < |
+ | <tr> |
⚫ | |||
⚫ | |||
+ | | |
||
+ | }} |
||
+ | {{#if: {{{imagealt|}}} |
||
+ | | |
||
+ | <tr> |
||
⚫ | |||
+ | </tr> |
||
+ | | |
||
+ | }} |
||
{{#switch: {{{usergroup|}}} |
{{#switch: {{{usergroup|}}} |
||
| owner = <tr><th colspan="2" class="infobox-usergroup owner">WORST OWNER EVER</th></tr> |
| owner = <tr><th colspan="2" class="infobox-usergroup owner">WORST OWNER EVER</th></tr> |
||
Line 17: | Line 29: | ||
<tr> |
<tr> |
||
<th colspan="2" class="infobox-separator">Personal details</th> |
<th colspan="2" class="infobox-separator">Personal details</th> |
||
+ | </tr> |
||
⚫ | |||
+ | <th scope="row" class="infobox-label">Status</th> |
||
⚫ | |||
</tr> |
</tr> |
||
<tr> |
<tr> |
||
Line 46: | Line 62: | ||
| |
| |
||
}} |
}} |
||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
</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
Parameter | Description | Type | Status | |
---|---|---|---|---|
Username | title | Player's username
| String | required |
Avatar | image | Usually used for player's avatar | String | optional |
Multiple Images | imagealt | In the case if you use tabber for multiple images | String | optional |
Usergroup | usergroup | Player's rank on server | String | suggested |
Status | status | Current player status | String | required |
First join date | joindate | basically when the player first joined on server | Date | required |
Aliases | aliases | Other usernames that player known by | String | optional |
Associations | associations | List of associations player belong to | String | optional |
Birthday | birthday | no description | Date | suggested |