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
(template for generating the article for use with a role string)
 
(fix the name of {{VowelStartingFragment}})
Line 1: Line 1:
a{{#switch:{{rcl/{{#titleparts:{{{1}}}|1|3}}}}|dp={{VowelStartingRole|{{rcl/{{#titleparts:{{{1}}}|1|1}}}}}}|du={{VowelStartingRole|{{rcl/{{#titleparts:{{{1}}}|1|1}}}}}}|dt={{VowelStartingRole|{{rcl/{{#titleparts:{{{1}}}|1|1}}}}}}|{{#if:{{PrefixRole|{{rcl/{{#titleparts:{{{1}}}|1|2}}}}}}|{{VowelStartingRole|{{rcl/{{#titleparts:{{{1}}}|1|2}}}}|{{VowelStartingRole|{{rcl/{{#titleparts:{{{1}}}|1|1}}}}}}<noinclude>{{Template:Rp/art/doc}}</noinclude>
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>

Revision as of 00:53, 7 June 2018

a{{#switch:{{rcl/{{{1}}}}}|dp=|du=|dt=|{{#if:|{{VowelStartingFragment|{{rcl/{{{1}}}}}|

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{{#switch:|dp=|du=|dt=|{{#if:|{{VowelStartingFragment||
Mafia
a{{#switch:|dp=|du=|dt=|{{#if:|{{VowelStartingFragment||
Town/Cop
a{{#switch:|dp=|du=|dt=|{{#if:|{{VowelStartingFragment|t|
Town/Bulletproof
a{{#switch:|dp=|du=|dt=|{{#if:|{{VowelStartingFragment|p|
Mafia/Loyal/Jailkeeper
a{{#switch:t|dp=|du=|dt=|{{#if:|{{VowelStartingFragment|m|
Mafia/Bulletproof/Jailkeeper
a{{#switch:t|dp=|du=|dt=|{{#if:|{{VowelStartingFragment|p|
Mafia/Multitasking/Jailkeeper
a{{#switch:t|dp=|du=|dt=|{{#if:|{{VowelStartingFragment|i|
Mafia/Ninja
a{{#switch:|dp=|du=|dt=|{{#if:|{{VowelStartingFragment|u|
Town/Cop/Doctor
a{{#switch:t|dp=|du=|dt=|{{#if:|{{VowelStartingFragment|t|
Town/Bulletproof/Enabler
a{{#switch:dp|dp=|du=|dt=|{{#if:|{{VowelStartingFragment|p|
Town/Odd Night/Doctor/Enabler
a{{#switch:t|dp=|du=|dt=|{{#if:|{{VowelStartingFragment|s|
Town/Bulletproof/Activated
a{{#switch:du|dp=|du=|dt=|{{#if:|{{VowelStartingFragment|p|
Town/Ascetic/Bulletproof
a{{#switch:p|dp=|du=|dt=|{{#if:|{{VowelStartingFragment|p|
Town/Ascetic/Bulletproof/Enabler
a{{#switch:p|dp=|du=|dt=|{{#if:|{{VowelStartingFragment|p|
Town/Cop/Odd Night/Doctor
a{{#switch:s|dp=|du=|dt=|{{#if:|{{VowelStartingFragment|t|
Town/Even Night/Cop/Odd Night/Doctor
a{{#switch:t|dp=|du=|dt=|{{#if:|{{VowelStartingFragment|s|
Mafia/Ascetic/Multitasking/Even Night/Cop/Odd Night/Doctor
a{{#switch:i|dp=|du=|dt=|{{#if:|{{VowelStartingFragment|p|
Town/Loud/Multitasking/Jack of All Trades/Cop/Weak/Doctor/Innocent Child/Activated
a{{#switch:i|dp=|du=|dt=|{{#if:|{{VowelStartingFragment|m|
Serial Killer/Even Night/Ascetic/2-shot/Loud/Ninja/Weak/Rolecop/Odd Night/Doctor
a{{#switch:p|dp=|du=|dt=|{{#if:|{{VowelStartingFragment|s|


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
Mafia Ninja
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