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
 
(16 intermediate revisions by the same user not shown)
Line 19: Line 19:
 
|domitorsocialclass=
 
|domitorsocialclass=
 
|family=
 
|family=
 +
|territory=
 
|position=
 
|position=
 
|pcgroup1=
 
|pcgroup1=
Line 39: Line 40:
 
|vss=
 
|vss=
 
|domain=
 
|domain=
|territory=
 
 
|st=  
 
|st=  
 
|stemail=
 
|stemail=
 +
|notvst=
 
}}
 
}}
 
</pre>
 
</pre>
Line 53: 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>{{#default_form:Masquerade PC}}__NOTOC__ __NOEDITSECTION__<div id="masq-pc-container">
+
<includeonly>{{#default_form:Masquerade PC}}__NOTOC__ __NOEDITSECTION__<div id="masq-container">
<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-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-icvitals" class="clearfix">
+
<div id="masq-icvitals" class="clearfix">
   <div id="masq-pc-portrait-box">
+
   <div id="masq-portrait-box">
     <div id="masq-pc-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 64: Line 65:
 
         |{{#ifexist: File:{{PAGENAME}}.gif|[[File:{{PAGENAME}}.gif]]
 
         |{{#ifexist: File:{{PAGENAME}}.gif|[[File:{{PAGENAME}}.gif]]
 
           |{{#ifexist: File:{{PAGENAME}}.webp|[[File:{{PAGENAME}}.webp]]
 
           |{{#ifexist: File:{{PAGENAME}}.webp|[[File:{{PAGENAME}}.webp]]
            |[[File:Portrait_Placeholder.png]]
 
 
           }}
 
           }}
 
         }}
 
         }}
Line 73: Line 73:
 
     </div>
 
     </div>
 
   </div>
 
   </div>
{| id="masq-pc-icvitals-table"
+
{| id="masq-icvitals-table"
 
{{#if: {{{characterpronouns|}}}|<nowiki/>
 
{{#if: {{{characterpronouns|}}}|<nowiki/>
 
{{!}}-
 
{{!}}-
Line 133: Line 133:
 
{{!}}-
 
{{!}}-
 
!scope="row"{{!}}Territory
 
!scope="row"{{!}}Territory
{{!}} [[:Category:{{{territory}}}]]
+
{{!}} [[:Category:{{{territory}}}|{{{territory}}}]]
 
}}{{#if: {{{pcgroup1|}}}|<nowiki/>
 
}}{{#if: {{{pcgroup1|}}}|<nowiki/>
 
{{!}}-
 
{{!}}-
Line 153: Line 153:
 
|}
 
|}
 
</div>
 
</div>
 
+
<div class="masq-divider"></div>
<div class="masq-pc-divider">
+
{{PC
</div>
+
|furtherinfopic={{{furtherinfopic|}}}
 
+
|desc={{{desc|}}}
{{:PC}}
+
|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}}}]]}}}}
+
{{#if: {{{type|}}}|{{#ifeq: {{{type}}}|Vampire| |[[Category:{{{type}}}]]}}}}<nowiki/>
{{#if: {{{type|}}}|{{#ifeq: {{{type}}}|Dhampir|[[Category:Anarch]]}}}}
+
{{#if: {{{type|}}}|{{#ifeq: {{{type}}}|Dhampir|[[Category:Anarch]]}}}}<nowiki/>
{{#if: {{{clan|}}}|[[Category:{{{clan}}}]]}}
+
{{#if: {{{clan|}}}|[[Category:{{{clan}}}]]}}<nowiki/>
{{#switch: {{{clan|}}}
+
{{#switch: {{{clan|}}}<nowiki/>
   | Banu Haqim Warrior|Banu Haqim Sorcerer|Banu Haqim Vizier = [[Category:Banu Haqim]]
+
   | Banu Haqim Warrior|Banu Haqim Sorcerer|Banu Haqim Vizier = [[Category:Banu Haqim]]<nowiki/>
   | Coyotes = [[Category:Gangrel]]
+
   | Coyotes = [[Category:Gangrel]]<nowiki/>
   | House Tremere|House Carna|House Goratrix = [[Category:Tremere]]
+
   | House Tremere|House Carna|House Goratrix = [[Category:Tremere]]<nowiki/>
   | Salubri Warrior|Salubri Healer = [[Category:Salubri]]
+
   | Salubri Warrior|Salubri Healer = [[Category:Salubri]]<nowiki/>
}}
+
}}<nowiki/>
{{#if: {{{clanfaction|}}}|[[Category:{{{clanfaction}}}]]}}
+
{{#if: {{{clanfaction|}}}|[[Category:{{{clanfaction}}}]]}}<nowiki/>
{{#if: {{{sect|}}}|[[Category:{{{sect}}}]]}}
+
{{#if: {{{sect|}}}|[[Category:{{{sect}}}]]}}<nowiki/>
{{#if: {{{sectfaction|}}}|[[Category:{{{sectfaction}}}]]}}
+
{{#if: {{{sectfaction|}}}|[[Category:{{{sectfaction}}}]]}}<nowiki/>
{{#if: {{{family|}}}|[[Category:{{{family}}}]]}}
+
{{#if: {{{family|}}}|[[Category:{{{family}}}]]}}<nowiki/>
{{#if: {{{pcgroup1|}}}|[[Category:{{{pcgroup1}}}]]}}
+
{{#if: {{{pcgroup1|}}}|[[Category:{{{pcgroup1}}}]]}}<nowiki/>
{{#if: {{{pcgroup2|}}}|[[Category:{{{pcgroup2}}}]]}}
+
{{#if: {{{pcgroup2|}}}|[[Category:{{{pcgroup2}}}]]}}<nowiki/>
{{#if: {{{pcgroup3|}}}|[[Category:{{{pcgroup3}}}]]}}
+
{{#if: {{{pcgroup3|}}}|[[Category:{{{pcgroup3}}}]]}}<nowiki/>
{{#if: {{{region|}}}|[[Category:{{{region}}}]]}}
+
{{#if: {{{region|}}}|[[Category:{{{region}}}]]}}<nowiki/>
{{#if: {{{domain|}}}|[[Category:{{{domain}}}]]}}
+
{{#if: {{{domain|}}}|[[Category:{{{domain}}}]]}}<nowiki/>
{{#if: {{{vss|}}}|[[Category:{{{vss}}}]]}}
+
{{#if: {{{vss|}}}|[[Category:{{{vss}}}]]}}<nowiki/>
{{#if: {{{territory|}}}|[[Category:{{{territory}}}]]}}
+
{{#if: {{{territory|}}}|[[Category:{{{territory}}}]]}}<nowiki/>
[[Category:Masquerade PC]]
+
[[Category:Masquerade PC]]{{Masquerade CSS}}</includeonly>
{{#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;
 
}
 
#masq-pc-container 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
 
}
 
#masq-pc-container p, #masq-pc-container td, #masq-pc-container th, #masq-pc-container 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;
 
  max-width: 50%;
 
  margin-left: 20px;
 
  margin-bottom: 20px;
 
}
 
#masq-pc-portrait img, #masq-pc-furtherinfo-pic img, #masq-pc-oocvitals-pic img {
 
  height: auto;
 
  max-width: 100%;
 
}
 
#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;
 
}
 
#masq-pc-container a:link, #masq-pc-container a.external:link {
 
  color: #a00;
 
}
 
#masq-pc-container a:visited, #masq-pc-container a.external:visited {
 
  color: #800e0e;
 
}
 
#masq-pc-container a:hover, #masq-pc-container a.external:hover {
 
  color: #c00;
 
}
 
#masq-pc-container a:active, #masq-pc-container a.external:active {
 
  color: #f00;
 
}
 
#masq-pc-container a.new, #masq-pc-container a.new:visited {
 
  color: #B93;
 
}
 
.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.