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

Template:Rp/feg/doc

From MafiaWiki
Jump to navigation Jump to search
Name:
  • Rp/feg
Type:
Sub-Template:
  • Yes
Designer:

The {{Rp/feg}} template runs another template on every component group within a substring of a role string. The role string is given as the first argument, and the template to run as the second.

Examples/tests

Note that these tests aren't very close to the normal use of this template, because the faction name would normally have been deleted from the role string before using it (and the role string itself segmented into a passive, general restriction, and active section). However, they're good enough to serve as a demonstration of how the template works.

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