Difference between revisions of "Template:Infobox player"
From WORST WIKI EVER
Jump to navigationJump to searchNotsokodya (talk | contribs) (Created page with "{{#invoke:infobox|infobox | name = test | hi | helo }}") |
Notsokodya (talk | contribs) ("currently active" -> "status", replaced parameters thingy with templatedata) |
||
(9 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
+ | <onlyinclude> |
||
− | {{#invoke:infobox|infobox |
||
+ | <templatestyles src="Template:Infobox/styles.css"/> |
||
− | | name = test |
||
+ | <table class="infobox player"> |
||
− | | hi |
||
+ | <tr> |
||
− | | helo |
||
+ | <th colspan="2" class="infobox-title">{{{title|{{PAGENAME}}}}}</th> |
||
− | }} |
||
+ | </tr> |
||
+ | {{#if: {{{image|}}} |
||
+ | | |
||
+ | <tr> |
||
+ | <th colspan="2" class="infobox-image">[[File:{{PAGENAME:{{{image}}}}}|250px]]</th> |
||
+ | </tr> |
||
+ | | |
||
+ | }} |
||
+ | {{#if: {{{imagealt|}}} |
||
+ | | |
||
+ | <tr> |
||
+ | <th colspan="2" class="infobox-image">{{{imagealt}}}</th> |
||
+ | </tr> |
||
+ | | |
||
+ | }} |
||
+ | {{#switch: {{{usergroup|}}} |
||
+ | | owner = <tr><th colspan="2" class="infobox-usergroup owner">WORST OWNER EVER</th></tr> |
||
+ | | admin = <tr><th colspan="2" class="infobox-usergroup admin">admin shaped creatura</th></tr> |
||
+ | | sage = <tr><th colspan="2" class="infobox-usergroup sage">sage</th></tr> |
||
+ | | regular = <tr><th colspan="2" class="infobox-usergroup regulars">regular</th></tr> |
||
+ | | player = <tr><th colspan="2" class="infobox-usergroup player">player</th></tr> |
||
+ | | |
||
+ | }} |
||
+ | <tr> |
||
+ | <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> |
||
+ | <th scope="row" class="infobox-label">Joined</th> |
||
+ | <td class="infobox-data">{{{joindate|Unknown}}}</td> |
||
+ | </tr> |
||
+ | {{#if: {{{aliases|}}} |
||
+ | | |
||
+ | <tr> |
||
+ | <th scope="row" class="infobox-label">Aliases</th> |
||
+ | <td class="infobox-data">{{{aliases}}}</td> |
||
+ | </tr> |
||
+ | | |
||
+ | }} |
||
+ | {{#if: {{{associations|}}} |
||
+ | | |
||
+ | <tr> |
||
+ | <th scope="row" class="infobox-label">Associations</th> |
||
+ | <td class="infobox-data">{{{associations}}}</td> |
||
+ | </tr> |
||
+ | | |
||
+ | }} |
||
+ | {{#if: {{{birthday|}}} |
||
+ | | |
||
+ | <tr> |
||
+ | <th scope="row" class="infobox-label">Birthday</th> |
||
+ | <td class="infobox-data">{{{birthday}}}</td> |
||
+ | </tr> |
||
+ | | |
||
+ | }} |
||
+ | </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 |