Difference between revisions of "Template:Masquerade PC"

From Modern Enigma Society 2020 Wiki
Jump to navigation Jump to search
(Undo revision 11074 by Annie B. US2018100133 (talk))
Tag: Undo
 
(59 intermediate revisions by the same user not shown)
Line 4: Line 4:
 
{{Masquerade PC
 
{{Masquerade PC
 
|name=
 
|name=
 +
|portrait=
 +
|pronouns=
 
|type=
 
|type=
 
|clan=
 
|clan=
Line 17: Line 19:
 
|domitorsocialclass=
 
|domitorsocialclass=
 
|family=
 
|family=
 +
|territory=
 
|position=
 
|position=
 
|pcgroup1=
 
|pcgroup1=
Line 22: Line 25:
 
|pcgroup2=
 
|pcgroup2=
 
|pcgroup2type=
 
|pcgroup2type=
 +
|pcgroup3=
 +
|pcgroup3type=
 
|furtherinfopic=
 
|furtherinfopic=
 
|desc=
 
|desc=
Line 30: Line 35:
 
|oocvitalspic=
 
|oocvitalspic=
 
|player=
 
|player=
 +
|playerpronouns=
 
|playeremail=
 
|playeremail=
 
|mesnumber=
 
|mesnumber=
 
|vss=
 
|vss=
 
|domain=
 
|domain=
|territory=
 
 
|st=  
 
|st=  
 
|stemail=
 
|stemail=
 +
|notvst=
 
}}
 
}}
 
</pre>
 
</pre>
Line 48: 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">{{#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-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">
+
      |{{#ifexist: File:{{PAGENAME}}.jpeg|[[File:{{PAGENAME}}.jpeg]]
{{#ifexist: File:{{PAGENAME}}.png|[[File:{{PAGENAME}}.png]]
+
        |{{#ifexist: File:{{PAGENAME}}.gif|[[File:{{PAGENAME}}.gif]]
  |{{#ifexist: File:{{PAGENAME}}.jpg|[[File:{{PAGENAME}}.jpg]]
+
          |{{#ifexist: File:{{PAGENAME}}.webp|[[File:{{PAGENAME}}.webp]]
    |{{#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]]
 
 
         }}
 
         }}
 
       }}
 
       }}
Line 70: Line 73:
 
     </div>
 
     </div>
 
   </div>
 
   </div>
 
+
{| id="masq-icvitals-table"
{| id="masq-pc-icvitals-table"
+
{{#if: {{{characterpronouns|}}}|<nowiki/>
{{#switch: {{{type}}}| Ghoul|Revenant|Dhampir =
+
{{!}}-
 +
!scope="row"{{!}}Pronouns
 +
{{!}} {{{characterpronouns}}}
 +
}}{{#switch: {{{type}}}| Ghoul|Revenant|Dhampir = <nowiki/>
 
{{!}}-
 
{{!}}-
 
!scope="row"{{!}}Creature Type
 
!scope="row"{{!}}Creature Type
Line 79: Line 85:
 
{{!}}-
 
{{!}}-
 
!scope="row"{{!}}Clan
 
!scope="row"{{!}}Clan
{{!}}[[:Category:{{{clan}}}|{{{clan}}}]]
+
{{!}} [[:Category:{{{clan}}}|{{{clan}}}]]
 
}}{{#if: {{{clanfaction|}}}|<nowiki/>
 
}}{{#if: {{{clanfaction|}}}|<nowiki/>
 
{{!}}-
 
{{!}}-
 
!scope="row"{{!}}Clan Faction
 
!scope="row"{{!}}Clan Faction
{{!}}[[:Category:{{{clanfaction}}}|{{{clanfaction}}}]]
+
{{!}} [[:Category:{{{clanfaction}}}|{{{clanfaction}}}]]
 
}}{{#if: {{{sect|}}}|<nowiki/>
 
}}{{#if: {{{sect|}}}|<nowiki/>
 
{{!}}-
 
{{!}}-
 
!scope="row"{{!}}Sect
 
!scope="row"{{!}}Sect
{{!}}[[:Category:{{{sect}}}|{{{sect}}}]]
+
{{!}} [[:Category:{{{sect}}}|{{{sect}}}]]
 
}}{{#if: {{{type|}}}|{{#ifeq: {{{type}}}|Dhampir|<nowiki/>
 
}}{{#if: {{{type|}}}|{{#ifeq: {{{type}}}|Dhampir|<nowiki/>
 
{{!}}-
 
{{!}}-
 
!scope="row"{{!}}Sect
 
!scope="row"{{!}}Sect
{{!}}[[:Category:Anarch|Anarch]]
+
{{!}} [[:Category:Anarch|Anarch]]
 
}}}}{{#if: {{{sectfaction|}}}|<nowiki/>
 
}}}}{{#if: {{{sectfaction|}}}|<nowiki/>
 
{{!}}-
 
{{!}}-
 
!scope="row"{{!}}Sect Faction
 
!scope="row"{{!}}Sect Faction
{{!}}[[:Category:{{{sectfaction}}}|{{{sectfaction}}}]]
+
{{!}} [[:Category:{{{sectfaction}}}|{{{sectfaction}}}]]
 
}}{{#if: {{{socialclass|}}}|<nowiki/>
 
}}{{#if: {{{socialclass|}}}|<nowiki/>
 
{{!}}-
 
{{!}}-
 
!scope="row"{{!}}Social Class
 
!scope="row"{{!}}Social Class
{{!}}{{{socialclass}}}
+
{{!}} {{{socialclass}}}
 
}}{{#if: {{{morality|}}}|<nowiki/>
 
}}{{#if: {{{morality|}}}|<nowiki/>
 
{{!}}-
 
{{!}}-
 
!scope="row"{{!}}Morality
 
!scope="row"{{!}}Morality
{{!}}{{{morality}}}
+
{{!}} {{{morality}}}
 
}}{{#if: {{{domitor|}}}|<nowiki/>
 
}}{{#if: {{{domitor|}}}|<nowiki/>
 
{{!}}-
 
{{!}}-
 
!scope="row"{{!}}Domitor
 
!scope="row"{{!}}Domitor
{{!}}[[{{{domitorpagename}}}|{{{domitor}}}]]
+
{{!}} {{#ifexist: {{{domitorpagename}}}|[[{{{domitorpagename}}}|{{{domitor}}}]]|[[{{{domitor}}}]]}}
 
}}{{#if: {{{domitorclan|}}}|<nowiki/>
 
}}{{#if: {{{domitorclan|}}}|<nowiki/>
 
{{!}}-
 
{{!}}-
 
!scope="row"{{!}}{{{domitor}}}'s Clan
 
!scope="row"{{!}}{{{domitor}}}'s Clan
{{!}}[[:Category:{{{domitorclan}}}|{{{domitorclan}}}]]
+
{{!}} [[:Category:{{{domitorclan}}}|{{{domitorclan}}}]]
 
}}{{#if: {{{domitorsect|}}}|<nowiki/>
 
}}{{#if: {{{domitorsect|}}}|<nowiki/>
 
{{!}}-
 
{{!}}-
 
!scope="row"{{!}}{{{domitor}}}'s Sect
 
!scope="row"{{!}}{{{domitor}}}'s Sect
{{!}}[[:Category:{{{domitorsect}}}|{{{domitorsect}}}]]
+
{{!}} [[:Category:{{{domitorsect}}}|{{{domitorsect}}}]]
 
}}{{#if: {{{domitorsocialclass|}}}|<nowiki/>
 
}}{{#if: {{{domitorsocialclass|}}}|<nowiki/>
 
{{!}}-
 
{{!}}-
 
!scope="row"{{!}}{{{domitor}}}'s Social Class
 
!scope="row"{{!}}{{{domitor}}}'s Social Class
{{!}}{{{domitorsocialclass}}}
+
{{!}} {{{domitorsocialclass}}}
 
}}{{#if: {{{family|}}}|<nowiki/>
 
}}{{#if: {{{family|}}}|<nowiki/>
 
{{!}}-
 
{{!}}-
 
!scope="row"{{!}}Revenant Family
 
!scope="row"{{!}}Revenant Family
{{!}}[[{{{family}}}]]
+
{{!}} [[{{{family}}}]]
 +
}}{{#if: {{{territory|}}}|<nowiki/>
 +
{{!}}-
 +
!scope="row"{{!}}Territory
 +
{{!}} [[:Category:{{{territory}}}|{{{territory}}}]]
 
}}{{#if: {{{pcgroup1|}}}|<nowiki/>
 
}}{{#if: {{{pcgroup1|}}}|<nowiki/>
 
{{!}}-
 
{{!}}-
 
!scope="row"{{!}}{{ucfirst:{{lc:{{{pcgroup1type}}}}}}}
 
!scope="row"{{!}}{{ucfirst:{{lc:{{{pcgroup1type}}}}}}}
{{!}}[[:Category:{{{pcgroup1}}}|{{{pcgroup1}}}]]
+
{{!}} [[:Category:{{{pcgroup1}}}|{{{pcgroup1}}}]]
 
}}{{#if: {{{pcgroup2|}}}|<nowiki/>
 
}}{{#if: {{{pcgroup2|}}}|<nowiki/>
 
{{!}}-
 
{{!}}-
 
!scope="row"{{!}}{{ucfirst:{{lc:{{{pcgroup2type}}}}}}}
 
!scope="row"{{!}}{{ucfirst:{{lc:{{{pcgroup2type}}}}}}}
{{!}}[[:Category:{{{pcgroup2}}}|{{{pcgroup2}}}]]
+
{{!}} [[:Category:{{{pcgroup2}}}|{{{pcgroup2}}}]]
 +
}}{{#if: {{{pcgroup3|}}}|<nowiki/>
 +
{{!}}-
 +
!scope="row"{{!}}{{ucfirst:{{lc:{{{pcgroup3type}}}}}}}
 +
{{!}} [[:Category:{{{pcgroup3}}}|{{{pcgroup3}}}]]
 
}}{{#if: {{{position|}}}|<nowiki/>
 
}}{{#if: {{{position|}}}|<nowiki/>
 
{{!}}-
 
{{!}}-
 
!scope="row"{{!}}Position(s)
 
!scope="row"{{!}}Position(s)
{{!}}{{{position}}}
+
{{!}} {{{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/>
<div id="masq-pc-rumors"><span id="masp-pc-rumors-title" class="my-h3">Rumors</span>
+
{{#if: {{{family|}}}|[[Category:{{{family}}}]]}}<nowiki/>
{{#if: {{{rumors|}}}|{{{rumors}}}}}<br>
+
{{#if: {{{pcgroup1|}}}|[[Category:{{{pcgroup1}}}]]}}<nowiki/>
{{#ifexist: {{PAGENAME}} Rumors|{{:{{PAGENAME}} Rumors}}<br>}}
+
{{#if: {{{pcgroup2|}}}|[[Category:{{{pcgroup2}}}]]}}<nowiki/>
{{#formlink:form=Masquerade PC Add Rumors|target={{PAGENAME}} Rumors|returnto={{PAGENAME}}|reload|link text=Edit Rumors: Add your own!}}
+
{{#if: {{{pcgroup3|}}}|[[Category:{{{pcgroup3}}}]]}}<nowiki/>
</div>
+
{{#if: {{{region|}}}|[[Category:{{{region}}}]]}}<nowiki/>
<div id="masq-pc-quotes"><span id="masp-pc-quotes-title" class="my-h3">Quotes</span>
+
{{#if: {{{domain|}}}|[[Category:{{{domain}}}]]}}<nowiki/>
{{#if: {{{quotes|}}}|{{{quotes}}}}}<br>
+
{{#if: {{{vss|}}}|[[Category:{{{vss}}}]]}}<nowiki/>
{{#ifexist: {{PAGENAME}} Quotes|{{:{{PAGENAME}} Quotes}}<br>}}
+
{{#if: {{{territory|}}}|[[Category:{{{territory}}}]]}}<nowiki/>
{{#formlink:form=Masquerade PC Add Quotes|target={{PAGENAME}} Quotes|returnto={{PAGENAME}}|reload|link text=Edit Quotes: Add your own!}}
+
[[Category:Masquerade PC]]{{Masquerade CSS}}</includeonly>
</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
 
|[mailto:{{{playeremail}}} {{{player}}}]
 
|-
 
!scope="row|MES #
 
|{{{mesnumber}}}
 
|-
 
!scope="row"|Domain
 
|[[:Category:{{{domain}}}|{{{domain}}}]]<nowiki/>
 
{{#if: {{{territory|}}}|{{!}}-
 
!scope="row"{{!}}Territory
 
{{!}}[[:Category:{{{territory}}}|{{{territory}}}]]}}
 
|-
 
!scope="row"|Storyteller
 
|{{#ifexist:{{{vss}}} VST Email|[mailto:{{:{{{vss}}} VST Email}} {{:{{{vss}}} VST}}]|[mailto:{{{stemail}}} {{{st}}}]}}
 
|}
 
</div>
 
</div>
 
{{#if: {{{type|}}}|{{#ifeq: {{{type}}}|Vampire| |[[Category:{{{type}}}]]}}}}
 
{{#if: {{{type|}}}|{{#ifeq: {{{type}}}|Dhampir|[[Category:Anarch]]}}}}
 
{{#if: {{{clan|}}}|[[Category:{{{clan}}}]]}}
 
{{#switch: {{{clan|}}}
 
   | Banu Haqim Warrior|Banu Haqim Sorcerer|Banu Haqim Vizier = [[Category:Banu Haqim]]
 
   | Coyotes = [[Category:Gangrel]]
 
   | House Tremere|House Carna|House Goratrix = [[Category:Tremere]]
 
   | Salubri Warrior|Salubri Healer = [[Category:Salubri]]
 
}}
 
{{#if: {{{clanfaction|}}}|[[Category:{{{clanfaction}}}]]}}
 
{{#if: {{{sect|}}}|[[Category:{{{sect}}}]]}}
 
{{#if: {{{sectfaction|}}}|[[Category:{{{sectfaction}}}]]}}
 
{{#if: {{{family|}}}|[[Category:{{{family}}}]]}}
 
{{#if: {{{pcgroup1|}}}|[[Category:{{{pcgroup1}}}]]}}
 
{{#if: {{{pcgroup2|}}}|[[Category:{{{pcgroup2}}}]]}}
 
{{#if: {{{region|}}}|[[Category:{{{region}}}]]}}
 
{{#if: {{{domain|}}}|[[Category:{{{domain}}}]]}}
 
{{#if: {{{vss|}}}|[[Category:{{{vss}}}]]}}
 
{{#if: {{{territory|}}}|[[Category:{{{territory}}}]]}}
 
[[Category:Masquerade PC]]
 
{{#css:
 
.mw-body h1.firstHeading {
 
  font-family: "Special Elite";
 
  color: #800e0e;
 
  font-weight: bold;
 
  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:bolder;
 
  color:#800e0e;
 
  margin:20px;
 
  vertical-align:middle;
 
}
 
h2, .my-h2 {
 
  font-family: "Special Elite";
 
  color: #800e0e;
 
  font-weight: bold;
 
  size: 18px;
 
}
 
.my-h3 {
 
  font-family: "Special Elite";
 
  color: #800e0e;
 
  font-weight: bold;
 
  size: 16px
 
}
 
p, td, th, li {
 
  font-size: 16px;
 
  font-family: 'Candara', 'Segoe UI', sans-serif;
 
  vertical-align:top;
 
  text-align:left;
 
}
 
#masq-pc-badges {
 
  float:right;
 
  margins:20px;
 
}
 
#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-portrait img, #masq-pc-furtherinfo-pic img, #masq-pc-oocvitals-pic img {
 
  height: auto;
 
  max-width: 98%;
 
}
 
#masq-pc-oocvitals {
 
  background-color:#bbb;
 
  border-style:solid;
 
  border-color:#800e0e;
 
  padding:5px;
 
}
 
#masq-pc-icvitals-table, #masq-pc-oocvitals-table, th {
 
  vertical-align: top;
 
  text-align:left;
 
}
 
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.