You are viewing the MafiaScum.net Wiki. To play the game, visit the forum.
Template:Role: Difference between revisions
Jump to navigation
Jump to search
(if the role doesn't use RolePage, drop it into Category:Roles by default; this might be incorrect, but roles are much less likely to get lost this way) |
(allow overriding the title of a {{role}} box) |
||
Line 3: | Line 3: | ||
{| style="background:{{{color|#EEE}}}; border:#AAA solid 1px; margin: 0px 0px 5px 5px;" | {| style="background:{{{color|#EEE}}}; border:#AAA solid 1px; margin: 0px 0px 5px 5px;" | ||
|- align="center" style="font-size: 11pt;" | |- align="center" style="font-size: 11pt;" | ||
| width="200" | '''{{PAGENAME}}'''{{#if:{{{image|}}}|<br/>[[File:{{{image}}}|190px]]|}} | | width="200" | '''{{{name_override|{{PAGENAME}}}}}'''{{#if:{{{image|}}}|<br/>[[File:{{{image}}}|190px]]|}} | ||
|} | |} | ||
{| cellpadding="2" cellspacing="2" style="border:#AAA solid 1px; width: 200px; text-align: left; font-size: 8pt; margin: 0px 0px 5px 5px;" | {| cellpadding="2" cellspacing="2" style="border:#AAA solid 1px; width: 200px; text-align: left; font-size: 8pt; margin: 0px 0px 5px 5px;" | ||
Line 40: | Line 40: | ||
<pre> | <pre> | ||
{{role | {{role | ||
|name_override= | |||
|image= | |image= | ||
|alias= | |alias= | ||
Line 51: | Line 52: | ||
== Parameters == | == Parameters == | ||
=== {{{name_override}}} | |||
:'''the name of the role, if it differs from the page name''' | |||
::''note: this parameter is optional'' | |||
=== {{{image}}} === | === {{{image}}} === | ||
:'''the image for this role''' | :'''the image for this role''' |
Revision as of 21:33, 13 September 2020
Summary
This template is used to place a box on the right side of role pages with information pertaining to the role. The box displays the following information:
- the aliases the role may have
- the alignment(s) of the role
- the type of the role
- the phase the role submits their choice, if any
Syntax
{{role |name_override= |image= |alias= |align= |color= |type= |choice= |notes= }}
Parameters
=== {{{name_override}}}
- the name of the role, if it differs from the page name
- note: this parameter is optional
{{{image}}}
- the image for this role
- note: this parameter is optional
{{{color}}}
- the background color for this role
- note: this parameter is not finalized. Accepts either a hex code or use one of the following: {{rgb|town}}, {{rgb|mafia}}, {{rgb|werewolf}}, {{rgb|cult}}, {{rgb|self}}.
{{{alias}}}
- other names commonly used for this role
- roles which have more than one alias should list those aliases using the
{{{alias2}}}, {{{alias3}}}
parameter(s)
- roles which have more than one alias should list those aliases using the
{{{align}}}
- the faction in which this role is commonly used
- roles which can be used in more than one faction should list those factions using the
{{{align2}}}, {{{align3}}}
parameter(s)
- roles which can be used in more than one faction should list those factions using the
{{{type}}}
- the most common attributes assigned to this role
- roles which can be assigned multiple/dual 'types' should list those types using the
{{{type2}}}
parameter
- roles which can be assigned multiple/dual 'types' should list those types using the
{{{choice}}}
- the phase the role commonly submits their action, if any
- roles which can submit their action in multiple/dual phases should list those phases using the
{{{choice2}}}
parameter
{{{notes}}}
- this parameter can be used to note anything else that is key to the role which is not covered in the previous parameters
- note: this parameter is optional, and should only be used if necessary; the notes section is not used to describe the role, as this information should be included in the wiki page
Template:Via rolepage
- should be omitted entirely when {{role}} is used directly; used by {{RolePage}} to track the usage of role templates