Difference between revisions of "Template:Masquerade NPC"

From Modern Enigma Society 2020 Wiki
Jump to navigation Jump to search
staging>Annie
 
 
(13 intermediate revisions by the same user not shown)
Line 4: Line 4:
 
{{Masquerade NPC
 
{{Masquerade NPC
 
|name=
 
|name=
 +
|portrait=
 +
|characterpronouns=
 
|type=
 
|type=
 
|clan=
 
|clan=
Line 39: Line 41:
 
|oocvitalspic=
 
|oocvitalspic=
 
|portrayer=
 
|portrayer=
 +
|portrayerpronouns=
 
|portrayeremail=
 
|portrayeremail=
 
|portrayermesnumber=
 
|portrayermesnumber=
Line 59: Line 62:
  
 
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 NPC}}__NOTOC__ __NOEDITSECTION__<div id="masq-container">
<div id="masq-npc-container">
+
<div id="masq-title" class="clearfix">{{{name}}}<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-npc-title" class="clearfix">{{{name}}}<div id="masq-npc-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-npc-icvitals" class="clearfix">
+
<div id="masq-icvitals" class="clearfix">
  
   <div id="masq-npc-portrait-box">
+
   <div id="masq-portrait-box">
  
     <div id="masq-npc-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>
+
     <div id="masq-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>
  
{| id="masq-npc-icvitals-table"
+
{| id="masq-icvitals-table"
 
{{#switch: {{{type}}}| Ghoul|Revenant|Dhampir =
 
{{#switch: {{{type}}}| Ghoul|Revenant|Dhampir =
 
{{!}}-
 
{{!}}-
Line 82: Line 98:
 
{{!}}-
 
{{!}}-
 
!scope="row"{{!}}Creature Type
 
!scope="row"{{!}}Creature Type
{{!}}{{{othertype}}}
+
{{!}} {{{othertype}}}
 +
}}{{#if: {{{characterpronouns|}}}|<nowiki/>
 +
{{!}}-
 +
!scope="row"{{!}}Pronouns
 +
{{!}} {{{characterpronouns}}}
 
}}{{#if: {{{clan|}}}|<nowiki/>
 
}}{{#if: {{{clan|}}}|<nowiki/>
 
{{!}}-
 
{{!}}-
 
!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}}}]]
+
{{!}} [[{{{domitorpagename}}}|{{{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: {{{mortalorg|}}}|<nowiki/>
 
}}{{#if: {{{mortalorg|}}}|<nowiki/>
 
{{!}}-
 
{{!}}-
 
!scope="row"{{!}}Mortal Organization
 
!scope="row"{{!}}Mortal Organization
{{!}}{{{mortalorg}}}
+
{{!}} {{{mortalorg}}}
 
}}{{#if: {{{truefaith|}}}|<nowiki/>
 
}}{{#if: {{{truefaith|}}}|<nowiki/>
 
{{!}}-
 
{{!}}-
 
!scope="row"{{!}}True Faith
 
!scope="row"{{!}}True Faith
{{!}}Yes
+
{{!}} Yes
 
}}{{#if: {{{kith|}}}|<nowiki/>
 
}}{{#if: {{{kith|}}}|<nowiki/>
 
{{!}}-
 
{{!}}-
 
!scope="row"{{!}}Kith
 
!scope="row"{{!}}Kith
{{!}}[[:Category:Masquerade NPC {{{kith}}}|{{{kith}}}]]
+
{{!}} [[:Category:Masquerade NPC {{{kith}}}|{{{kith}}}]]
 
}}{{#if: {{{court|}}}|<nowiki/>
 
}}{{#if: {{{court|}}}|<nowiki/>
 
{{!}}-
 
{{!}}-
 
!scope="row"{{!}}Court
 
!scope="row"{{!}}Court
{{!}}[[:Category:Masquerade NPC {{{court}}}|{{{court}}}]]
+
{{!}} [[:Category:Masquerade NPC {{{court}}}|{{{court}}}]]
 
}}{{#if: {{{seeming|}}}|<nowiki/>
 
}}{{#if: {{{seeming|}}}|<nowiki/>
 
{{!}}-
 
{{!}}-
 
!scope="row"{{!}}Seeming
 
!scope="row"{{!}}Seeming
{{!}}{{{seeming}}}
+
{{!}} {{{seeming}}}
 
}}{{#if: {{{subtype|}}}|<nowiki/>
 
}}{{#if: {{{subtype|}}}|<nowiki/>
 
{{!}}-
 
{{!}}-
 
!scope="row"{{!}}Subtype
 
!scope="row"{{!}}Subtype
{{!}}{{{subtype}}}
+
{{!}} {{{subtype}}}
 
}}{{#if: {{{pcgroup1|}}}|<nowiki/>
 
}}{{#if: {{{pcgroup1|}}}|<nowiki/>
 
{{!}}-
 
{{!}}-
 
!scope="row"{{!}}{{ucfirst:{{lc:{{{pcgroup1type}}}}}}}
 
!scope="row"{{!}}{{ucfirst:{{lc:{{{pcgroup1type}}}}}}}
{{!}}[[{{{pcgroup1}}}]]
+
{{!}} [[{{{pcgroup1}}}]]
 
}}{{#if: {{{pcgroup2|}}}|<nowiki/>
 
}}{{#if: {{{pcgroup2|}}}|<nowiki/>
 
{{!}}-
 
{{!}}-
 
!scope="row"{{!}}{{ucfirst:{{lc:{{{pcgroup2type}}}}}}}
 
!scope="row"{{!}}{{ucfirst:{{lc:{{{pcgroup2type}}}}}}}
{{!}}[[{{{pcgroup2}}}]]
+
{{!}} [[{{{pcgroup2}}}]]
 
}}{{#if: {{{position|}}}|<nowiki/>
 
}}{{#if: {{{position|}}}|<nowiki/>
 
{{!}}-
 
{{!}}-
 
!scope="row"{{!}}Position(s)
 
!scope="row"{{!}}Position(s)
{{!}}{{{position}}}
+
{{!}} {{{position}}}
 
}}
 
}}
 
|}
 
|}
 
</div>
 
</div>
  
<div class="masq-npc-divider">
+
<div class="masq-divider">
</div>
 
 
 
<div id="masq-npc-furtherinfo" class="clearfix">
 
<span id="masq-npc-furtherinfo-heading" class="my-h2">Further Information</span>
 
{{#if: {{{furtherinfopic|}}}|<div id="masq-npc-furtherinfo-pic">[[File:{{{furtherinfopic}}}|300px]]</div>}}{{#if:{{{desc|}}}|<div id="masq-npc-desc"><span id="masq-npc-desc-title" class="my-h3">Description</span>
 
{{{desc}}}
 
</div>}}
 
{{#if:{{{timeline|}}}|<div id="masq-npc-timeline"><span id="masq-npc-timeline-title" class="my-h3">Timeline</span>
 
{{{timeline}}}
 
</div>}}
 
{{#if:{{{bio|}}}|<div id="masq-npc-bio"><span id="masq-npc-bio-title" class="my-h3">Bio</span>
 
{{{bio}}}
 
</div>}}
 
<div id="masq-npc-rumors"><span id="masp-npc-rumors-title" class="my-h3">Rumors</span>
 
{{{rumors}}}<br>
 
{{#ifexist: {{PAGENAME}} Rumors|{{:{{PAGENAME}} Rumors}}<br>}}
 
{{#ifeq: {{{editablerumors}}}|Yes|{{#formlink:form=Masquerade NPC Add Rumors|target={{PAGENAME}} Rumors|returnto={{PAGENAME}}|reload|link text=Add a rumor!}}}}
 
</div>
 
<div id="masq-npc-quotes"><span id="masp-npc-quotes-title" class="my-h3">Quotes</span>
 
{{{quotes}}}<br>
 
{{#ifexist: {{PAGENAME}} Quotes|{{:{{PAGENAME}} Quotes}}<br>}}
 
{{#ifeq: {{{editablequotes}}}|Yes|{{#formlink:form=Add Rumors and Quotes|target={{PAGENAME}} Quotes|returnto={{PAGENAME}}|reload|link text=Add a quote!}}}}
 
</div>
 
 
</div>
 
</div>
 
+
{{NPC
<div id="masq-npc-oocvitals" class="clearfix"><span id="masq-npc-oocvitals-title" class="my-h2">OOC Information</span>
+
|furtherinfopic={{{furtherinfopic|}}}
{{#if: {{{oocvitalspic|}}}|<div id="masq-npc-oocvitals-pic">[[File:{{{oocvitalspic}}}|300px]]</div>}}
+
|desc={{{desc|}}}
{| id="masq-npc-oocvitals-table"
+
|timeline={{{timeline|}}}
{{#if: {{{portrayer|}}}|<nowiki/>
+
|bio={{{bio|}}}
{{!}}-
+
|rumors={{{rumors|}}}
!scope="row"{{!}}Portrayed by
+
|editablerumors={{{editablerumors|}}}
{{!}}[mailto:{{{portrayeremail}}} {{{portrayer}}}]
+
|quotes={{{quotes|}}}
}}{{#if: {{{portrayermesnumber|}}}|<nowiki/>
+
|editablequotes={{{editablequotes|}}}
{{!}}-
+
|oocvitalspic={{{oocvitalspic|}}}
!scope="row"{{!}}Portrayer's MES Number
+
|portrayer={{{portrayer|}}}
{{!}}{{{portrayermesnumber}}}
+
|portrayerpronouns={{{portrayerpronouns|}}}
}}{{#if: {{{region|}}}|<nowiki/>
+
|portrayeremail={{{portrayeremail|}}}
{{!}}-
+
|portrayermesnumber={{{portrayermesnumber|}}}
!scope="row"{{!}}Region
+
|ownership={{{ownership|}}}
{{!}}{{{region}}}
+
|region={{{region|}}}
}}{{#if: {{{domain|}}}|<nowiki/>
+
|domain={{{domain|}}}
{{!}}-
+
|vss={{{vss|}}}
!scope="row"{{!}}Domain
+
|territory={{{territory|}}}
{{!}}[[:Category:{{{domain}}}|{{{domain}}}]]
+
|st={{{st|}}}
}}{{#if: {{{territory|}}}|<nowiki/>
+
|stemail={{{stemail|}}}
{{!}}-
 
!scope="row"{{!}}Territory
 
{{!}}{{{Territory}}}
 
 
}}
 
}}
|-
 
!scope="row"|{{#switch: {{{ownership}}}|Local = VST|Regional = RST|National = NST}}
 
| {{#switch: {{{ownership}}}|Local = [mailto:{{:{{{vss}}} VST Email}} {{:{{{vss}}} VST}}]|Regional = [mailto:{{:{{{region}}} RST Email}} {{:{{{region}}} RST}}]|National = [mailto:{{:NST Email}} {{:NST}}]}}
 
|}
 
</div>
 
 
</div>
 
</div>
 
{{#switch: {{{type|}}}
 
{{#switch: {{{type|}}}
Line 257: Line 246:
 
{{#if: {{{territory|}}}|[[Category:{{{territory}}}]]}}
 
{{#if: {{{territory|}}}|[[Category:{{{territory}}}]]}}
 
[[Category:Masquerade NPC]]
 
[[Category:Masquerade NPC]]
{{#css:
+
{{Masquerade CSS}}
.mw-body h1.firstHeading {
 
  font-family: "Special Elite";
 
  color: #800e0e;
 
  font-weight: bold;
 
  font-size: 22px;
 
}
 
#masq-npc-container {
 
  background-color:#ddd;
 
  border-style:solid;
 
  border-color:#800e0e;
 
  border-width:thin;
 
}
 
#masq-npc-title {
 
  font-family: "Special Elite", serif;
 
  font-size:2.6em;
 
  line-height:120px;
 
  text-align:center;
 
  font-weight:bolder;
 
  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, th {
 
  font-size: 16px;
 
  font-family: 'Candara', 'Segoe UI', sans-serif;
 
  vertical-align:top;
 
  text-align:left;
 
}
 
#masq-npc-badges {
 
  float:right;
 
}
 
#masq-npc-icvitals, #masq-npc-furtherinfo, #masq-npc-oocvitals {
 
  margin: 20px;
 
}
 
#masq-npc-portrait, #masq-npc-furtherinfo-pic, #masq-npc-oocvitals-pic {
 
  float:right;
 
  clear:both;
 
}
 
#masq-npc-oocvitals {
 
  background-color:#bbb;
 
  border-style:solid;
 
  border-color:#800e0e;
 
  padding:5px;
 
}
 
#masq-npc-icvitals-table, #masq-npc-oocvitals-table, th {
 
  vertical-align: top;
 
  text-align:left;
 
}
 
a.mw-parser-output:link, a.mw-parser-output.external:link {
 
  color: #a00;
 
}
 
a.mw-parser-output:visited, a.mw-parser-output.external:visited {
 
  color: #800e0e;
 
}
 
a.mw-parser-output:hover, a.mw-parser-output.external:hover {
 
  color: #c00;
 
}
 
a.mw-parser-output:active, a.mw-parser-output.external:active {
 
  color: #f00;
 
}
 
.clearfix::after {
 
  content: "";
 
  clear: both;
 
  display: table;
 
}
 
}}
 
 
</includeonly>
 
</includeonly>

Latest revision as of 16:14, 28 October 2020

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

{{Masquerade NPC
|name=
|portrait=
|characterpronouns=
|type=
|clan=
|clanfaction=
|sect=
|sectfaction=
|socialclass=
|morality=
|domitor=
|domitorpagename=
|domitorclan=
|domitorsect=
|domitorsocialclass=
|family=
|mortalorg=
|truefaith=
|kith=
|court=
|seeming=
|othertype=
|subtype=
|position=
|pcgroup1=
|pcgroup1type=
|pcgroup2=
|pcgroup2type=
|furtherinfopic=
|desc=
|timeline=
|bio=
|rumors=
|editablerumors=
|quotes=
|editablequotes=
|oocvitalspic=
|portrayer=
|portrayerpronouns=
|portrayeremail=
|portrayermesnumber=
|ownership=
|region=
|domain=
|vss=
|territory=
|st= 
|stemail=
}}

The following parameters are required: name, 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 NPC'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 NPC 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 NPC pages from having out-of-date info for the VST, since most players aren't going to want to update all their NPC pages as a new VST. If your VSS page has out-of-date info that's overriding the correct info on your NPC 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.