Template:Player character: Difference between revisions

From Elanthipedia
Jump to navigation Jump to search
No edit summary
(added ability to disable fields)
Line 3: Line 3:
! colspan="2" | {{#if:{{{Player Name|}}}|'''{{{Player Name}}}'''|{{PAGENAME}}}}
! colspan="2" | {{#if:{{{Player Name|}}}|'''{{{Player Name}}}'''|{{PAGENAME}}}}
|- bgcolor="#FFFFFF"
|- bgcolor="#FFFFFF"
| valign="top"| Race || align="center" | {{#if: {{{Race|}}} | {{{Race}}} | ''Unknown''}}
| valign="top"| Race || align="center" | {{#if: {{{Race|}}} | {{#switch:{{{Race}}}|-=| {{{Race}}}{{cat|Player {{{Race}}}}}}} | ''Unknown''}}
|- bgcolor="#FFFFFF"
|- bgcolor="#FFFFFF"
| valign="top"| Gender || align="center" | {{#if: {{{Gender|}}} | {{{Gender}}} | ''Unknown''}}
| valign="top"| Gender || align="center" | {{#if: {{{Gender|}}} | {{#switch:{{{Gender}}}|-=| {{{Gender}}}}} | ''Unknown''}}
|- bgcolor="#FFFFFF"
|- bgcolor="#FFFFFF"
| valign="top"| Guild || align="center" | {{#if: {{{Guild|}}} | {{{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|}}} | {{{Instance}}} | ''Unknown''}}
| valign="top"| Instance || align="center" | {{#if: {{{Instance|}}} | {{#switch:{{{Instance}}}|-=|{{Instance}}{{#arraymap:{{{Instance}}}|,|x|[[Category:Player x]]}}}} | ''Unknown''}}
|- bgcolor="#FFFFFF"
|- bgcolor="#FFFFFF"
{{#if: {{{Relative|}}} | {{!}} valign="top" {{!}} Relatives {{!}}{{!}} align="center" {{!}} {{#arraymap:{{{Relative}}}|,|x|[[x]]}}}}
{{#if: {{{Relative|}}} | {{!}} valign="top" {{!}} Relatives {{!}}{{!}} align="center" {{!}} {{#arraymap:{{{Relative}}}|,|x|[[x]]}}}}
|}{{cat|Player Characters}}
|}{{cat|Player Characters}}{{#if: {{{Race |}}} | {{cat|Player {{{Race}}}}} | }}{{#if: {{{Guild |}}} | {{Cat|Player {{{Guild}}}}} | }}{{#if: {{{Instance |}}} | {{#arraymap:{{{Instance}}}|,|x|[[Category:Player x]]}} | }}
</includeonly><noinclude>
</includeonly><noinclude>
==To Use==
==To Use==
Line 27: Line 27:
</pre>
</pre>


If you do not know one of the above, leave it blank
If you do not know one of the above, leave it blank, or use "-" to disable.
{{cat|Templates}}
{{cat|Templates}}
</noinclude>
</noinclude>

Revision as of 18:20, 10 September 2011

To Use

{{Player character 
|Player Name = 
|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.