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

Template:RolePage: Difference between revisions

From MafiaWiki
Jump to navigation Jump to search
(Undo revision 136204 by Callforjudgement (talk|contribs): I think it looks better without)
(automatically add Category:Normal Modifiers when appropriate (we may want to change the case of this category soon, always adding it at the same place is required to do that))
Line 45: Line 45:
{{#if:{{{See Also|}}}|==See also==
{{#if:{{{See Also|}}}|==See also==
{{{See Also|}}}}}
{{{See Also|}}}}}
{{#ifeq:{{{Normal|No}}}|Yes|[[Category:Normal Roles]]}}{{#switch:{{rcl/{{{Name|{{PAGENAME}}}}}}}|p=[[Category:Passive roles]]|m=[[Category:Role Modifiers]]|i=[[Category:Role Modifiers]]|s=[[Category:Role Modifiers]]|dp=[[Category:Passive roles]][[Category:Linked roles]]|du=[[Category:Linked roles]]}}
{{#ifeq:{{{Normal|No}}}|Yes|[[Category:Normal Roles]]{{#switch:{{rcl/{{{Name|{{PAGENAME}}}}}}}|m=[[Category:Normal Modifiers]]|i=[[Category:Normal Modifiers]]|s=[[Category:Normal Modifiers]]}}}}{{#switch:{{rcl/{{{Name|{{PAGENAME}}}}}}}|p=[[Category:Passive roles]]|m=[[Category:Role Modifiers]]|i=[[Category:Role Modifiers]]|s=[[Category:Role Modifiers]]|dp=[[Category:Passive roles]][[Category:Linked roles]]|du=[[Category:Linked roles]]}}
</includeonly><noinclude>This template is used to give a standardised formatting for role pages. It also makes it easy to connect most roles to the {{tl|RoleParser}} system (although doing this for role modifiers and passives is more complex because the role PM wording for such roles interacts with each other). It can be used for factions, roles, and role modifiers.
</includeonly><noinclude>This template is used to give a standardised formatting for role pages. It also makes it easy to connect most roles to the {{tl|RoleParser}} system (although doing this for role modifiers and passives is more complex because the role PM wording for such roles interacts with each other). It can be used for factions, roles, and role modifiers.



Revision as of 01:05, 24 June 2019

Name:
  • RolePage
Types:
Sub-Template:
  • No
Designers:

This template is used to give a standardised formatting for role pages. It also makes it easy to connect most roles to the {{RoleParser}} system (although doing this for role modifiers and passives is more complex because the role PM wording for such roles interacts with each other). It can be used for factions, roles, and role modifiers.


Syntax

{{RolePage
| Name = the role name; can be omitted if it matches the page name
| Image = an image for the role, if one exists
| Align = | Align2 = | Align3 = the alignments this role is used as, most common first
| Alias = | Alias2 = | Alias3 = alternative names for this role
| Type = | Type2 = | Type3 = categories this role should be placed in
| Choice = the phase this role normally uses an active ability; omit if there isn't one
| Normal = is this Normal? either Yes or No
| InfoBoxNotes = any notes that should go in the infobox

| Box2 = should there be a second infobox? either Yes or No
| Box2Image = | Box2Alias = | Box2Align = | Box2Type = | Box2Choice = | Box2Normal = as with the first infobox

| Introduction = a very short introduction to the role; will go at the top of the page
| Standard = the most common version of the role, with interactions spelled out; this is the Normal version if the role is Normal
| Variations = other versions of the role, and related roles; optional
| Use = advice to moderators
| Advice = advice to players
| See Also = links to strategy articles, etc.; related roles go in Variations; optional

| SampleModifier = an override for the modifier on the sample Role PM; use only if the default suggestion is inappropriate
}}

Example

For an example see Neapolitan.