Template:Infobox Player: Difference between revisions
Template page
More actions
| [checked revision] | [checked revision] |
mNo edit summary |
mNo edit summary |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 3: | Line 3: | ||
{{#if:{{{avatar|}}}| | {{#if:{{{avatar|}}}| | ||
<div style="text-align:center; padding:10px; background:var(--background-color-base, #fff);">[[File:{{{avatar}}}|200px]]</div> | <div style="text-align:center; padding:10px; background:var(--background-color-base, #fff);">[[File:{{{avatar}}}|200px]]</div> | ||
|<div style="text-align:center; padding:10px; background:var(--background-color-base, #fff);">[[File: | |<div style="text-align:center; padding:10px; background:var(--background-color-base, #fff);">[[File:Avatar_{{#titleparts:{{PAGENAME}}|1|2}}.png|200px]]</div> | ||
}} | }} | ||
<div style="text-align:center; font-size:85%; padding:5px; background:var(--background-color-base, #fff); color:var(--color-base, #000);">[{{fullurl:Special:FlexiUpload|campaign=players&username={{#titleparts:{{PAGENAME}}|1|2}}}} '''↑ Upload your avatar here''']</div> | <div style="text-align:center; font-size:85%; padding:5px; background:var(--background-color-base, #fff); color:var(--color-base, #000);">[{{fullurl:Special:FlexiUpload|campaign=players&username={{#titleparts:{{PAGENAME}}|1|2}}}} '''↑ Upload your avatar here''']</div> | ||
| Line 48: | Line 48: | ||
</div> | </div> | ||
</div></includeonly> | </div></includeonly> | ||
<includeonly>[[Category:Players]]</includeonly><noinclude> | <includeonly>[[Category:Players]]</includeonly><noinclude> | ||
| Line 83: | Line 81: | ||
* Warning – March 2023 (spamming) | * Warning – March 2023 (spamming) | ||
* 3-day ban – July 2024 (combat logging) | * 3-day ban – July 2024 (combat logging) | ||
}} | }} | ||
</pre> | </pre> | ||
| Line 97: | Line 91: | ||
==== List Format ==== | ==== List Format ==== | ||
For fields that support lists (aka, roles, characters, relations, discipline | For fields that support lists (aka, roles, characters, relations, discipline), use MediaWiki list syntax: | ||
<pre> | <pre> | ||
|field = | |field = | ||
Latest revision as of 10:30, 5 September 2025
Usage
On a player page, add:
{{Infobox Player
|username = John Doe
|avatar = Avatar_JohnDoe.jpg
|caption = Long-time TRP player
|status = Active
|aka =
* JohnDoe2
* JDoe
|discord = JohnDoe#1234
|joined = 2025-09-15
|birthdate = 2001-05-20
|pronouns = he/him
|country = USA
|timezone = EST (UTC-5)
|languages = English, Spanish
|roles =
* Player (2022–present)
* Moderation (previously, quit in 2023)
|characters =
* [[Jane Tanaka]]
* [[Kenji Sato]]
|relations =
* Friend of Falcøn40k
* Worked with Richard Roe in Business faction
|discipline =
* Warning – March 2023 (spamming)
* 3-day ban – July 2024 (combat logging)
}}
Important Notes
Date Formats
- joined: Use ISO format (YYYY-MM-DD) for consistent display. Example:
2025-08-24 - birthdate: Use ISO format (YYYY-MM-DD) for age calculation. Example:
2005-03-15
List Format
For fields that support lists (aka, roles, characters, relations, discipline), use MediaWiki list syntax:
|field = * First item * Second item * Third item
Player Links in Relations
The relations field automatically creates links to player pages. Just write the player's username and the template will check if their page exists and link to it accordingly.
This template uses CSS variables that automatically adapt to the Citizen skin's light/dark theme.