You are viewing the MafiaScum.net Wiki. To play the game, visit the forum.
Template:RolePage: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
m (fix typo in template parameter) |
||
(30 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<noinclude>{{Template | <noinclude>{{Template | ||
|Designer=Mathdino | |Designer=Mathdino | ||
|Designer2=callforjudgement | |||
|Name=RolePage | |Name=RolePage | ||
|Type=Formatting | |Type=Formatting | ||
|Type2=Navigation | |Type2=Navigation | ||
|Type3=Organising | |Type3=Organising | ||
|Sub=No}}</noinclude><includeonly>{{role | |Sub=No}}</noinclude><includeonly>__NOEDITSECTION__{{role | ||
|name_override={{{Name|{{PAGENAME}}}}} | |||
|image={{{Image|}}} | |image={{{Image|}}} | ||
|color={{ | |color={{FactionColor|{{{Align|Town}}}}} | ||
|align={{{Align|}}} | |align={{{Align|}}} | ||
|align2={{{Align2|}}} | |||
|align3={{{Align3|}}} | |||
|alias={{{Alias|}}} | |alias={{{Alias|}}} | ||
|alias2={{{Alias2|}}} | |alias2={{{Alias2|}}} | ||
|alias3={{{Alias3|}}} | |||
|type={{{Type|}}} | |type={{{Type|}}} | ||
|type2={{{Type2|}}} | |type2={{{Type2|}}} | ||
|choice={{{Choice|}}}}} | |type3={{{Type3|}}} | ||
|choice={{{Choice|}}} | |||
|via_rolepage=}} | |||
{{#ifeq:{{{Box2|}}} | Yes | {{role | {{#ifeq:{{{Box2|}}} | Yes | {{role | ||
|name_override={{{Box2Name|{{PAGENAME}}}}} | |||
|image={{{Box2Image|}}} | |image={{{Box2Image|}}} | ||
|color={{rgb| {{{Box2Align|}}}}} | |color={{rgb| {{{Box2Align|}}}}} | ||
|align={{{Box2Align|}}} | |align={{{Box2Align|}}} | ||
|align2={{{Box2Align2|}}} | |||
|alias={{{Box2Alias|}}} | |alias={{{Box2Alias|}}} | ||
|alias2={{{Box2Alias2|}}} | |alias2={{{Box2Alias2|}}} | ||
|type={{{Box2Type|}}} | |type={{{Box2Type|}}} | ||
|type2={{{Box2Type2|}}} | |type2={{{Box2Type2|}}} | ||
|choice={{{Box2Choice|}}}}} | |choice={{{Box2Choice|}}} | ||
|via_rolepage=}} | |||
|}}{{{Introduction|}}} | |}}{{{Introduction|}}} | ||
{{#ifeq:{{{Normal|}}} | Yes | ==Normal | {{#ifeq:{{{Normal|}}}|Yes|==Normal version==|==Standard version==}} | ||
{{{ | {{{Standard|}}} | ||
|}} | |||
{{#if:{{{Variations|}}}|==Variations== | |||
{{{Variations|}}}}} | |||
{{#if:{{{Use|}}}|==Use & Balance== | {{#if:{{{Use|}}}|==Use & Balance== | ||
{{{Use|}}} | {{{Use|}}}}} | ||
}} | |||
{{#if:{{{Advice|}}}|==Play Advice== | {{#if:{{{Advice|}}}|==Play Advice== | ||
{{{Advice|}}} | {{{Advice|}}}}} | ||
}} | |||
{{{ | == Sample Role PMs == | ||
}} | {{SampleRolePM|{{{Name|{{PAGENAME}}}}}|{{{Align|Town}}}|{{{SampleModifier|1-shot}}}}} | ||
{{#if:{{{Normal| Yes}}}|[[Category:Normal Roles]]}}</includeonly><noinclude>This template is used to | {{#if:{{{See Also|}}}|==See also== | ||
{{{See Also|}}}}}{{#ifeq:{{{Normal|No}}}|Yes|{{#switch:{{rcl/{{{Name|{{PAGENAME}}}}}}}|m=[[Category:Normal modifiers]]|h=[[Category:Normal modifiers]]|i=[[Category:Normal modifiers]]|s=[[Category:Normal modifiers]]|[[Category:Normal roles]]}}}}{{#switch:{{rcl/{{{Name|{{PAGENAME}}}}}}}|p=[[Category:Passive roles]][[Category:Roles]]|m=[[Category:Role modifiers]]|h=[[Category:Role modifiers]]|i=[[Category:Role modifiers]]|s=[[Category:Role modifiers]]|dp=[[Category:Roles]][[Category:Passive roles]][[Category:Linked roles]]|du=[[Category:Roles]][[Category:Linked roles]]|[[Category:Roles]]}}{{#switch:{{{Align|}}}|Third-party=[[Category:Third-party roles]][[Category:Roles usable by unusual alignments]]|Town=[[Category:Roles that are usually Town-aligned]][[Category:Roles usable by the Town]]|Mafia=[[Category:Roles that are usually Mafia-aligned]][[Category:Roles usable by the Mafia]]|Werewolf=|=|[[Category:Roles usable by unusual alignments]]}}{{#switch:{{{Align2|}}}|Town=[[Category:Roles usable by the Town]]|Mafia=[[Category:Roles usable by the Mafia]]|Werewolf=|=|[[Category:Roles usable by unusual alignments]]}}{{#switch:{{{Align3|}}}|Town=[[Category:Roles usable by the Town]]|Mafia=[[Category:Roles usable by the Mafia]]|Werewolf=|=|[[Category:Roles usable by unusual alignments]]}}{{#switch:{{{Box2Align|}}}|Town=[[Category:Roles usable by the Town]]|Mafia=[[Category:Roles usable by the Mafia]]|Werewolf=|=|[[Category:Roles usable by unusual alignments]]}}{{#switch:{{{Box2Align2|}}}|Town=[[Category:Roles usable by the Town]]|Mafia=[[Category:Roles usable by the Mafia]]|Werewolf=|=|[[Category:Roles usable by unusual alignments]]}}[[Category:All roles and 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. | |||
==Syntax== | ==Syntax== | ||
< | <nowiki>{{</nowiki>RolePage | ||
|Image= | | Name = ''the role name; omit if it matches the page name; if the page is about several roles, pick one'' | ||
|Align= | | Image = ''an image for the role, if one exists'' | ||
|Alias= | | Align = | Align2 = | Align3 = ''the alignments this role is used as, most common first'' | ||
|Alias2= | | Alias = | Alias2 = | Alias3 = ''alternative names for this role'' | ||
|Alias3= | | Type = | Type2 = | Type3 = ''categories this role should be placed in'' | ||
|Type= | | Choice = ''the phase this role normally uses an active ability; omit if there isn't one'' | ||
|Type2= | | Normal = ''is this Normal? either Yes or No'' | ||
|Type3= | | InfoBoxNotes = ''any notes that should go in the infobox'' | ||
|Choice= | | Box2 = ''should there be a second infobox? either Yes or No'' | ||
|Normal= | | Box2Name = | Box2Image = | Box2Alias = | Box2Align = | Box2Type = | Box2Choice = | Box2Normal = ''as with the first infobox'' | ||
|InfoBoxNotes= | |||
| 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'' | ||
<nowiki>}}</nowiki> | |||
| | |||
| | |||
| | |||
| | |||
| | |||
= | |||
= | |||
==Example== | == Example == | ||
For an example see | For an example see [[Neapolitan]]. | ||
</noinclude> | </noinclude> |
Latest revision as of 00:05, 15 September 2020
|
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; omit if it matches the page name; if the page is about several roles, pick one | 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 | Box2Name = | 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.