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

Template:VowelStartingFragment: Difference between revisions

From MafiaWiki
Jump to navigation Jump to search
(template that checks whether a role fragment that can appear at the start of a role name starts with a vowel)
 
(add in schedule modifiers and Theme roles too)
Line 1: Line 1:
{{#switch:{{{1}}}|Ascetic=n|Informed=n|Arsonist=n|Inquisitor=n|Unlyncher=n|Unjester=n|}}<noinclude>{{VowelStartingFragment/doc}}</noinclude>
{{#switch:{{{1}}}|Ascetic=n|Atheist=n|Informed=n|Arsonist=n|Inquisitor=n|Unlyncher=n|Unjester=n|Even Night=n|Odd Night=n|}}<noinclude>{{VowelStartingFragment/doc}}</noinclude>

Revision as of 01:30, 7 June 2018

Name:
  • PrefixRole
Types:
Sub-Template:
  • Yes
Designer:

The {{VowelStartingFragment}} template takes one argument, a role fragment that can appear at the start of a role name. (This means that it must either be a fragment that refers to a faction/win condition, or else a role or modifier that would normally appear at the start of a role name, e.g. Ascetic or Bulletproof; see {{PrefixRole}} for more details on this. Note that all schedule modifiers, such as Even Night, can appear at the start of a role name as they could be used to modify Ascetic.) This template does not have defined behaviour if given a role fragment that cannot appear in this position.

The return value is n if the fragment in question starts with a vowel, or an empty string otherwise.