You are viewing the MafiaScum.net Wiki. To play the game, visit the forum.

Template:Role: Difference between revisions

From MafiaWiki
Jump to navigation Jump to search
mNo edit summary
No edit summary
 
(73 intermediate revisions by 19 users not shown)
Line 1: Line 1:
{| cellpadding="0" cellspacing="0" style="clear:right; float:right; margin:0px 5px 5px 5px; padding:5px 5px 0px 0px; width:200px; border:#AAA solid 1px; background-color: #FFF;"
<includeonly>{| cellpadding="0" cellspacing="0" style="clear:right; float:right; margin:0px 5px 5px 5px; padding:5px 5px 0px 0px; width:200px; border:#AAA solid 1px; background-color: #FFF;"
|
|
{| style="background:#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}}'''  
| 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;"
| style="background:#EEE;" align="center" width="080" | '''Alias{{#if:{{{alias2|}}}|es|}}''':
| style="background:#EEE;" align="center" width="080" | '''Alias{{#if:{{{alias2|}}}|es|}}''':
| width="120" | {{#if:{{{alias|}}}|*[[{{{alias}}}]]|''<small>none</small>''}} {{#if:{{{alias2|}}}|
| width="120" | {{#if:{{{alias|}}}|*{{{alias}}}|''<small>none</small>''}} {{#if:{{{alias2|}}}|
*[[{{{alias2}}}]]|}}
*{{{alias2}}}|}}{{#if:{{{alias3|}}}|
*{{{alias3}}}|}}
|-
|-
| style="background:#EEE;" align="center" | '''Alignment''':  
| style="background:#EEE;" align="center" | '''Alignment''':  
| {{#if:{{{align|}}}|*{{{align}}}|''<small>none</small>''}} {{#if:{{{align2|}}}|
| {{#if:{{{align|}}}|*[[{{{align}}}]]|''<small>any</small>''}} {{#if:{{{align2|}}}|
*{{{align2}}}|}}
*[[{{{align2}}}]]|}}{{#if:{{{align3|}}}|
*[[{{{align3}}}]]|}}
|-
|-
| style="background:#EEE;" align="center" | '''Role type''':  
| style="background:#EEE;" align="center" | '''Role type''':  
| {{ #if:{{{type|}}}|*{{{type}}}|''<small>none</small>''}} {{#if:{{{type2|}}}|
| {{ #if:{{{type|}}}|*{{{type}}}|''<small>not defined</small>''}} {{#if:{{{type2|}}}|
*{{{type2}}}|}}
*{{{type2}}}|}} {{#if:{{{type3|}}}| *{{{type3}}}|}} {{#if:{{{type4|}}}| *{{{type4}}}|}}
|-
|-
| style="background:#EEE;" align="center" | '''Choice''':  
| style="background:#EEE;" align="center" | '''Choice''':  
| {{ #if:{{{choice|}}}|*{{{choice}}}|''<small>none</small>''}} {{#if:{{{choice2|}}}|
| {{ #if:{{{choice|}}}|*{{{choice}}}|''<small>none</small>''}} {{#if:{{{choice2|}}}|
*{{{choice2}}}|}}
*{{{choice2}}}|}}
{{#if:{{{notes|}}}|  
|-
{{!}}-
{{ #if:{{{status|}}}|
{{!}} style="background:#EEE;" align="center" {{!}} '''Status''':
{{!}} {{{status}}} {{#switch:{{{status|}}}|Simple=Normal|Regular=Normal|Complex=Normal|Experimental=Normal|}} |}}
|-
{{ #if:{{{notes|}}}|
{{!}} style="background:#EEE;" align="center" {{!}} '''Notes''':
{{!}} style="background:#EEE;" align="center" {{!}} '''Notes''':
{{!}} ''<small>{{{notes}}}</small>''|}}
{{!}} ''<small>{{{notes}}}</small>'' |}}
|}  
|}  
|}<includeonly>[[Category:Roles|{{PAGENAME}}]] {{ #if: {{{align|}}} | [[Category:{{{align|}}} roles]] }} {{ #if: {{{align2|}}} | [[Category:{{{align2|}}} roles|{{PAGENAME}}]] }}</includeonly><noinclude>
== Usage ==
== Syntax ==
<pre>
{{role
|alias=
|align=
|type=
|choice=
|notes=
}}
</pre>
== Parameters ==
To insert this template into a page, use the following syntax:
<pre>
{{role
|alias=          other names used for this role
|alignment=      most common faction in which this role is used
|type=
|choice =  Does the role have a [[Night choice]]? (Yes/No)
|notes =        anything else that's worth nothing about the role (optional)
}}
</pre>
=== Example ===
{| class="wikitable"
|-
! width=50% | What you type
! width=50% | What it looks like
|-
|
<pre>
{{role
|alias = Doc
|alignment = Pro-town
|type =  Protective
|night_choice =  Yes
}}
</pre>
|
{{role
|alias = Doc
|alignment = Pro-town
|type =  Protective
|night_choice =  Yes
}}
|-
|
<pre>
{{role
|alias = Townie
|alignment = Pro-town
|type =  Other
|night_choice =  No
|notes = Just an ordinary citizen
}}
</pre>
|
{{role
|alias = Townie
|alignment = Pro-town
|type =  Other
|night_choice =  No
|notes = Just an ordinary citizen
}}
|}
|}
[[Category:Templates|Role]]
{{#ifeq:{{{demopage|{{FULLPAGENAME}}}}}|Template:Role||{{{via_rolepage|[[Category:Roles]][[Category:All roles and modifiers]][[Category:Role pages that don't use RolePage]]}}} {{#if:{{{type|}}}|[[Category: {{{type|}}} roles]] }}{{#if:{{{type2|}}}|[[Category: {{{type2|}}} roles]] }}{{#if:{{{type3|}}}|[[Category: {{{type3|}}} roles]] }}{{#if:{{{type4|}}}|[[Category: {{{type4|}}} roles]] }}}}</includeonly><noinclude>{{role/doc}}</noinclude>
</noinclude>

Latest revision as of 21:33, 28 March 2024

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

If writing a page about a new role, consider using {{RolePage}}, to generate the entire page rather than just the infobox.

Syntax

{{role
|name_override=
|image=
|alias= 
|align= 
|color=
|type= 
|choice= 
|status= 
|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)

{{{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)

{{{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

{{{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

{{{status}}}

what normalcy or notability status a role has.
this should be filled in via {{RolePage}} to add the relevant categories.

{{{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

{{{via_rolepage}}}

should be omitted entirely when {{role}} is used directly; used by {{RolePage}} to track the usage of role templates

{{{demopage}}}

should normally be omitted; setting to Template:Role suppresses all categories
this parameter is used to prevent the template generating categories on things that are not rolepages, e.g. the examples on this page use {{role}} but shouldn't put the page into the role categories as a consequence

Examples

What you type What it looks like
{{role
|image=
|alias=
|color= 
|align= 
|type= 
|choice= 
|notes= 
}}
Role
Alias: none
Alignment: any
Role type: not defined
Choice: none
{{role
|image= T-vanilla.png
|alias= Seer
|color= {{rgb|town}}
|align= Pro-town
|type= Investigative
|choice= Night
|notes= 
}}
Role
T-vanilla.png
Alias:
  • Seer
Alignment:
Role type:
  • Investigative
Choice:
  • Night
{{role
|image= M-fallenangel.png
|color= {{rgb|mafia}}
|alias= Archangel
|alias2= Sorceror
|align= Pro-town
|align2= Anti-town
|type=  Protective
|type2= Investigative
|type3= Killing
|choice= Night
|choice2= Day
|notes= this is an example of notes
}}
Role
M-fallenangel.png
Aliases:
  • Archangel
  • Sorceror
Alignment:
Role type:
  • Protective
  • Investigative
  • Killing
Choice:
  • Night
  • Day
Notes: this is an example of notes