Difference between revisions of "Template:Masquerade NPC"

From Modern Enigma Society 2020 Wiki
Jump to navigation Jump to search
 
(4 intermediate revisions by the same user not shown)
Line 62: 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>{{#default_form:Masquerade NPC}}__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">
+
     <div id="masq-portrait">
 
{{#if: {{{portrait|}}}|[[File:{{{portrait}}}]]
 
{{#if: {{{portrait|}}}|[[File:{{{portrait}}}]]
 
   |{{#ifexist: File:{{PAGENAME}}.png|[[File:{{PAGENAME}}.png]]
 
   |{{#ifexist: File:{{PAGENAME}}.png|[[File:{{PAGENAME}}.png]]
Line 87: Line 86:
 
   </div>
 
   </div>
  
{| id="masq-npc-icvitals-table"
+
{| id="masq-icvitals-table"
 
{{#switch: {{{type}}}| Ghoul|Revenant|Dhampir =
 
{{#switch: {{{type}}}| Ghoul|Revenant|Dhampir =
 
{{!}}-
 
{{!}}-
Line 192: Line 191:
 
</div>
 
</div>
  
<div class="masq-npc-divider">
+
<div class="masq-divider">
 
</div>
 
</div>
 
+
{{NPC
<div id="masq-npc-furtherinfo" class="clearfix">
+
|furtherinfopic={{{furtherinfopic|}}}
<span id="masq-npc-furtherinfo-heading" class="my-h2">Further Information</span>
+
|desc={{{desc|}}}
{{#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>
+
|timeline={{{timeline|}}}
{{{desc}}}
+
|bio={{{bio|}}}
</div>}}
+
|rumors={{{rumors|}}}
{{#if:{{{timeline|}}}|<div id="masq-npc-timeline"><span id="masq-npc-timeline-title" class="my-h3">Timeline</span>
+
|editablerumors={{{editablerumors|}}}
{{{timeline}}}
+
|quotes={{{quotes|}}}
</div>}}
+
|editablequotes={{{editablequotes|}}}
{{#if:{{{bio|}}}|<div id="masq-npc-bio"><span id="masq-npc-bio-title" class="my-h3">Bio</span>
+
|oocvitalspic={{{oocvitalspic|}}}
{{{bio}}}
+
|portrayer={{{portrayer|}}}
</div>}}
+
|portrayerpronouns={{{portrayerpronouns|}}}
<div id="masq-npc-rumors"><span id="masq-npc-rumors-title" class="my-h3">Rumors</span>
+
|portrayeremail={{{portrayeremail|}}}
{{#if: {{{rumors|}}}|{{{rumors}}}<br>}}<nowiki/>
+
|portrayermesnumber={{{portrayermesnumber|}}}
{{#ifexist: {{PAGENAME}} Rumors|{{:{{PAGENAME}} Rumors}}<br>}}<nowiki/>
+
|ownership={{{ownership|}}}
{{#ifeq: {{{editablerumors|}}}|Yes|{{#formlink:form=Masquerade PC Add Rumors|target={{PAGENAMEE}} Rumors|returnto={{PAGENAMEE}}|reload|link text=Edit Rumors: Add your own!}} }}
+
|region={{{region|}}}
</div>
+
|domain={{{domain|}}}
<div id="masq-npc-quotes"><span id="masp-npc-quotes-title" class="my-h3">Quotes</span>
+
|vss={{{vss|}}}
{{#if: {{{quotes|}}}|{{{quotes}}}<br>}}<nowiki/>
+
|territory={{{territory|}}}
{{#ifexist: {{PAGENAME}} Quotes|{{:{{PAGENAME}} Quotes}}<br>}}<nowiki/>
+
|st={{{st|}}}
{{#ifeq: {{{editablequotes|}}}|Yes|{{#formlink:form=Masquerade PC Add Quotes|target={{PAGENAMEE}} Quotes|returnto={{PAGENAMEE}}|reload|link text=Edit Quotes: Add your own!}} }}
+
|stemail={{{stemail|}}}
</div>
 
</div>
 
 
 
<div id="masq-npc-oocvitals" class="clearfix"><span id="masq-npc-oocvitals-title" class="my-h2">OOC Information</span>
 
{{#if: {{{oocvitalspic|}}}|<div id="masq-npc-oocvitals-pic">[[File:{{{oocvitalspic}}}|300px]]</div>}}
 
{| id="masq-npc-oocvitals-table"
 
{{#if: {{{portrayer|}}}|<nowiki/>
 
{{!}}-
 
!scope="row"{{!}}Portrayed by
 
{{!}} [mailto:{{{portrayeremail}}} {{{portrayer}}}]
 
}}{{#if: {{{portrayerpronouns|}}}|<nowiki/>
 
{{!}}-
 
!scope="row"{{!}}Portrayer's Pronouns
 
{{!}} {{{portrayerpronouns}}}
 
}}{{#if: {{{portrayermesnumber|}}}|<nowiki/>
 
{{!}}-
 
!scope="row"{{!}}Portrayer's MES Number
 
{{!}} {{{portrayermesnumber}}}
 
}}{{#if: {{{region|}}}|<nowiki/>
 
{{!}}-
 
!scope="row"{{!}}Region
 
{{!}} {{{region}}}
 
}}{{#if: {{{domain|}}}|<nowiki/>
 
{{!}}-
 
!scope="row"{{!}}Domain
 
{{!}} [[:Category:{{{domain}}}|{{{domain}}}]]
 
}}{{#if: {{{territory|}}}|<nowiki/>
 
{{!}}-
 
!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 282: 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;
 
  margin: 20px;
 
}
 
#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;
 
  max-width: 50%;
 
}
 
#masq-npc-portrait img, #masq-npc-furtherinfo-pic img, #masq-npc-oocvitals-pic img {
 
  height: auto;
 
  max-width: 100%;
 
}
 
#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;
 
}
 
.mw-body-content a:link, .mw-body-content a.external:link {
 
  color: #a00;
 
}
 
.mw-body-content a:visited, .mw-body-content a.external:visited {
 
  color: #800e0e;
 
}
 
.mw-body-content a:hover, .mw-body-content a.external:hover {
 
  color: #c00;
 
}
 
.mw-body-content a:active, .mw-body-content a.external:active {
 
  color: #f00;
 
}
 
.mw-body-content a.new, .mw-body-content a.new:visited {
 
  color: #B93;
 
}
 
.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.