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

Template:Rp/ffn/doc: Difference between revisions

From MafiaWiki
Jump to navigation Jump to search
(document the new behaviour of this template)
(→‎Examples: show that this now works with either role strings or with arbitrary "this is not empty" strings)
Line 16: Line 16:
== Examples ==
== Examples ==


* {{tlx|Rp/ffn|Town|green|{{CL|Cop|green}}}} → {{Rp/ffn|Town|green|{{CL|Cop|green}}}}
* {{tlx|Rp/ffn|Town|green|x}} → {{Rp/ffn|Town|green|{{CL|Cop|green}}}}
* {{tlx|Rp/ffn|Town|green|}} → {{Rp/ffn|Town|green|}}
* {{tlx|Rp/ffn|Town|green|}} → {{Rp/ffn|Town|green|}}
* {{tlx|Rp/ffn|Mafia|red|{{CL|Roleblocker|red}}}} → {{Rp/ffn|Mafia|red|{{CL|Roleblocker|red}}}}
* {{tlx|Rp/ffn|Mafia|red|{{CL|Roleblocker|red}}}} → {{Rp/ffn|Mafia|red|{{CL|Roleblocker|red}}}}
* {{tlx|Rp/ffn|Mafia|red|}} → {{Rp/ffn|Mafia|red|}}
* {{tlx|Rp/ffn|Mafia|red|}} → {{Rp/ffn|Mafia|red|}}

Revision as of 22:03, 30 May 2018

Name:
  • Rp/ffn
Types:
Sub-Template:
  • Yes
Designer:

The {{Rp/ffn}} template formats a faction name as it should appear in a role PM. In most cases this is just a case of linking and colouring the name. However, if the faction name appears at the end of the role name, it may need to be adjusted:

  • Town Cop but Bulletproof Townie
  • Mafia Roleblocker but Ascetic Mafioso
  • Cult Tracker but Cultist

This template takes three arguments: the faction name; the colour in which it should appear; and a string which is empty to get the "end of the role name" version of the name, or nonempty to get the faction name output as-is. The output is the possibly modified faction name, appropriately linked and coloured.

Examples