Difference between revisions of "Template:Apocalypse PC"

From Modern Enigma Society 2020 Wiki
Jump to navigation Jump to search
Line 3: Line 3:
 
<pre>
 
<pre>
 
{{Apocalypse PC
 
{{Apocalypse PC
|name=
+
|charactername=
 +
|deedname=
 +
|deednametitle=
 
|portrait=
 
|portrait=
 
|pronouns=
 
|pronouns=
 
|type=
 
|type=
|clan=
+
|tribe=
|clanfaction=
+
|fera=
|sect=
+
|camp=
|sectfaction=
+
|auspice=
|socialclass=
+
|breed=
|morality=
+
|rank=
|domitor=
+
|sept=
|domitorpagename=
 
|domitorclan=
 
|domitorsect=
 
|domitorsocialclass=
 
|family=
 
|position=
 
 
|pcgroup1=
 
|pcgroup1=
 
|pcgroup1type=
 
|pcgroup1type=
Line 26: Line 22:
 
|pcgroup3=
 
|pcgroup3=
 
|pcgroup3type=
 
|pcgroup3type=
 +
|position=
 
|furtherinfopic=
 
|furtherinfopic=
 
|desc=
 
|desc=
Line 39: Line 36:
 
|vss=
 
|vss=
 
|domain=
 
|domain=
|territory=
 
 
|st=  
 
|st=  
 
|stemail=
 
|stemail=
Line 47: Line 43:
  
 
All other parameters are optional and can be excluded without causing any problems with the display of the template.
 
All other parameters are optional and can be excluded without causing any problems with the display of the template.
 
If an image file has been uploaded to the wiki that has the same name as the PC's PAGENAME (which isn't necessarily the same as the 'name' parameter), that image will display as the character's portrait. If not, a placeholder image will be displayed. Additional files can be defined for the 'furtherinfopic' and 'oocvitalspic' parameters if you wish. Assuming the filename given as the parameter exists on the wiki, it will be displayed. If you give anything else as this parameter, it won't work as intended and will look wrong. If you don't define one or more of those parameters, the template will skip displaying a picture at all in that section, and the text will be given full the full width of the page.
 
  
 
If the page for the VSS the PC is assigned to has been created, and the "VST" and "VST Email" pages have been defined for that VSS, those values will override whatever is given to this template for the 'st' and 'stemail' parameters. This is to prevent PC pages from having out-of-date info for the VST, since most players aren't going to update their PC page just because they have a new VST. If your VSS page has out-of-date info that's overriding the correct info on your PC page, go to the VSS page and click "Click here to edit" then edit it. Yes, you're allowed to touch that, as long as you're updating it with correct information.
 
If the page for the VSS the PC is assigned to has been created, and the "VST" and "VST Email" pages have been defined for that VSS, those values will override whatever is given to this template for the 'st' and 'stemail' parameters. This is to prevent PC pages from having out-of-date info for the VST, since most players aren't going to update their PC page just because they have a new VST. If your VSS page has out-of-date info that's overriding the correct info on your PC page, go to the VSS page and click "Click here to edit" then edit it. Yes, you're allowed to touch that, as long as you're updating it with correct information.
Line 54: Line 48:
 
Edit the page or click "View Source" to see the template text.</noinclude>
 
Edit the page or click "View Source" to see the template text.</noinclude>
 
<includeonly>{{#default_form:Apocalypse PC}}__NOTOC__ __NOEDITSECTION__<div id="apoc-pc-container-container"><div id="apoc-pc-container">
 
<includeonly>{{#default_form:Apocalypse PC}}__NOTOC__ __NOEDITSECTION__<div id="apoc-pc-container-container"><div id="apoc-pc-container">
<div id="apoc-pc-title" class="clearfix">{{{name}}}<div id="apoc-pc-badges">{{#if: {{{clan|}}}|[[File:{{{clan}}}.PNG|100px]]}} {{#if: {{{sect|}}}|[[File:{{{sect}}}.PNG|100px]]}}{{#if: {{{type|}}}|{{#ifeq: {{{type}}}|Dhampir|[[File:Anarch.PNG|100px]]}}}}</div></div>
+
<div id="apoc-pc-title" class="clearfix">{{#ifeq: {{{deednametitle|}}}|Yes|{{{deedname}}}|{{{name}}}}}<div id="apoc-pc-badges">{{#if: {{{rank|}}}|[[File:{{{rank}}}.PNG|100px]]}} {{#if: {{{auspice|}}}|[[File:{{{auspice}}}.PNG|100px]]}}{{#if: {{{tribe|}}}|[[File:{{{tribe}}}.PNG|100px]]}}{{#if: {{{fera|}}}|[[File:{{{fera}}}.PNG|100px]]}}</div></div>
 
<div id="apoc-pc-icvitals" class="clearfix">
 
<div id="apoc-pc-icvitals" class="clearfix">
 
   <div id="apoc-pc-portrait-box">
 
   <div id="apoc-pc-portrait-box">
 
     <div id="apoc-pc-portrait">
 
     <div id="apoc-pc-portrait">
{{#if: {{{portrait|}}}|[[File:{{{portrait}}}]]
+
{{#if: {{{portrait|}}}|[[File:{{{portrait}}}]]}}
  |{{#ifexist: File:{{PAGENAME}}.png|[[File:{{PAGENAME}}.png]]
 
    |{{#ifexist: File:{{PAGENAME}}.jpg|[[File:{{PAGENAME}}.jpg]]
 
      |{{#ifexist: File:{{PAGENAME}}.jpeg|[[File:{{PAGENAME}}.jpeg]]
 
        |{{#ifexist: File:{{PAGENAME}}.gif|[[File:{{PAGENAME}}.gif]]
 
          |{{#ifexist: File:{{PAGENAME}}.webp|[[File:{{PAGENAME}}.webp]]
 
            |[[File:Portrait_Placeholder.png]]
 
          }}
 
        }}
 
      }}
 
    }}
 
  }}
 
}}
 
 
     </div>
 
     </div>
 
   </div>
 
   </div>
Line 78: Line 60:
 
!scope="row"{{!}}Pronouns
 
!scope="row"{{!}}Pronouns
 
{{!}} {{{characterpronouns}}}
 
{{!}} {{{characterpronouns}}}
}}{{#switch: {{{type}}}| Ghoul|Revenant|Dhampir = <nowiki/>
+
}}{{#switch: {{{type}}}| Kinfolk = <nowiki/>
 
{{!}}-
 
{{!}}-
 
!scope="row"{{!}}Creature Type
 
!scope="row"{{!}}Creature Type
 
{{!}} [[:Category:{{{type}}}|{{{type}}}]]
 
{{!}} [[:Category:{{{type}}}|{{{type}}}]]
}}{{#if: {{{clan|}}}|<nowiki/>
+
}}{{#if: {{{fera|}}}|<nowiki/>
 
{{!}}-
 
{{!}}-
!scope="row"{{!}}Clan
+
!scope="row"{{!}}Fera
{{!}} [[:Category:{{{clan}}}|{{{clan}}}]]
+
{{!}} [[:Category:{{{fera}}}|{{{fera}}}]]
}}{{#if: {{{clanfaction|}}}|<nowiki/>
+
}}{{#if: {{{tribe|}}}|<nowiki/>
 
{{!}}-
 
{{!}}-
!scope="row"{{!}}Clan Faction
+
!scope="row"{{!}}Tribe
{{!}} [[:Category:{{{clanfaction}}}|{{{clanfaction}}}]]
+
{{!}} [[:Category:{{{tribe}}}|{{{tribe}}}]]
}}{{#if: {{{sect|}}}|<nowiki/>
+
}}{{#if: {{{camp|}}}|<nowiki/>
 
{{!}}-
 
{{!}}-
!scope="row"{{!}}Sect
+
!scope="row"{{!}}Camp
{{!}} [[:Category:{{{sect}}}|{{{sect}}}]]
+
{{!}} [[:Category:{{{camp}}}|{{{camp}}}]]
}}{{#if: {{{type|}}}|{{#ifeq: {{{type}}}|Dhampir|<nowiki/>
+
}}{{#if: {{{auspice|}}}|<nowiki/>
 
{{!}}-
 
{{!}}-
!scope="row"{{!}}Sect
+
!scope="row"{{!}}Auspice
{{!}} [[:Category:Anarch|Anarch]]
+
{{!}} [[:Category:{{{auspice}}}|{{{auspice}}}]]
}}}}{{#if: {{{sectfaction|}}}|<nowiki/>
+
}}{{#if: {{{breed|}}}|<nowiki/>
 
{{!}}-
 
{{!}}-
!scope="row"{{!}}Sect Faction
+
!scope="row"{{!}}Breed
{{!}} [[:Category:{{{sectfaction}}}|{{{sectfaction}}}]]
+
{{!}} [[:Category:{{{breed}}}|{{{breed}}}]]
}}{{#if: {{{socialclass|}}}|<nowiki/>
+
}}{{#if: {{{rank|}}}|<nowiki/>
 
{{!}}-
 
{{!}}-
!scope="row"{{!}}Social Class
+
!scope="row"{{!}}Rank
{{!}} {{{socialclass}}}
+
{{!}} [[:Category:{{{rank}}}|{{{rank}}}]]
}}{{#if: {{{morality|}}}|<nowiki/>
+
}}{{#if: {{{sept|}}}|<nowiki/>
 
{{!}}-
 
{{!}}-
!scope="row"{{!}}Morality
+
!scope="row"{{!}}Sept
{{!}} {{{morality}}}
+
{{!}} [[:Category:{{{sept}}}|{{{sept}}}]]
}}{{#if: {{{domitor|}}}|<nowiki/>
 
{{!}}-
 
!scope="row"{{!}}Domitor
 
{{!}} {{#ifexist: {{{domitorpagename}}}|[[{{{domitorpagename}}}|{{{domitor}}}]]|[[{{{domitor}}}]]}}
 
}}{{#if: {{{domitorclan|}}}|<nowiki/>
 
{{!}}-
 
!scope="row"{{!}}{{{domitor}}}'s Clan
 
{{!}} [[:Category:{{{domitorclan}}}|{{{domitorclan}}}]]
 
}}{{#if: {{{domitorsect|}}}|<nowiki/>
 
{{!}}-
 
!scope="row"{{!}}{{{domitor}}}'s Sect
 
{{!}} [[:Category:{{{domitorsect}}}|{{{domitorsect}}}]]
 
}}{{#if: {{{domitorsocialclass|}}}|<nowiki/>
 
{{!}}-
 
!scope="row"{{!}}{{{domitor}}}'s Social Class
 
{{!}} {{{domitorsocialclass}}}
 
}}{{#if: {{{family|}}}|<nowiki/>
 
{{!}}-
 
!scope="row"{{!}}Revenant Family
 
{{!}} [[{{{family}}}]]
 
}}{{#if: {{{territory|}}}|<nowiki/>
 
{{!}}-
 
!scope="row"{{!}}Territory
 
{{!}} [[:Category:{{{territory}}}]]
 
 
}}{{#if: {{{pcgroup1|}}}|<nowiki/>
 
}}{{#if: {{{pcgroup1|}}}|<nowiki/>
 
{{!}}-
 
{{!}}-
Line 176: Line 134:
 
}}
 
}}
 
</div></div>
 
</div></div>
{{#if: {{{type|}}}|{{#ifeq: {{{type}}}|Vampire| |[[Category:{{{type}}}]]}}}}
+
{{#ifeq: {{{type|}}}|Kinfolk|[[Category:Kinfolk]]}}
{{#if: {{{type|}}}|{{#ifeq: {{{type}}}|Dhampir|[[Category:Anarch]]}}}}
+
{{#if: {{{tribe|}}}|[[Category:{{{tribe}}}]]}}
{{#if: {{{clan|}}}|[[Category:{{{clan}}}]]}}
+
{{#if: {{{fera|}}}|[[Category:{{{fera}}}]]}}
{{#switch: {{{clan|}}}
+
{{#if: {{{camp|}}}|[[Category:{{{camp}}}]]}}
  | Banu Haqim Warrior|Banu Haqim Sorcerer|Banu Haqim Vizier = [[Category:Banu Haqim]]
+
{{#if: {{{auspice|}}}|[[Category:{{{auspice}}}]]}}
  | Coyotes = [[Category:Gangrel]]
+
{{#if: {{{breed|}}}|[[Category:{{{breed}}}]]}}
  | House Tremere|House Carna|House Goratrix = [[Category:Tremere]]
+
{{#if: {{{rank|}}}|[[Category:{{{rank}}}]]}}
  | Salubri Warrior|Salubri Healer = [[Category:Salubri]]
+
{{#if: {{{sept|}}}|[[Category:{{{sept}}}]]}}
}}
 
{{#if: {{{clanfaction|}}}|[[Category:{{{clanfaction}}}]]}}
 
{{#if: {{{sect|}}}|[[Category:{{{sect}}}]]}}
 
{{#if: {{{sectfaction|}}}|[[Category:{{{sectfaction}}}]]}}
 
{{#if: {{{family|}}}|[[Category:{{{family}}}]]}}
 
 
{{#if: {{{pcgroup1|}}}|[[Category:{{{pcgroup1}}}]]}}
 
{{#if: {{{pcgroup1|}}}|[[Category:{{{pcgroup1}}}]]}}
 
{{#if: {{{pcgroup2|}}}|[[Category:{{{pcgroup2}}}]]}}
 
{{#if: {{{pcgroup2|}}}|[[Category:{{{pcgroup2}}}]]}}
Line 195: Line 148:
 
{{#if: {{{domain|}}}|[[Category:{{{domain}}}]]}}
 
{{#if: {{{domain|}}}|[[Category:{{{domain}}}]]}}
 
{{#if: {{{vss|}}}|[[Category:{{{vss}}}]]}}
 
{{#if: {{{vss|}}}|[[Category:{{{vss}}}]]}}
{{#if: {{{territory|}}}|[[Category:{{{territory}}}]]}}
 
 
[[Category:Apocalypse PC]]
 
[[Category:Apocalypse PC]]
 
{{#css:
 
{{#css:

Revision as of 22:20, 21 October 2020

This is the "Apocalypse PC" template, used for pages defining Apocalypse 2021 player characters. It should be called in the following format:

{{Apocalypse PC
|charactername=
|deedname=
|deednametitle=
|portrait=
|pronouns=
|type=
|tribe=
|fera=
|camp=
|auspice=
|breed=
|rank=
|sept=
|pcgroup1=
|pcgroup1type=
|pcgroup2=
|pcgroup2type=
|pcgroup3=
|pcgroup3type=
|position=
|furtherinfopic=
|desc=
|timeline=
|bio=
|rumors=
|quotes=
|oocvitalspic=
|player=
|playerpronouns=
|playeremail=
|mesnumber=
|vss=
|domain=
|st= 
|stemail=
}}

The following parameters are required: name, player, playeremail, mesnumber, vss, domain, st, stemail

All other parameters are optional and can be excluded without causing any problems with the display of the template.

If the page for the VSS the PC is assigned to has been created, and the "VST" and "VST Email" pages have been defined for that VSS, those values will override whatever is given to this template for the 'st' and 'stemail' parameters. This is to prevent PC pages from having out-of-date info for the VST, since most players aren't going to update their PC page just because they have a new VST. If your VSS page has out-of-date info that's overriding the correct info on your PC page, go to the VSS page and click "Click here to edit" then edit it. Yes, you're allowed to touch that, as long as you're updating it with correct information.

Edit the page or click "View Source" to see the template text.