Difference between revisions of "Template:Masquerade PC"
(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...") |
staging>Annie |
||
Line 4: | Line 4: | ||
{{Masquerade PC | {{Masquerade PC | ||
|name= | |name= | ||
+ | |type= | ||
|clan= | |clan= | ||
+ | |clanfaction= | ||
|sect= | |sect= | ||
+ | |sectfaction= | ||
|socialclass= | |socialclass= | ||
|morality= | |morality= | ||
+ | |domitor= | ||
+ | |domitorpagename= | ||
+ | |domitorclan= | ||
+ | |domitorsect= | ||
+ | |domitorsocialclass= | ||
+ | |family= | ||
|position= | |position= | ||
− | | | + | |pcgroup1= |
− | | | + | |pcgroup1type= |
+ | |pcgroup2= | ||
+ | |pcgroup2type= | ||
|furtherinfopic= | |furtherinfopic= | ||
|desc= | |desc= | ||
Line 28: | Line 39: | ||
}} | }} | ||
</pre> | </pre> | ||
− | The following parameters are required: name | + | 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 39: | Line 50: | ||
<includeonly>__NOTOC__ __NOEDITSECTION__ | <includeonly>__NOTOC__ __NOEDITSECTION__ | ||
<div id="masq-pc-container"> | <div id="masq-pc-container"> | ||
− | <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-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-pc-icvitals" class="clearfix"> | <div id="masq-pc-icvitals" class="clearfix"> | ||
Line 49: | Line 60: | ||
{| id="masq-pc-icvitals-table" | {| id="masq-pc-icvitals-table" | ||
− | |scope="row"| | + | {{#switch: {{{type}}}| Ghoul|Revenant|Dhampir = |
− | + | {{!}}- | |
− | |- | + | !scope="row"{{!}}Creature Type |
− | |scope="row" | + | {{!}} [[:Category:{{{type}}}|{{{type}}}]] |
− | + | }}{{#if: {{{clan|}}}|<nowiki/> | |
− | |- | + | {{!}}- |
− | |scope="row| | + | !scope="row"{{!}}Clan |
− | + | {{!}}[[:Category:{{{clan}}}|{{{clan}}}]] | |
− | |- | + | }}{{#if: {{{clanfaction|}}}|<nowiki/> |
− | |scope="row"|''' | + | {{!}}- |
− | |{{{ | + | !scope="row"{{!}}Clan Faction |
− | {{#if: {{{ | + | {{!}}[[: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 | ||
+ | {{!}}[[{{{domitorpagename}}}|{{{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: {{{pcgroup1|}}}|<nowiki/> | ||
+ | {{!}}- | ||
+ | !scope="row"{{!}}{{ucfirst:{{lc:{{{pcgroup1type}}}}}}} | ||
+ | {{!}}[[{{{pcgroup1}}}]] | ||
+ | }}{{#if: {{{pcgroup2|}}}|<nowiki/> | ||
+ | {{!}}- | ||
+ | !scope="row"{{!}}{{ucfirst:{{lc:{{{pcgroup2type}}}}}}} | ||
+ | {{!}}[[{{{pcgroup2}}}]] | ||
+ | }}{{#if: {{{position|}}}|<nowiki/> | ||
{{!}}- | {{!}}- | ||
− | + | !scope="row"{{!}}Position(s) | |
− | {{!}} | + | {{!}}{{{position}}} |
− | + | }} | |
− | |||
− | |||
|} | |} | ||
</div> | </div> | ||
Line 84: | Line 142: | ||
{{{bio}}} | {{{bio}}} | ||
</div>}} | </div>}} | ||
− | + | <div id="masq-pc-rumors"><span id="masp-pc-rumors-title" class="my-h3">Rumors</span> | |
− | + | {{{rumors}}}<br> | |
− | {{{rumors}}} | + | {{#ifexist: {{PAGENAME}} Rumors|{{:{{PAGENAME}} Rumors}}<br>}} |
− | {{#ifexist: {{PAGENAME}} Rumors|{{:{{PAGENAME}} Rumors}}}} | + | {{#formlink:form=Masquerade PC Add Rumors|target={{PAGENAME}} Rumors|returnto={{PAGENAME}}|reload|link text=Edit Rumors: Add your own!}} |
− | {{#formlink:form=Add Rumors | + | </div> |
− | </div> | + | <div id="masq-pc-quotes"><span id="masp-pc-quotes-title" class="my-h3">Quotes</span> |
− | + | {{{quotes}}}<br> | |
− | + | {{#ifexist: {{PAGENAME}} Quotes|{{:{{PAGENAME}} Quotes}}<br>}} | |
− | {{{quotes}}} | + | {{#formlink:form=Masquerade PC Add Quotes|target={{PAGENAME}} Quotes|returnto={{PAGENAME}}|reload|link text=Edit Quotes: Add your own!}} |
− | {{#ifexist: {{PAGENAME}} Quotes|{{:{{PAGENAME}} Quotes}}}} | + | </div> |
− | {{#formlink:form=Add | ||
− | </div> | ||
</div> | </div> | ||
Line 101: | Line 157: | ||
{{#if: {{{oocvitalspic|}}}|<div id="masq-pc-oocvitals-pic">[[File:{{{oocvitalspic}}}|300px]]</div>}} | {{#if: {{{oocvitalspic|}}}|<div id="masq-pc-oocvitals-pic">[[File:{{{oocvitalspic}}}|300px]]</div>}} | ||
{| id="masq-pc-oocvitals-table" | {| id="masq-pc-oocvitals-table" | ||
− | + | !scope="row"|Player | |
− | |{{{ | + | |[mailto:{{{playeremail}}} {{{player}}}] |
|- | |- | ||
− | + | !scope="row|MES # | |
− | |||
− | |||
− | |||
|{{{mesnumber}}} | |{{{mesnumber}}} | ||
|- | |- | ||
− | + | !scope="row"|Domain | |
− | |[[:Category:{{{domain}}}|{{{domain | + | |[[:Category:{{{domain}}}|{{{domain}}}]]<nowiki/> |
− | + | {{#if: {{{territory|}}}|{{!}}- | |
− | + | !scope="row"{{!}}Territory | |
− | |||
− | {{#if: {{{territory}}}|{{!}}- | ||
− | |||
{{!}}[[:Category:{{{territory}}}|{{{territory}}}]]}} | {{!}}[[:Category:{{{territory}}}|{{{territory}}}]]}} | ||
|- | |- | ||
− | + | !scope="row"|Storyteller | |
− | + | |{{#ifexist:{{{vss}}} VST Email|[mailto:{{:{{{vss}}} VST Email}} {{:{{{vss}}} VST}}]|[mailto:{{{storytelleremail}}} {{{storyteller}}}]}} | |
− | |||
− | |||
− | |{{#ifexist:{{{vss}}} VST Email|[mailto:{{:{{{vss}}} VST Email}} {{:{{{vss}}} VST | ||
|} | |} | ||
</div> | </div> | ||
</div> | </div> | ||
− | [[Category:{{{clan}}}]] | + | {{#if: {{{type|}}}|{{#ifeq: {{{type}}}|Vampire| |[[Category:{{{type}}}]]}}}} |
− | {{#switch: {{{clan}}} | + | {{#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]] | | Banu Haqim Warrior|Banu Haqim Sorcerer|Banu Haqim Vizier = [[Category:Banu Haqim]] | ||
− | + | | Coyotes = [[Category:Gangrel]] | |
− | | House Tremere|House Carna|House Goratrix | + | | House Tremere|House Carna|House Goratrix = [[Category:Tremere]] |
| Salubri Warrior|Salubri Healer = [[Category:Salubri]] | | Salubri Warrior|Salubri Healer = [[Category:Salubri]] | ||
}} | }} | ||
− | [[Category:{{{sect}}}]] | + | {{#if: {{{clanfaction|}}}|[[Category:{{{clanfaction}}}]]}} |
− | [[Category:{{{domain}}}]] | + | {{#if: {{{sect|}}}|[[Category:{{{sect}}}]]}} |
− | [[Category:{{{vss}}}]] | + | {{#if: {{{sectfaction|}}}|[[Category:{{{sectfaction}}}]]}} |
− | [[Category:{{{territory}}}]] | + | {{#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]] | [[Category:Masquerade PC]] | ||
{{#css: | {{#css: | ||
Line 143: | Line 198: | ||
font-family: "Special Elite"; | font-family: "Special Elite"; | ||
color: #800e0e; | color: #800e0e; | ||
− | font-weight: | + | font-weight: bold; |
font-size: 22px; | font-size: 22px; | ||
} | } | ||
Line 157: | Line 212: | ||
line-height:120px; | line-height:120px; | ||
text-align:center; | text-align:center; | ||
− | font-weight: | + | font-weight:bolder; |
color:#800e0e; | color:#800e0e; | ||
margin:20px 0 10px 0; | margin:20px 0 10px 0; | ||
Line 174: | Line 229: | ||
size: 16px | size: 16px | ||
} | } | ||
− | p, td { | + | p, td, th { |
font-size: 16px; | font-size: 16px; | ||
font-family: 'Candara', 'Segoe UI', sans-serif; | font-family: 'Candara', 'Segoe UI', sans-serif; | ||
vertical-align:top; | vertical-align:top; | ||
+ | text-align:left; | ||
} | } | ||
#masq-pc-badges { | #masq-pc-badges { | ||
Line 195: | Line 251: | ||
padding:5px; | padding:5px; | ||
} | } | ||
− | #masq-pc-icvitals-table, #masq-pc-oocvitals-table { | + | #masq-pc-icvitals-table, #masq-pc-oocvitals-table, th { |
vertical-align: top; | vertical-align: top; | ||
+ | text-align:left; | ||
} | } | ||
a:link, a.external:link { | a:link, a.external:link { |
Revision as of 02:04, 11 August 2020
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= |type= |clan= |clanfaction= |sect= |sectfaction= |socialclass= |morality= |domitor= |domitorpagename= |domitorclan= |domitorsect= |domitorsocialclass= |family= |position= |pcgroup1= |pcgroup1type= |pcgroup2= |pcgroup2type= |furtherinfopic= |desc= |timeline= |bio= |rumors= |quotes= |oocvitalspic= |player= |playeremail= |mesnumber= |vss= |domain= |territory= |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.
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.