Template:Infobox Player: Difference between revisions
Template page
More actions
| [checked revision] | [checked revision] |
mNo edit summary |
mNo edit summary |
||
| Line 15: | Line 15: | ||
</td></tr>|}} | </td></tr>|}} | ||
{{#if:{{{discord|}}}|<tr><td style="width:30%; font-weight:bold; padding:4px; color:var(--color-subtle, #666);">Discord</td><td style="padding:4px; color:var(--color-base, #000);">{{{discord}}}</td></tr>|}} | {{#if:{{{discord|}}}|<tr><td style="width:30%; font-weight:bold; padding:4px; color:var(--color-subtle, #666);">Discord</td><td style="padding:4px; color:var(--color-base, #000);">{{{discord}}}</td></tr>|}} | ||
{{#if:{{{joined|}}}|<tr><td style="width:30%; font-weight:bold; padding:4px; color:var(--color-subtle, #666);">Joined TRP</td><td style="padding:4px; color:var(--color-base, #000);">{{{joined}}}</td></tr>|}} | {{#if:{{{joined|}}}|<tr><td style="width:30%; font-weight:bold; padding:4px; color:var(--color-subtle, #666);">Joined TRP</td><td style="padding:4px; color:var(--color-base, #000);">{{#time: F j, Y | {{{joined}}} }}</td></tr>|}} | ||
{{#if:{{{timezone|}}}|<tr><td style="width:30%; font-weight:bold; padding:4px; color:var(--color-subtle, #666);">Timezone</td><td style="padding:4px; color:var(--color-base, #000);">{{{timezone}}}</td></tr>|}} | {{#if:{{{timezone|}}}|<tr><td style="width:30%; font-weight:bold; padding:4px; color:var(--color-subtle, #666);">Timezone</td><td style="padding:4px; color:var(--color-base, #000);">{{{timezone}}}</td></tr>|}} | ||
{{#if:{{{languages|}}}|<tr><td style="width:30%; font-weight:bold; padding:4px; color:var(--color-subtle, #666);">Languages</td><td style="padding:4px; color:var(--color-base, #000);">{{{languages}}}</td></tr>|}} | {{#if:{{{languages|}}}|<tr><td style="width:30%; font-weight:bold; padding:4px; color:var(--color-subtle, #666);">Languages</td><td style="padding:4px; color:var(--color-base, #000);">{{{languages}}}</td></tr>|}} | ||
| Line 22: | Line 22: | ||
<div style="text-align:center; font-weight:bold; font-size:110%; padding:8px; background-color:var(--background-color-neutral-subtle, #f8f9fa); border-top:1px solid var(--border-color-base, #a2a9b1); border-bottom:1px solid var(--border-color-base, #a2a9b1); color:var(--color-emphasized, #000);">Out-of-character</div> | <div style="text-align:center; font-weight:bold; font-size:110%; padding:8px; background-color:var(--background-color-neutral-subtle, #f8f9fa); border-top:1px solid var(--border-color-base, #a2a9b1); border-bottom:1px solid var(--border-color-base, #a2a9b1); color:var(--color-emphasized, #000);">Out-of-character</div> | ||
<table style="width:100%; padding:5px; background:var(--background-color-base, #fff);"> | <table style="width:100%; padding:5px; background:var(--background-color-base, #fff);"> | ||
{{#if:{{{ | {{#if:{{{birthdate|}}}|<tr><td style="width:30%; font-weight:bold; padding:4px; color:var(--color-subtle, #666);">Age</td><td style="padding:4px; color:var(--color-base, #000);">{{#expr: {{#time: Y }} - {{#time: Y | {{{birthdate}}} }} - {{#ifexpr: {{#time: n }} > {{#time: n | {{{birthdate}}} }} or ({{#time: n }} = {{#time: n | {{{birthdate}}} }} and {{#time: j }} >= {{#time: j | {{{birthdate}}} }}) | 0 | 1 }} }} (born {{#time: F j, Y | {{{birthdate}}} }})</td></tr>|}} | ||
{{#if:{{{pronouns|}}}|<tr><td style="width:30%; font-weight:bold; padding:4px; color:var(--color-subtle, #666);">Pronouns</td><td style="padding:4px; color:var(--color-base, #000);">{{{pronouns}}}</td></tr>|}} | {{#if:{{{pronouns|}}}|<tr><td style="width:30%; font-weight:bold; padding:4px; color:var(--color-subtle, #666);">Pronouns</td><td style="padding:4px; color:var(--color-base, #000);">{{{pronouns}}}</td></tr>|}} | ||
{{#if:{{{country|}}}|<tr><td style="width:30%; font-weight:bold; padding:4px; color:var(--color-subtle, #666);">Country</td><td style="padding:4px; color:var(--color-base, #000);">{{{country}}}</td></tr>|}} | {{#if:{{{country|}}}|<tr><td style="width:30%; font-weight:bold; padding:4px; color:var(--color-subtle, #666);">Country</td><td style="padding:4px; color:var(--color-base, #000);">{{{country}}}</td></tr>|}} | ||
| Line 62: | Line 62: | ||
|caption = Long-time TRP player | |caption = Long-time TRP player | ||
|status = Active | |status = Active | ||
|aka = JohnDoe2 | |aka = | ||
* JohnDoe2 | |||
* JDoe | |||
|discord = JohnDoe#1234 | |discord = JohnDoe#1234 | ||
|joined = | |joined = 2025-09-15 | ||
| | |birthdate = 2001-05-20 | ||
|pronouns = he/him | |pronouns = he/him | ||
|country = USA | |country = USA | ||
| Line 73: | Line 75: | ||
* Player (2022–present) | * Player (2022–present) | ||
* Moderation (previously, quit in 2023) | * Moderation (previously, quit in 2023) | ||
|characters = [[Jane Tanaka]] | |characters = | ||
* [[Jane Tanaka]] | |||
* [[Kenji Sato]] | |||
|relations = | |relations = | ||
* Friend of | * Friend of Falcøn40k | ||
* Worked with | * Worked with Richard Roe in Business faction | ||
|discipline = | |discipline = | ||
* Warning – March 2023 (spamming) | * Warning – March 2023 (spamming) | ||
| Line 84: | Line 88: | ||
</pre> | </pre> | ||
=== Important Notes === | |||
==== Date Formats ==== | |||
* '''joined''': Use ISO format (YYYY-MM-DD) for consistent display. Example: <code>2025-08-24</code> | |||
* '''birthdate''': Use ISO format (YYYY-MM-DD) for age calculation. Example: <code>2005-03-15</code> | |||
==== List Format ==== | |||
For fields that support lists (aka, roles, characters, relations, discipline), use MediaWiki list syntax: | |||
<pre> | |||
|field = | |||
* First item | |||
* Second item | |||
* Third item | |||
</pre> | |||
==== 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. | |||
</noinclude> | </noinclude> | ||
Revision as of 14:10, 4 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)
|notes = Returned in 2025 with good standing.
}}
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.