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

Template:RoleNameFormat

From MafiaWiki
Jump to: navigation, search

[[{{{1}}}|{{{1}}}]]

Name:
  • RoleNameFormat
Types:
Sub-Template:
  • No
Designer:

The {{RoleNameFormat}} template is used to produce appropriately linked and coloured role names from role strings. It can be used either standalone (e.g. to write the role name in a list of roles used in a setup), or called from another template such as {{RoleParser}} to generate a role name within that template.

Normally you'd give this template only one argument, the role name. A special argument named Test can be used to pass the arguments that this template would normally pass to {{Rp/rnf}}, the template that does the real work, to some other template instead (e.g. {{ShowArgs}}), making it possible to test whether this template is working correctly.

Examples

Town
Vanilla Townie
Mafia
Mafia Goon
Town/Cop
Town Cop
Town/Bulletproof
Bulletproof Townie
Mafia/Loyal/Jailkeeper
Mafia Loyal Jailkeeper
Mafia/Bulletproof/Jailkeeper
Bulletproof Mafia Jailkeeper
Mafia/Multitasking/Jailkeeper
Mafia Multitasking Jailkeeper
Mafia/Ninja
Mafioso
Town/Cop/Doctor
Town Cop Doctor
Town/Bulletproof/Enabler
Town Bulletproof Enabler
Town/Odd Night/Doctor/Enabler
Town Odd Night Doctor Enabler
Town/Bulletproof/Activated
Town Activated Bulletproof
Town/Ascetic/Bulletproof
Ascetic Bulletproof Townie
Town/Ascetic/Bulletproof/Enabler
Ascetic Town Bulletproof Enabler
Town/Cop/Odd Night/Doctor
Town Cop Odd Night Doctor
Town/Even Night/Cop/Odd Night/Doctor
Town Even Night Cop Odd Night Doctor
Mafia/Ascetic/Multitasking/Even Night/Cop/Odd Night/Doctor
Ascetic Mafia Multitasking Even Night Cop Odd Night Doctor
Town/Loud/Multitasking/Jack of All Trades/Cop/Weak/Doctor/Innocent Child/Activated
Town Loud Multitasking Jack of All Trades Cop Weak Doctor Activated Innocent Child
Serial Killer/Even Night/Ascetic/2-shot/Loud/Ninja/Weak/Rolecop/Odd Night/Doctor
Even Night Ascetic Serial Killer 2-shot Loud Ninja Weak Rolecop Odd Night Doctor


Tests of this template in isolation

Town
1=Town; 4=green
Mafia
1=Mafia; 4=red
Town/Cop
1=Town; 2=Cop; 3=1/; 4=green
Town/Bulletproof
1=Town; 2=Bulletproof; 3=1/; 4=green
Mafia/Loyal/Jailkeeper
1=Mafia; 2=Loyal/Jailkeeper; 3=2/; 4=red
Mafia/Bulletproof/Jailkeeper
1=Mafia; 2=Bulletproof/Jailkeeper; 3=1/2/; 4=red
Mafia/Multitasking/Jailkeeper
1=Mafia; 2=Multitasking/Jailkeeper; 3=1/2/; 4=red
Mafia/Ninja
1=Mafia; 2=Ninja; 4=red
Town/Cop/Doctor
1=Town; 2=Cop/Doctor; 3=1/2/; 4=green
Town/Bulletproof/Enabler
1=Town; 2=Bulletproof/Enabler; 3=2/; 4=green
Town/Odd Night/Doctor/Enabler
1=Town; 2=Odd Night/Doctor/Enabler; 3=3/; 4=green
Town/Bulletproof/Activated
1=Town; 2=Bulletproof/Activated; 3=2/; 4=green
Town/Ascetic/Bulletproof
1=Town; 2=Ascetic/Bulletproof; 3=1/2/; 4=green
Town/Ascetic/Bulletproof/Enabler
1=Town; 2=Ascetic/Bulletproof/Enabler; 3=1/3/; 4=green
Town/Cop/Odd Night/Doctor
1=Town; 2=Cop/Odd Night/Doctor; 3=1/3/; 4=green
Town/Even Night/Cop/Odd Night/Doctor
1=Town; 2=Even Night/Cop/Odd Night/Doctor; 3=2/4/; 4=green
Mafia/Ascetic/Multitasking/Even Night/Cop/Odd Night/Doctor
1=Mafia; 2=Ascetic/Multitasking/Even Night/Cop/Odd Night/Doctor; 3=1/2/4/6/; 4=red
Town/Loud/Multitasking/Jack of All Trades/Cop/Weak/Doctor/Innocent Child/Activated
1=Town; 2=Loud/Multitasking/Jack of All Trades/Cop/Weak/Doctor/Innocent Child/Activated; 3=2/3/4/6/8/; 4=green
Serial Killer/Even Night/Ascetic/2-shot/Loud/Ninja/Weak/Rolecop/Odd Night/Doctor
1=Serial Killer; 2=Even Night/Ascetic/2-shot/Loud/Ninja/Weak/Rolecop/Odd Night/Doctor; 3=2/7/9/; 4=blue