Difference between revisions of "Template:Masquerade PC"

From Modern Enigma Society 2020 Wiki
Jump to navigation Jump to search
(Created page with "<noinclude>This is the "Masquerade PC" template, used for pages defining Masquerade 2020 player characters. It should be called in the following format: <pre> {{Masquerade PC...")
 
(Undo revision 11074 by Annie B. US2018100133 (talk))
Tag: Undo
 
(78 intermediate revisions by 2 users not shown)
Line 4: Line 4:
 
{{Masquerade PC
 
{{Masquerade PC
 
|name=
 
|name=
 +
|portrait=
 +
|pronouns=
 +
|type=
 
|clan=
 
|clan=
 +
|clanfaction=
 
|sect=
 
|sect=
 +
|sectfaction=
 
|socialclass=
 
|socialclass=
 
|morality=
 
|morality=
 +
|domitor=
 +
|domitorpagename=
 +
|domitorclan=
 +
|domitorsect=
 +
|domitorsocialclass=
 +
|family=
 +
|territory=
 
|position=
 
|position=
|pcgroup=
+
|pcgroup1=
|pcgrouptype=
+
|pcgroup1type=
 +
|pcgroup2=
 +
|pcgroup2type=
 +
|pcgroup3=
 +
|pcgroup3type=
 
|furtherinfopic=
 
|furtherinfopic=
 
|desc=
 
|desc=
Line 19: Line 35:
 
|oocvitalspic=
 
|oocvitalspic=
 
|player=
 
|player=
 +
|playerpronouns=
 
|playeremail=
 
|playeremail=
 
|mesnumber=
 
|mesnumber=
 
|vss=
 
|vss=
 
|domain=
 
|domain=
|territory=
 
 
|st=  
 
|st=  
 
|stemail=
 
|stemail=
 +
|notvst=
 
}}
 
}}
 
</pre>
 
</pre>
The following parameters are required: name, clan, sect, socialclass, player, 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.
 
All other parameters are optional and can be excluded without causing any problems with the display of the template.
Line 37: Line 54:
  
 
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>__NOTOC__ __NOEDITSECTION__
+
<includeonly>{{#default_form:Masquerade PC}}__NOTOC__ __NOEDITSECTION__<div id="masq-container">
<div id="masq-pc-container">
+
<div id="masq-title" class="clearfix"><span id="my-title">{{{name}}}</span><div id="masq-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="masq-pc-title" class="clearfix">{{{name}}}<div id="masq-pc-badges">[[File:{{{clan}}}.PNG|100px]] [[File:{{{sect}}}.PNG|100px]]</div></div>
+
<div id="masq-icvitals" class="clearfix">
 
+
   <div id="masq-portrait-box">
<div id="masq-pc-icvitals" class="clearfix">
+
     <div id="masq-portrait">
 
+
{{#if: {{{portrait|}}}|[[File:{{{portrait}}}]]
   <div id="masq-pc-portrait-box">
+
  |{{#ifexist: File:{{PAGENAME}}.png|[[File:{{PAGENAME}}.png]]
 
+
    |{{#ifexist: File:{{PAGENAME}}.jpg|[[File:{{PAGENAME}}.jpg]]
     <div id="masq-pc-portrait">{{#switch: {{#ifexist: File:{{PAGENAME}}.png|[[File:{{PAGENAME}}.png|300px]]}}|{{#ifexist: {{PAGENAME}}.jpg|[[File:{{PAGENAME}}.jpg|300px]]}}|{{#ifexist: {{PAGENAME}}.jpeg|[[File:{{PAGENAME}}.jpeg|300px]]}}|{{#ifexist: {{PAGENAME}}.gif|[[File:{{PAGENAME}}.gif|300px]]}}|{{#ifexist: {{PAGENAME}}.webp|[[File:{{PAGENAME}}.webp|300px]]}}|[[File:Portrait_Placeholder.png|300px]]}}</div>
+
      |{{#ifexist: File:{{PAGENAME}}.jpeg|[[File:{{PAGENAME}}.jpeg]]
 +
        |{{#ifexist: File:{{PAGENAME}}.gif|[[File:{{PAGENAME}}.gif]]
 +
          |{{#ifexist: File:{{PAGENAME}}.webp|[[File:{{PAGENAME}}.webp]]
 +
          }}
 +
        }}
 +
      }}
 +
    }}
 +
  }}
 +
}}
 +
    </div>
 
   </div>
 
   </div>
 
+
{| id="masq-icvitals-table"
{| id="masq-pc-icvitals-table"
+
{{#if: {{{characterpronouns|}}}|<nowiki/>
|scope="row"|'''Clan'''
+
{{!}}-
|[[:Category:{{{clan}}}|{{{clan}}}]]
+
!scope="row"{{!}}Pronouns
|-
+
{{!}} {{{characterpronouns}}}
|scope="row"|'''Sect'''
+
}}{{#switch: {{{type}}}| Ghoul|Revenant|Dhampir = <nowiki/>
|[[:Category:{{{sect}}}|{{{sect}}}]]
+
{{!}}-
|-
+
!scope="row"{{!}}Creature Type
|scope="row|'''Social Class'''
+
{{!}} [[:Category:{{{type}}}|{{{type}}}]]
|{{{socialclass}}}
+
}}{{#if: {{{clan|}}}|<nowiki/>
|-
+
{{!}}-
|scope="row"|'''Morality'''
+
!scope="row"{{!}}Clan
|{{{morality}}}
+
{{!}} [[:Category:{{{clan}}}|{{{clan}}}]]
{{#if: {{{pcgroup|}}}|
+
}}{{#if: {{{clanfaction|}}}|<nowiki/>
 +
{{!}}-
 +
!scope="row"{{!}}Clan Faction
 +
{{!}} [[:Category:{{{clanfaction}}}|{{{clanfaction}}}]]
 +
}}{{#if: {{{sect|}}}|<nowiki/>
 +
{{!}}-
 +
!scope="row"{{!}}Sect
 +
{{!}} [[:Category:{{{sect}}}|{{{sect}}}]]
 +
}}{{#if: {{{type|}}}|{{#ifeq: {{{type}}}|Dhampir|<nowiki/>
 +
{{!}}-
 +
!scope="row"{{!}}Sect
 +
{{!}} [[:Category:Anarch|Anarch]]
 +
}}}}{{#if: {{{sectfaction|}}}|<nowiki/>
 +
{{!}}-
 +
!scope="row"{{!}}Sect Faction
 +
{{!}} [[:Category:{{{sectfaction}}}|{{{sectfaction}}}]]
 +
}}{{#if: {{{socialclass|}}}|<nowiki/>
 +
{{!}}-
 +
!scope="row"{{!}}Social Class
 +
{{!}} {{{socialclass}}}
 +
}}{{#if: {{{morality|}}}|<nowiki/>
 +
{{!}}-
 +
!scope="row"{{!}}Morality
 +
{{!}} {{{morality}}}
 +
}}{{#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}}}|{{{territory}}}]]
 +
}}{{#if: {{{pcgroup1|}}}|<nowiki/>
 +
{{!}}-
 +
!scope="row"{{!}}{{ucfirst:{{lc:{{{pcgroup1type}}}}}}}
 +
{{!}} [[:Category:{{{pcgroup1}}}|{{{pcgroup1}}}]]
 +
}}{{#if: {{{pcgroup2|}}}|<nowiki/>
 +
{{!}}-
 +
!scope="row"{{!}}{{ucfirst:{{lc:{{{pcgroup2type}}}}}}}
 +
{{!}} [[:Category:{{{pcgroup2}}}|{{{pcgroup2}}}]]
 +
}}{{#if: {{{pcgroup3|}}}|<nowiki/>
 +
{{!}}-
 +
!scope="row"{{!}}{{ucfirst:{{lc:{{{pcgroup3type}}}}}}}
 +
{{!}} [[:Category:{{{pcgroup3}}}|{{{pcgroup3}}}]]
 +
}}{{#if: {{{position|}}}|<nowiki/>
 
{{!}}-
 
{{!}}-
{{!}}scope="row"{{!}}'''{{{pcgrouptype}}}'''
+
!scope="row"{{!}}Position(s)
{{!}}[[{{{pcgroup}}}]]}}
+
{{!}} {{{position}}}
|-
+
}}
|scope="row"|'''Position(s)'''
 
|{{{position}}}
 
 
|}
 
|}
 
</div>
 
</div>
 
+
<div class="masq-divider"></div>
<div class="masq-pc-divider">
+
{{PC
 +
|furtherinfopic={{{furtherinfopic|}}}
 +
|desc={{{desc|}}}
 +
|timeline={{{timeline|}}}
 +
|bio={{{bio|}}}
 +
|rumors={{{rumors|}}}
 +
|quotes={{{quotes|}}}
 +
|oocvitalspic={{{oocvitalspic|}}}
 +
|player={{{player|}}}
 +
|playerpronouns={{{playerpronouns|}}}
 +
|playeremail={{{playeremail|}}}
 +
|mesnumber={{{mesnumber|}}}
 +
|vss={{{vss|}}}
 +
|domain={{{domain|}}}
 +
|territory={{{territory|}}}
 +
|st={{{st|}}}
 +
|stemail={{{stemail|}}}
 +
|notvst={{{notvst|}}}
 +
}}
 
</div>
 
</div>
 
+
{{#if: {{{type|}}}|{{#ifeq: {{{type}}}|Vampire| |[[Category:{{{type}}}]]}}}}<nowiki/>
<div id="masq-pc-furtherinfo" class="clearfix">
+
{{#if: {{{type|}}}|{{#ifeq: {{{type}}}|Dhampir|[[Category:Anarch]]}}}}<nowiki/>
<span id="masq-pc-furtherinfo-heading" class="my-h2">Further Information</span>
+
{{#if: {{{clan|}}}|[[Category:{{{clan}}}]]}}<nowiki/>
{{#if: {{{furtherinfopic|}}}|<div id="masq-pc-furtherinfo-pic">[[File:{{{furtherinfopic}}}|300px]]</div>}}{{#if:{{{desc|}}}|<div id="masq-pc-desc"><span id="masq-pc-desc-title" class="my-h3">Description</span>
+
{{#switch: {{{clan|}}}<nowiki/>
{{{desc}}}
+
  | Banu Haqim Warrior|Banu Haqim Sorcerer|Banu Haqim Vizier = [[Category:Banu Haqim]]<nowiki/>
</div>}}
+
  | Coyotes = [[Category:Gangrel]]<nowiki/>
{{#if:{{{timeline|}}}|<div id="masq-pc-timeline"><span id="masq-pc-timeline-title" class="my-h3">Timeline</span>
+
  | House Tremere|House Carna|House Goratrix = [[Category:Tremere]]<nowiki/>
{{{timeline}}}
+
  | Salubri Warrior|Salubri Healer = [[Category:Salubri]]<nowiki/>
</div>}}
+
}}<nowiki/>
{{#if:{{{bio|}}}|<div id="masq-pc-bio"><span id="masq-pc-bio-title" class="my-h3">Bio</span>
+
{{#if: {{{clanfaction|}}}|[[Category:{{{clanfaction}}}]]}}<nowiki/>
{{{bio}}}
+
{{#if: {{{sect|}}}|[[Category:{{{sect}}}]]}}<nowiki/>
</div>}}
+
{{#if: {{{sectfaction|}}}|[[Category:{{{sectfaction}}}]]}}<nowiki/>
 
+
{{#if: {{{family|}}}|[[Category:{{{family}}}]]}}<nowiki/>
{{#if:{{{rumors|}}}|<div id="masq-pc-rumors"><span id="masq-pc-rumors-title" class="my-h3">Rumors</span>
+
{{#if: {{{pcgroup1|}}}|[[Category:{{{pcgroup1}}}]]}}<nowiki/>
{{{rumors}}}
+
{{#if: {{{pcgroup2|}}}|[[Category:{{{pcgroup2}}}]]}}<nowiki/>
{{#ifexist: {{PAGENAME}} Rumors|{{:{{PAGENAME}} Rumors}}}}
+
{{#if: {{{pcgroup3|}}}|[[Category:{{{pcgroup3}}}]]}}<nowiki/>
{{#formlink:form=Add Rumors and Quotes|target={{PAGENAME}} Rumors|reload|link text=Add a rumor!}}
+
{{#if: {{{region|}}}|[[Category:{{{region}}}]]}}<nowiki/>
</div>}}
+
{{#if: {{{domain|}}}|[[Category:{{{domain}}}]]}}<nowiki/>
 
+
{{#if: {{{vss|}}}|[[Category:{{{vss}}}]]}}<nowiki/>
{{#if:{{{quotes|}}}|<div id="masq-pc-quotes"><span id="masp-pc-quotes-title" class="my-h3">Quotes</span>
+
{{#if: {{{territory|}}}|[[Category:{{{territory}}}]]}}<nowiki/>
{{{quotes}}}
+
[[Category:Masquerade PC]]{{Masquerade CSS}}</includeonly>
{{#ifexist: {{PAGENAME}} Quotes|{{:{{PAGENAME}} Quotes}}}}
 
{{#formlink:form=Add Rumors and Quotes|target={{PAGENAME}} Quotes|reload|link text=Add a quote!}}
 
</div>}}
 
</div>
 
 
 
<div id="masq-pc-oocvitals" class="clearfix"><span id="masq-pc-oocvitals-title" class="my-h2">OOC Information</span>
 
{{#if: {{{oocvitalspic|}}}|<div id="masq-pc-oocvitals-pic">[[File:{{{oocvitalspic}}}|300px]]</div>}}
 
{| id="masq-pc-oocvitals-table"
 
|scope="row"|'''Player'''
 
|{{{Player}}}
 
|-
 
|scope="row"|'''Player Email'''
 
|[mailto:{{{playeremail}}} {{{playeremail}}}]
 
|-
 
|scope="row|'''MES #'''
 
|{{{mesnumber}}}
 
|-
 
|scope="row"|'''Domain'''
 
|[[:Category:{{{domain}}}|{{{domain}}}]]
 
|-
 
|scope="row"|'''VSS'''
 
|[[:Category:{{{vss}}}|{{{vss}}}]]</nowiki>
 
{{#if: {{{territory}}}|{{!}}-
 
{{!}}scope="row"{{!}}'''Territory'''
 
{{!}}[[:Category:{{{territory}}}|{{{territory}}}]]}}
 
|-
 
|scope="row"|'''Storyteller'''
 
|{{#ifexist:{{{vss}}} VST|{{:{{{vss}}} VST}}|{{{storyteller}}}}}
 
|-
 
|scope="row"|'''Storyteller Email'''
 
|{{#ifexist:{{{vss}}} VST Email|[mailto:{{:{{{vss}}} VST Email}} {{:{{{vss}}} VST Email}}]|[mailto:{{{storytelleremail}}} {{{storytelleremail}}}]}}
 
|}
 
</div>
 
</div>
 
[[Category:{{{clan}}}]]
 
{{#switch: {{{clan}}}
 
  | Banu Haqim Warrior|Banu Haqim Sorcerer|Banu Haqim Vizier = [[Category:Banu Haqim]]
 
  | Ahrimanes|Coyotes|Outlaw|Primal|Noiad = [[Category:Gangrel]]
 
  | House Tremere|House Carna|House Goratrix|Teylyav = [[Category:Tremere]]
 
  | Salubri Warrior|Salubri Healer = [[Category:Salubri]]
 
}}
 
[[Category:{{{sect}}}]]
 
[[Category:{{{domain}}}]]
 
[[Category:{{{vss}}}]]
 
[[Category:{{{territory}}}]]
 
[[Category:Masquerade PC]]
 
{{#css:
 
.mw-body h1.firstHeading {
 
  font-family: "Special Elite";
 
  color: #800e0e;
 
  font-weight: bolder;
 
  font-size: 22px;
 
}
 
#masq-pc-container {
 
  background-color:#ddd;
 
  border-style:solid;
 
  border-color:#800e0e;
 
  border-width:thin;
 
}
 
#masq-pc-title {
 
  font-family: "Special Elite", serif;
 
  font-size:2.6em;
 
  line-height:120px;
 
  text-align:center;
 
  font-weight:bold;
 
  color:#800e0e;
 
  margin:20px 0 10px 0;
 
  vertical-align:middle;
 
}
 
h2, .my-h2 {
 
  font-family: "Special Elite" !important;
 
  color: #800e0e;
 
  font-weight: bold;
 
  size: 18px;
 
}
 
.my-h3 {
 
  font-family: "Special Elite";
 
  color: #800e0e;
 
  font-weight: bold;
 
  size: 16px
 
}
 
p, td {
 
  font-size: 16px;
 
  font-family: 'Candara', 'Segoe UI', sans-serif;
 
  vertical-align:top;
 
}
 
#masq-pc-badges {
 
  float:right;
 
}
 
#masq-pc-icvitals, #masq-pc-furtherinfo, #masq-pc-oocvitals {
 
  margin: 20px;
 
}
 
#masq-pc-portrait, #masq-pc-furtherinfo-pic, #masq-pc-oocvitals-pic {
 
  float:right;
 
  clear:both;
 
}
 
#masq-pc-oocvitals {
 
  background-color:#bbb;
 
  border-style:solid;
 
  border-color:#800e0e;
 
  padding:5px;
 
}
 
#masq-pc-icvitals-table, #masq-pc-oocvitals-table {
 
  vertical-align: top;
 
}
 
a:link, a.external:link {
 
  color: #a00;
 
}
 
a:visited, a.external:visited {
 
  color: #800e0e;
 
}
 
a:hover, a.external:hover {
 
  color: #c00;
 
}
 
a:active, a.external:active {
 
  color: #f00;
 
}
 
.clearfix::after {
 
  content: "";
 
  clear: both;
 
  display: table;
 
}
 
}}
 
</includeonly>
 

Latest revision as of 16:24, 11 February 2021

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

{{Masquerade PC
|name=
|portrait=
|pronouns=
|type=
|clan=
|clanfaction=
|sect=
|sectfaction=
|socialclass=
|morality=
|domitor=
|domitorpagename=
|domitorclan=
|domitorsect=
|domitorsocialclass=
|family=
|territory=
|position=
|pcgroup1=
|pcgroup1type=
|pcgroup2=
|pcgroup2type=
|pcgroup3=
|pcgroup3type=
|furtherinfopic=
|desc=
|timeline=
|bio=
|rumors=
|quotes=
|oocvitalspic=
|player=
|playerpronouns=
|playeremail=
|mesnumber=
|vss=
|domain=
|st= 
|stemail=
|notvst=
}}

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 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.

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