Template:Player Infobox: Difference between revisions

From Ironclad Wiki
Jump to navigation Jump to search
Created page with "<noinclude> '''Player Infobox''' - Used on player pages to display a summary card. == Usage == <pre> {{Player Infobox | name = PlayerName | image = PlayerName_skin.png | caption = "Build first, ask questions never." | joined = March 2024 | status = Active | rank = Trusted | residence = Ironhaven | playstyle = Builder | affiliations = Ironhaven Builders Guild | discord = player#1234 }} </pre> Category:Templates </no..."
 
No edit summary
 
(One intermediate revision by the same user not shown)
Line 20: Line 20:
[[Category:Templates]]
[[Category:Templates]]
</noinclude><includeonly>
</noinclude><includeonly>
{| class="wikitable" style="float:right; margin-left:1em; margin-bottom:1em; width:300px; border:2px solid #5c5c5c; background:#1a1a1a; color:#d4d4d4;"
{| class="wikitable" style="float:right; margin-left:1em; margin-bottom:1em; width:270px; font-size:90%;"
|-
|-
! colspan="2" style="background:#3a3a3a; color:#e0e0e0; font-size:1.3em; padding:10px; text-align:center; border-bottom:2px solid #5c5c5c;" | {{{name|{{PAGENAME}}}}}
! colspan="2" style="background:#e8e8e8; font-size:1.2em; padding:8px; text-align:center;" | {{{name|{{PAGENAME}}}}}
{{#if:{{{image|}}}|
{{#if:{{{image|}}}|
{{!}}-
{{!}}-
Line 29: Line 29:
{{#if:{{{caption|}}}|
{{#if:{{{caption|}}}|
{{!}}-
{{!}}-
{{!}} colspan="2" style="text-align:center; font-style:italic; color:#a0a0a0; padding:4px 8px 8px;" {{!}} ''{{{caption}}}''
{{!}} colspan="2" style="text-align:center; font-style:italic; color:#555; padding:2px 8px 8px;" {{!}} ''{{{caption}}}''
}}
}}
|-
|-
! colspan="2" style="background:#2a2a2a; color:#b0b0b0; text-align:center; padding:6px; font-size:0.9em; border-top:1px solid #444; border-bottom:1px solid #444;" | Player Information
! colspan="2" style="background:#e8e8e8; text-align:center; padding:4px;" | Player Information
{{#if:{{{joined|}}}|
{{#if:{{{joined|}}}|
{{!}}-
{{!}}-
! style="width:40%; padding:6px 10px; background:#222; border-bottom:1px solid #333;" {{!}} Joined
! style="width:40%; padding:4px 8px;" {{!}} Joined
{{!}} style="padding:6px 10px; border-bottom:1px solid #333;" {{!}} {{{joined}}}
{{!}} style="padding:4px 8px;" {{!}} {{{joined}}}
}}
}}
{{#if:{{{status|}}}|
{{#if:{{{status|}}}|
{{!}}-
{{!}}-
! style="padding:6px 10px; background:#222; border-bottom:1px solid #333;" {{!}} Status
! style="padding:4px 8px;" {{!}} Status
{{!}} style="padding:6px 10px; border-bottom:1px solid #333;" {{!}} {{{status}}}
{{!}} style="padding:4px 8px;" {{!}} {{{status}}}
}}
}}
{{#if:{{{rank|}}}|
{{#if:{{{rank|}}}|
{{!}}-
{{!}}-
! style="padding:6px 10px; background:#222; border-bottom:1px solid #333;" {{!}} Rank
! style="padding:4px 8px;" {{!}} Rank
{{!}} style="padding:6px 10px; border-bottom:1px solid #333;" {{!}} {{{rank}}}
{{!}} style="padding:4px 8px;" {{!}} {{{rank}}}
}}
}}
{{#if:{{{residence|}}}|
{{#if:{{{residence|}}}|
{{!}}-
{{!}}-
! style="padding:6px 10px; background:#222; border-bottom:1px solid #333;" {{!}} Residence
! style="padding:4px 8px;" {{!}} Residence
{{!}} style="padding:6px 10px; border-bottom:1px solid #333;" {{!}} [[{{{residence}}}]]
{{!}} style="padding:4px 8px;" {{!}} [[{{{residence}}}]]
}}
}}
{{#if:{{{playstyle|}}}|
{{#if:{{{playstyle|}}}|
{{!}}-
{{!}}-
! style="padding:6px 10px; background:#222; border-bottom:1px solid #333;" {{!}} Playstyle
! style="padding:4px 8px;" {{!}} Playstyle
{{!}} style="padding:6px 10px; border-bottom:1px solid #333;" {{!}} {{{playstyle}}}
{{!}} style="padding:4px 8px;" {{!}} {{{playstyle}}}
}}
}}
{{#if:{{{affiliations|}}}|
{{#if:{{{affiliations|}}}|
{{!}}-
{{!}}-
! style="padding:6px 10px; background:#222; border-bottom:1px solid #333;" {{!}} Affiliations
! style="padding:4px 8px;" {{!}} Affiliations
{{!}} style="padding:6px 10px; border-bottom:1px solid #333;" {{!}} {{{affiliations}}}
{{!}} style="padding:4px 8px;" {{!}} {{{affiliations}}}
}}
}}
{{#if:{{{discord|}}}|
{{#if:{{{discord|}}}|
{{!}}-
{{!}}-
! style="padding:6px 10px; background:#222; border-bottom:1px solid #333;" {{!}} Discord
! style="padding:4px 8px;" {{!}} Discord
{{!}} style="padding:6px 10px; border-bottom:1px solid #333;" {{!}} {{{discord}}}
{{!}} style="padding:4px 8px;" {{!}} {{{discord}}}
}}
}}
|}
|}
</includeonly>
</includeonly>

Latest revision as of 21:28, 3 April 2026

Player Infobox - Used on player pages to display a summary card.

Usage

{{Player Infobox
| name         = PlayerName
| image        = PlayerName_skin.png
| caption      = "Build first, ask questions never."
| joined       = March 2024
| status       = Active
| rank         = Trusted
| residence    = Ironhaven
| playstyle    = Builder
| affiliations = Ironhaven Builders Guild
| discord      = player#1234
}}