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

Template:Rp/gfn

From MafiaWiki
Jump to navigation Jump to search

[[{{{1}}}|{{{1}}}]] [[{{{1}}}|{{{1}}}]] [[{{{1}}}|{{{1}}}]] [[{{{1}}}|{{{1}}}]] [[{{{1}}}|{{{1}}}]] [[{{{1}}}|{{{1}}}]] [[{{{1}}}|{{{1}}}]] [[{{{1}}}|{{{1}}}]] [[{{{1}}}|{{{1}}}]] [[{{{1}}}|{{{1}}}]] [[{{{1}}}|{{{1}}}]] [[{{{1}}}|{{{1}}}]] [[{{{1}}}|{{{1}}}]] [[{{{1}}}|{{{1}}}]] [[{{{1}}}|{{{1}}}]] [[{{{1}}}|{{{1}}}]] [[{{{1}}}|{{{1}}}]] [[{{{1}}}|{{{1}}}]] [[{{{1}}}|{{{1}}}]] [[{{{1}}}|{{{1}}}]]

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

{{Rp/gfn}} is used to determine where a component group of role components will appear in the corresponding name of the role, and to format the name of that component group appropriately. (In most cases this is just replacing slashes with spaces, and colouring and wikilinking the components; but this template is also responsible for fixing things like Activated and Enabler having different component orders even though both are syntactically the same in a role string.

The first argument must be a component group (that was parsed using, e.g., ). The second argument is used to filter out the location within the role; if it's absent or empty, output will be produced only if the component group should appear after the faction name, and if it's 1, output will be produced only if the component group should appear before the faction name. (Other values are not supported.)

The third argument specifies the color that the name should be printed in; the fourth the character that should appear after the group name (defaulting to a space).

Examples/tests

  • {{Rp/gfn|Cop||green|,}} → Cop,
  • {{Rp/gfn|Cop|1|green|,}} →
  • {{Rp/gfn|1-shot/Bulletproof||green}} →
  • {{Rp/gfn|1-shot/Bulletproof|1|green}} → 1-shot Bulletproof
  • {{Rp/gfn|1-shot/Bulletproof/Activated||green}} → 1-shot Activated Bulletproof
  • {{Rp/gfn|Loud/Inventor||red}} → Loud Inventor