Template:Infobox Player: Difference between revisions
Template page
More actions
| [checked revision] | [checked revision] |
mNo edit summary |
mNo edit summary |
||
| Line 1: | Line 1: | ||
<templatestyles src="Infobox Player/styles.css" /> | |||
|+ | |||
{{#vardefine:uname|{{#if:{{{username|}}}|{{{username}}}|{{#titleparts:{{PAGENAME}}|1|2}}}}}} | |||
{{#vardefine:unameE|{{urlencode:{{#var:uname}}|WIKI}}}} | |||
{| class="infobox-player" | |||
|+ class="infobox-title" | {{{username|Unknown Player}}} | |||
|- | |- | ||
! class="infobox-image" colspan="2" | | |||
| [[File:Avatar_{{# | {{#ifexist:File:Avatar_{{#var:unameE}}.jpg | ||
| {{#ifexist:File:Avatar_{{# | | [[File:Avatar_{{#var:unameE}}.jpg|200px|center]] | ||
| {{#ifexist:File:Avatar_{{#var:unameE}}.jpeg | |||
| [[File:Avatar_{{#var:unameE}}.jpeg|200px|center]] | |||
| {{#ifexist:File:Avatar_{{#var:unameE}}.png | |||
| [[File:Avatar_{{#var:unameE}}.png|200px|center]] | |||
| [[File:No-avatar-placeholder.png|200px|center|link=]] | |||
}} | |||
}} | }} | ||
}} | }} | ||
|- | |- | ||
| | | class="infobox-upload" colspan="2" | | ||
[{{fullurl:Special:FlexiUpload | campaign=players&username={{#var:unameE}}}} '''⬆ Upload your avatar here'''] | |||
}} '''⬆ Upload your avatar here'''] | |||
|- | |- | ||
| | | class="infobox-caption" colspan="2" | {{{caption|}}} | ||
|- | |- | ||
! | ! class="infobox-section" colspan="2" | Player information | ||
|- | |- | ||
! Username | ! class="infobox-label" | Username | ||
| {{{username|}}} | | class="infobox-data" | {{{username|}}} | ||
|- | |- | ||
! Also known as | ! class="infobox-label" | Also known as | ||
| {{#if: {{{aka|}}} | {{#arraymap: {{{aka|}}} | , | @ | | class="infobox-data" | {{#if: {{{aka|}}} | {{#arraymap: {{{aka|}}} | , | @ | @ }} | }} | ||
|- | |- | ||
! Discord | ! class="infobox-label" | Discord | ||
| {{{discord|}}} | | class="infobox-data" | {{{discord|}}} | ||
|- | |- | ||
! Joined TRP | ! class="infobox-label" | Joined TRP | ||
| {{{joined|}}} | | class="infobox-data" | {{{joined|}}} | ||
|- | |- | ||
! Timezone | ! class="infobox-label" | Timezone | ||
| {{{timezone|}}} | | class="infobox-data" | {{{timezone|}}} | ||
|- | |- | ||
! Languages | ! class="infobox-label" | Languages | ||
| {{{languages|}}} | | class="infobox-data" | {{{languages|}}} | ||
|- | |- | ||
! | ! class="infobox-section" colspan="2" | Out-of-character | ||
|- | |- | ||
! Age | ! class="infobox-label" | Age | ||
| {{{age|}}} | | class="infobox-data" | {{{age|}}} | ||
|- | |- | ||
! Pronouns | ! class="infobox-label" | Pronouns | ||
| {{{pronouns|}}} | | class="infobox-data" | {{{pronouns|}}} | ||
|- | |- | ||
! Country | ! class="infobox-label" | Country | ||
| {{{country|}}} | | class="infobox-data" | {{{country|}}} | ||
|- | |- | ||
! Current status | ! class="infobox-label" | Current status | ||
| {{{status|Active}}} | | class="infobox-data" | {{{status|Active}}} | ||
|- | |- | ||
! | ! class="infobox-section" colspan="2" | TRP Roles | ||
|- | |- | ||
| | | class="infobox-block" colspan="2" | {{{roles|}}} | ||
|- | |- | ||
! | ! class="infobox-section" colspan="2" | Roleplay activity | ||
|- | |- | ||
! Played characters | ! class="infobox-label" | Played characters | ||
| {{{characters|}}} | | class="infobox-data" | {{{characters|}}} | ||
|- | |- | ||
! Relations (OOC) | ! class="infobox-label" | Relations (OOC) | ||
| {{{relations|}}} | | class="infobox-data" | {{{relations|}}} | ||
|- | |- | ||
! | ! class="infobox-section" colspan="2" | Disciplinary record | ||
|- | |- | ||
| | | class="infobox-block" colspan="2" | {{{discipline|None}}} | ||
|- | |- | ||
! | ! class="infobox-section" colspan="2" | Notes | ||
|- | |- | ||
| | | class="infobox-block" colspan="2" | {{{notes|}}} | ||
|} | |} | ||
<noinclude> | <noinclude> | ||
| Line 110: | Line 115: | ||
}} | }} | ||
</pre> | </pre> | ||
; Avatar | ; Avatar | ||
The | Files are expected as <code>Avatar_<username>.(jpg|jpeg|png)</code>. The username | ||
defaults to the subpage name (e.g., <code>Players/Kowaulsky</code> → <code>Kowaulsky</code>), or to <code>|username=</code> if provided. | |||
</noinclude> | </noinclude> | ||
Revision as of 15:38, 2 September 2025
Page Template:Infobox Player/styles.css has no content.
{{#vardefine:uname|}} {{#vardefine:unameE|%7B%7B%23var:uname%7D%7D}}
|
| |
|---|---|
| Player information | |
| Username | |
| Also known as | |
| Discord | |
| Joined TRP | |
| Timezone | |
| Languages | |
| Out-of-character | |
| Age | |
| Pronouns | |
| Country | |
| Current status | Active |
| TRP Roles | |
| Roleplay activity | |
| Played characters | |
| Relations (OOC) | |
| Disciplinary record | |
| None | |
| Notes | |
Usage
On a player page, add:
{{Infobox Player
|username = John Doe
|aka = JohnDoe2, JDoe
|caption = Long-time TRP player
|discord = JohnDoe#1234
|joined = September 2025
|timezone = EST (UTC-5)
|languages = English, Spanish
|age = 24
|pronouns = he/him
|country = USA
|status = Active
|roles =
* Player (2022–present)
* Moderation (previously, quit in 2023)
|characters = [[Jane Tanaka]], [[Kenji Sato]]
|relations =
* Friend of [[Jane Doe]]
* Worked with [[Richard Roe]] in Business faction
|discipline =
* Warning — March 2023 (spamming)
* 3-day ban — July 2024 (combat logging)
|notes = Returned in 2025 with good standing.
}}
- Avatar
Files are expected as Avatar_<username>.(jpg|jpeg|png). The username
defaults to the subpage name (e.g., Players/Kowaulsky → Kowaulsky), or to |username= if provided.