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

Template:Rp/ActiveCount/doc

From MafiaWiki
< Template:Rp/ActiveCount
Revision as of 22:48, 27 May 2018 by Callforjudgement (talk | contribs) (document and test{{Rp/ActiveCount}})
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Name:
  • Rp/ActiveCount
Type:
Sub-Template:
  • Yes
Designer:

The {{Rp/ActiveCount}} template takes a role string as argument, and returns the number of different active abilities that that role has. Its main purpose is to allow for correct pluralisation of modifiers that affect the set of active abilities as a whole.

Examples/tests

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