Template:PCTOC: Difference between revisions
Jump to navigation
Jump to search
TEVESHSZAT (talk | contribs) No edit summary |
LADYMOFFITT (talk | contribs) No edit summary |
||
(11 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{| cellpadding="2" style="float:right; width:300px; background:#e3e3e3; border-spacing:1px; margin |
<includeonly>{| cellpadding="2" style="float:right; width:300px; background:#e3e3e3; border-spacing:1px; margin: 0em 0em 1em 2em;" |
||
|- |
|- |
||
! colspan="2" | {{#if:{{{name|}}}|'''{{{name}}}'''|{{PAGENAME}}}}{{#if:{{{rev|}}}|[[review::{{{rev}}}| ]]|[[review::0| ]]}} |
! colspan="2" | {{#if:{{{name|}}}|'''{{{name}}}'''|{{PAGENAME}}}}{{#if:{{{rev|}}}|[[review::{{{rev}}}| ]]|[[review::0| ]]}} |
||
|- bgcolor="#FFFFFF" |
|- bgcolor="#FFFFFF" |
||
| colspan="2" | {{#if:{{{portrait|}}}|'''[[Image:{{{portrait}}}|300px]]''' |
| colspan="2" | {{#if:{{{portrait|}}}|'''[[Image:{{{portrait}}}|300px]]'''}} |
||
|- 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}}}} |
||
Line 15: | Line 15: | ||
| valign="top"| Instance || align="center" | {{#if: {{{instance|}}} | {{#switch:{{{instance}}}|-=|{{ucfirst:{{lc:{{{instance}}}}}}}{{#arraymap:{{ucfirst:{{lc:{{{instance}}}}}}}|,|@@@@|[[Category:Player @@@@]]}}}} | ''Unknown''}} |
| valign="top"| Instance || align="center" | {{#if: {{{instance|}}} | {{#switch:{{{instance}}}|-=|{{ucfirst:{{lc:{{{instance}}}}}}}{{#arraymap:{{ucfirst:{{lc:{{{instance}}}}}}}|,|@@@@|[[Category:Player @@@@]]}}}} | ''Unknown''}} |
||
|- bgcolor="#FFFFFF" |
|- bgcolor="#FFFFFF" |
||
{{#if: {{{iccontact|}}}| valign="top" |
{{#if: {{{iccontact|}}} | {{!}} valign="top" {{!}} IC IM {{!}}{{!}} align="center" {{!}} {{#if: {{{iccontact|}}} | {{#switch:{{{iccontact}}}|-=|g=Gweth|c=Albredine Crystal}}}} }} |
||
|- bgcolor="#FFFFFF" |
|- bgcolor="#FFFFFF" |
||
{{#if: {{{ooccontact|}}} |
{{#if: {{{ooccontact|}}} | {{!}} valign="top"{{!}} OOC IM {{!}}{{!}} align="center" {{!}} {{#if: {{{ooccontact|}}}|{{{ooccontact}}} }} }} |
||
|- bgcolor="#FFFFFF" |
|- bgcolor="#FFFFFF" |
||
{{#if: {{{relat|}}} | {{!}} valign="top" {{!}} Relatives {{!}}{{!}} align="center" {{!}} {{#arraymap:{{{relat}}}|,|@@@@|[[@@@@]]}}}} |
{{#if: {{{relat|}}} | {{!}} valign="top" {{!}} Relatives {{!}}{{!}} align="center" {{!}} {{#arraymap:{{{relat}}}|,|@@@@|[[@@@@]]}}}} |
||
|- bgcolor="#FFFFFF" |
|||
|- |
|||
{{#if: {{{toc|}}} | {{#switch:{{{toc}}}|y|yes|t|true|1={{!}} colspan="2" {{!}} __TOC__ | __NOTOC__ }} | }} |
{{#if: {{{toc|}}} | {{#switch:{{{toc}}}|y|yes|t|true|1={{!}} colspan="2" {{!}} __TOC__ | __NOTOC__ }} | }} |
||
|}{{cat|Player Characters}} |
|}{{cat|Player Characters}} |
||
</includeonly |
</includeonly> |
||
<noinclude> |
|||
==To Use== |
|||
For manual creation: |
|||
<pre> |
|||
{{PCTOC |
|||
|name = |
|||
|portrait = file name of portrait |
|||
|status = a/d/r (active/dead/retired) |
|||
|race = |
|||
|gender = |
|||
|guild = |
|||
|instance = (use "," to list multiple instances) |
|||
|relat = (use "," to separate each) |
|||
|iccontact = c/g (Albredine Crystal, Gweth - right now only supports one option or another) |
|||
|ooccontact = AIM account name |
|||
|toc = y to embed TOC directly under profile |
|||
}} |
|||
</pre> |
|||
Trying to see if I can combine the PC card template with a table of contents so the two don't clash at the top of pages. Testing adding a portrait slot as well. |
Trying to see if I can combine the PC card template with a table of contents so the two don't clash at the top of pages. Testing adding a portrait slot as well. |
Latest revision as of 14:32, 27 January 2021
To Use
For manual creation:
{{PCTOC |name = |portrait = file name of portrait |status = a/d/r (active/dead/retired) |race = |gender = |guild = |instance = (use "," to list multiple instances) |relat = (use "," to separate each) |iccontact = c/g (Albredine Crystal, Gweth - right now only supports one option or another) |ooccontact = AIM account name |toc = y to embed TOC directly under profile }}
Trying to see if I can combine the PC card template with a table of contents so the two don't clash at the top of pages. Testing adding a portrait slot as well.