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

Template:Rp/art: Difference between revisions

From MafiaWiki
Jump to navigation Jump to search
m (fix more unmatched braces)
({{VowelStartingFragment}} and {{PrefixRole}} take role names, not role classes)
Line 1: Line 1:
a{{#switch:{{rcl/{{#titleparts:{{{1}}}|1|3}}}}|dp={{VowelStartingFragment|{{rcl/{{#titleparts:{{{1}}}|1|1}}}}}}|du={{VowelStartingFragment|{{rcl/{{#titleparts:{{{1}}}|1|1}}}}}}|dt={{VowelStartingFragment|{{rcl/{{#titleparts:{{{1}}}|1|1}}}}}}|{{#if:{{PrefixRole|{{rcl/{{#titleparts:{{{1}}}|1|2}}}}}}|{{VowelStartingFragment|{{rcl/{{#titleparts:{{{1}}}|1|2}}}}}}|{{VowelStartingFragment|{{rcl/{{#titleparts:{{{1}}}|1|1}}}}}}}}}}<noinclude>{{Template:Rp/art/doc}}</noinclude>
a{{#switch:{{rcl/{{#titleparts:{{{1}}}|1|3}}}}|dp={{VowelStartingFragment|{{#titleparts:{{{1}}}|1|1}}}}|du={{VowelStartingFragment|{{#titleparts:{{{1}}}|1|1}}}}|dt={{VowelStartingFragment|{{#titleparts:{{{1}}}|1|1}}}}|{{#if:{{PrefixRole|{{#titleparts:{{{1}}}|1|2}}}}|{{VowelStartingFragment|{{#titleparts:{{{1}}}|1|2}}}}|{{VowelStartingFragment|{{#titleparts:{{{1}}}|1|1}}}}}}}}<noinclude>{{Template:Rp/art/doc}}</noinclude>

Revision as of 01:02, 7 June 2018

a

Name:
  • Rp/art
Type:
Sub-Template:
  • Yes
Designer:

The {{Rp/art}} template takes a role string as argument, and returns a or an, whichever would be appropriate for the role name formed by the role string in question.

Examples and tests

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


For comparison, the role names formed from these role strings:

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