Template:Player character: Difference between revisions

From Elanthipedia
Jump to navigation Jump to search
(bugfix and format change)
No edit summary
Line 9: Line 9:
| valign="top"| Guild || align="center" | {{#if: {{{Guild|}}} | {{#switch:{{{Guild}}}|-=|{{{Guild}}}{{Cat|Player {{{Guild}}}}}}} | ''Unknown''}}
| valign="top"| Guild || align="center" | {{#if: {{{Guild|}}} | {{#switch:{{{Guild}}}|-=|{{{Guild}}}{{Cat|Player {{{Guild}}}}}}} | ''Unknown''}}
|- bgcolor="#FFFFFF"
|- bgcolor="#FFFFFF"
| valign="top"| Instance || align="center" | {{#if: {{{Instance|}}} | {{#switch:{{{Instance}}}|-=|{{{Instance}}}{{#arraymap:{{{Instance}}}|,|x|[[Category:Player x]]}}}} | ''Unknown''}}
| valign="top"| Instance || align="center" | {{#if: {{{Instance|}}} | {{#switch:{{{Instance}}}|-=|{{{Instance}}}{{#arraymap:{{{Instance}}}|,|@@@@|[[Category:Player {{ucfirst:{{lc:@@@@}}}}]]}}}} | ''Unknown''}}
|- bgcolor="#FFFFFF"
|- bgcolor="#FFFFFF"
| valign="top"| Status || align="center" | {{#if: {{{Status|}}} | {{#switch:{{{Status}}}|-=|a=Active|d=Dead|r=Retired}}}}
| valign="top"| Status || align="center" | {{#if: {{{Status|}}} | {{#switch:{{{Status}}}|-=|a=Active|d=Dead|r=Retired}}}}
|- bgcolor="#FFFFFF"
|- bgcolor="#FFFFFF"
{{#if: {{{Relative|}}} | {{!}} valign="top" {{!}} Relatives {{!}}{{!}} align="center" {{!}} {{#arraymap:{{{Relative}}}|,|x|[[x]]}}}}
{{#if: {{{Relative|}}} | {{!}} valign="top" {{!}} Relatives {{!}}{{!}} align="center" {{!}} {{#arraymap:{{{Relative}}}|,|@@@@|[[@@@@]]}}}}
|}{{cat|Player Characters}}
|}{{cat|Player Characters}}
</includeonly><noinclude>
</includeonly><noinclude>

Revision as of 22:04, 19 July 2013

To Use

{{Player character 
|Player Name = 
|Status      = a/d/r (active/dead/retired)
|Race        =
|Gender      = 
|Guild       =
|Instance    = (use "," to list multiple instances)
|Relative    = (use "," to separate each)
}}

If you do not know one of the above, leave it blank, or use "-" to disable.