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

Template:Role/sandbox: Difference between revisions

From MafiaWiki
Jump to navigation Jump to search
No edit summary
(remove Diginova from the role categories, too; the page is not describing a role)
 
(7 intermediate revisions by 3 users not shown)
Line 6: Line 6:
|}
|}
{| 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="{{Linear-gradient |right |#E4E4E5 5%, #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}}}|}}{{#if:{{{alias3|}}}|
*{{{alias2}}}|}}{{#if:{{{alias3|}}}|
*{{{alias3}}}|}}
*{{{alias3}}}|}}
|-
|-
| style="background:#EEE;" align="center" | '''Alignment''':  
| style="{{Linear-gradient |right |#E4E4E4 5%, #EEE}};" align="center" | '''Faction{{#if: {{{align2|}}}|s|}}''':  
| {{#if:{{{align|}}}|[[File:Faction_{{{align}}}.png|15px]] [[{{{align}}}]]|''<small>any</small>''}} {{#if:{{{align2|}}}|
| {{#if:{{{align|}}}|[[File:Faction_{{{align}}}.png|15px]] [[{{{align}}}]]|''<small>any</small>''}} {{#if:{{{align2|}}}|
<br />[[File:Faction_{{{align2}}}.png|15px]] [[{{{align2}}}]]|}}{{#if:{{{align3|}}}|
<br />[[File:Faction_{{{align2}}}.png|15px]] [[{{{align2}}}]]|}}{{#if:{{{align3|}}}|
<br />[[File:Faction_{{{align3}}}.png|15px]] [[{{{align3}}}]]|}}
<br />[[File:Faction_{{{align3}}}.png|15px]] [[{{{align3}}}]]|}}
|-
|-
| style="background:#EEE;" align="center" | '''Role type''':  
| style="{{Linear-gradient |right |#E4E4E4 5%, #EEE}};" align="center" | '''Role type{{#if: {{{type2|}}}|s|}}''':  
| {{ #if:{{{type|}}}|[[File:Role_{{{type}}}.png|15px]] {{{type}}}|''<small>not defined</small>''}} {{#if:{{{type2|}}}|
| {{ #if:{{{type|}}}|[[File:Role_{{{type}}}.png|15px]] {{{type}}}|''<small>not defined</small>''}} {{#if:{{{type2|}}}|
<br />[[File:Role_{{{type2}}}.png|15px]] {{{type2}}}|}} {{#if:{{{type3|}}}| <br />[[File:Role_{{{type3}}}.png|15px]] {{{type3}}}|}} {{#if:{{{type4|}}}| <br />[[File:Role_{{{type4}}}.png|15px]] {{{type4}}}|}}
<br />[[File:Role_{{{type2}}}.png|15px]] {{{type2}}}|}} {{#if:{{{type3|}}}| <br />[[File:Role_{{{type3}}}.png|15px]] {{{type3}}}|}} {{#if:{{{type4|}}}| <br />[[File:Role_{{{type4}}}.png|15px]] {{{type4}}}|}}
|-
|-
| style="background:#EEE;" align="center" | '''Choice''':  
| style="{{Linear-gradient |right |#E4E4E4 5%, #EEE}};" align="center" | '''Choice{{#if: {{{choice2|}}}|s|}}''':  
| {{ #if:{{{choice|}}}|[[File:Time_{{{choice}}}.png|15px]] {{{choice}}}|''<small>none</small>''}} {{#if:{{{choice2|}}}|
| {{ #if:{{{choice|}}}|[[File:Time_{{{choice}}}.png|15px]] {{{choice}}}|''<small>none</small>''}} {{#if:{{{choice2|}}}|
<br />[[File:Time_{{{choice2}}}.png|15px]] {{{choice2}}}|}}
<br />[[File:Time_{{{choice2}}}.png|15px]] {{{choice2}}}|}}
|-
|-
{{ #if:{{{notes|}}}|
{{ #if:{{{notes|}}}|
{{!}} style="background:#EEE;" align="center" {{!}} '''Notes''':
{{!}} style="{{Linear-gradient |right |#E4E4E4 5%, #EEE}};" align="center" {{!}} '''Notes''':
{{!}} ''<small>{{{notes}}}</small>'' |}}
{{!}} ''<small>{{{notes}}}</small>'' |}}
|}  
|}  
|}
|}
[[Category: Roles|{{PAGENAME}}]] <!--  {{#if:{{{align|}}}|[[Category: {{{align|}}} roles]] }}{{#if:{{{align2|}}}|[[Category: {{{align2|}}} roles]] }} -->  {{#if:{{{type|}}}|[[Category: {{{type|}}} roles]] }}{{#if:{{{type2|}}}|[[Category: {{{type2|}}} roles]] }}{{#if:{{{type3|}}}|[[Category: {{{type3|}}} roles]] }}{{#if:{{{type4|}}}|[[Category: {{{type4|}}} roles]] }}</includeonly><noinclude>{{TOCright}}
{{#switch:{{PAGENAME}}|Role/sandbox=|Diginova=|[[Category: Roles|{{PAGENAME}}]] <!--  {{#if:{{{align|}}}|[[Category: {{{align|}}} roles]] }}{{#if:{{{align2|}}}|[[Category: {{{align2|}}} roles]] }} -->  {{#if:{{{type|}}}|[[Category: {{{type|}}} roles]] }}{{#if:{{{type2|}}}|[[Category: {{{type2|}}} roles]] }}{{#if:{{{type3|}}}|[[Category: {{{type3|}}} roles]] }}{{#if:{{{type4|}}}|[[Category: {{{type4|}}} roles]] }}}}</includeonly><noinclude>{{TOCright}}
== Summary ==
== Summary ==
This [[:Category:Templates|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:  
This [[:Category:Templates|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:  
Line 112: Line 112:
|alias= Seer
|alias= Seer
|align= Pro-town
|align= Pro-town
|type= Informative
|type= Investigative
|type2= Normal
|choice= Night
|choice= Night
|notes=  
|notes=  
Line 123: Line 122:
|alias= Seer
|alias= Seer
|align= Pro-town
|align= Pro-town
|type= informative2
|type= Investigative
|type2= SampleTest
|type3= Normal
|choice= Night
|choice= Night
|notes=  
|notes=  
Line 140: Line 137:
|align2= Anti-town
|align2= Anti-town
|type=  Protective
|type=  Protective
|type2= Informative
|type2= Investigative
|type3= Killing
|type3= Killing
|choice= Night
|choice= Night
Line 156: Line 153:
|align2= Anti-town
|align2= Anti-town
|type=  Protective
|type=  Protective
|type2= Informative
|type2= Investigative
|type3= Killing
|type3= Killing
|choice= Night
|choice= Night

Latest revision as of 12:25, 24 June 2019

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
|image=
|alias= 
|align= 
|color=
|type= 
|choice= 
|notes= 
}}

Parameters

{{{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 (without the #) or one of the following: town, mafia, werewolf, cult, self.</nowiki>

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

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

Examples

What you type What it looks like
{{role/sandbox
|image=
|alias= 
|align= 
|type= 
|choice= 
|notes= 
}}
Role/sandbox
Alias: none
Faction: any
Role type: not defined
Choice: none
{{role/sandbox
|image= T-cop.png
|alias= Seer
|align= Pro-town
|type= Investigative
|choice= Night
|notes= 
}}
Role/sandbox
T-cop.png
Alias:
  • Seer
Faction: File:Faction Pro-town.png Pro-town
Role type: Role Investigative.png Investigative
Choice: Time Night.png Night
{{role/sandbox
|image= T-vanilla.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/sandbox
M-doctor.png
Aliases:
  • Archangel
  • Sorceror
Factions: File:Faction Pro-town.png Pro-town
File:Faction Anti-town.png Anti-town
Role types: Role Protective.png Protective
Role Investigative.png Investigative
Role Killing.png Killing
Choices: Time Night.png Night
Time Day.png Day
Notes: this is an example of notes