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
No edit summary
(update to use {{RoleParser}})
Line 1: Line 1:
<noinclude>{{Template
<noinclude>{{Template
|Designer=Mathdino
|Designer=Mathdino
|Designer2=callforjudgement
|Name=RolePage
|Name=RolePage
|Type=Formatting
|Type=Formatting
Line 7: Line 8:
|Sub=No}}</noinclude><includeonly>{{role
|Sub=No}}</noinclude><includeonly>{{role
|image={{{Image|}}}
|image={{{Image|}}}
|color={{rgb| {{{Align|}}}}}
|color={{rgb| {{{Align|Town}}}}}
|align={{{Align|}}}
|align={{{Align|}}}
|align2={{{Align2|}}}
|align3={{{Align3|}}}
|alias={{{Alias|}}}
|alias={{{Alias|}}}
|alias2={{{Alias2|}}}
|alias2={{{Alias2|}}}
Line 25: Line 28:
|}}{{{Introduction|}}}
|}}{{{Introduction|}}}


{{#ifeq:{{{Normal|}}} | Yes | ==Normal Guidelines==
{{#ifeq:{{{Normal|}}}|Yes|==Normal version==|==Standard version==}}
{{{Normal Guidelines|}}}
{{{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|}}}}}
}}


{{#if:{{{Variations|}}}|==Variations==
{{SampleRolePM|{{{Name|{{PAGENAME}}}}}|{{{Align|Town}}}}}
{{{Variations|}}}
}}
 
{{#if:{{{RolePM|}}}|==Sample Role PM==
{{RolePM| {{{RolePM|}}}}}
{{#if:{{{RolePM2|}}}|
 
----
{{RolePM| {{{RolePM2|}}}}}
}}
{{#if:{{{RolePM3|}}}|
 
----
{{RolePM| {{{RolePM3|}}}}}
}}
}}
{{#if:{{{See Also|}}}|==See Also==


{{{See Also|}}}
{{{See Also|}}}
}}
}}


{{#if:{{{Normal| Yes}}}|[[Category:Normal Roles]]}}</includeonly><noinclude>This template is used to make role pages full with all the information needed without any hassle.
{{#if:{{{Normal| Yes}}}|[[Category:Normal 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.




==Syntax==
==Syntax==


<pre>{{RolePage
<nowiki>{{</nowiki>RolePage
|Image =
| Name = ''the role name; can be omitted if it matches the page name''
|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 =
|Normal =  
| Box2 = ''should there be a second infobox? either Yes or No''
|InfoBoxNotes =
| Box2Image = | Box2Alias = | Box2Align = | Box2Type = | Box2Choice = | Box2Normal = ''as with the first infobox''
 
|Box2 =
| Introduction = ''a very short introduction to the role; will go at the top of the page''
|Box2Image =
| Standard = ''the most common version of the role, with interactions spelled out; this is the Normal version if the role is Normal''
|Box2Alias =
| Variations = ''other versions of the role, and related roles; optional''
|Box2Align =
| Use = ''advice to moderators''
|Box2Type =  
| Advice = ''advice to players''
|Box2Choice =  
| See Also = ''links to strategy articles, etc.; related roles go in Variations; optional''
|Box2Normal =  
<nowiki>}}</nowiki>
 
|Introduction =
 
|Normal Guidelines =
 
|Variations = 
 
|Use =
 
|Advice =
 
|RolePM =
|RolePM2 =
|RolePM3 =
 
|See Also =
}}</pre>
 
==Parameters==
 
Parameter with a "!" are obligatory.
 
=== {{{Image}}}===
Specify the name of the image file for this role here.
------
 
 
===! {{{Align#}}}===
Specify the typical alignment for this role here.
------
 
 
=== {{{Alias#}}}===
Specify other names for this role here.
------
 
 
=== {{{Choice}}}===
Specify what phase this role makes its choices here.
------
 
 
=== {{{Normal}}}===
Specify Yes/No to whether or not this role is Normal.
------
 
 
==={{{InfoBoxNotes}}}===
Specify anything you wish to have noted in the setup page infobox. See the example to clarify what this is.
------
 
 
===! {{{Introduction}}}===
Write the introduction here for the role page, format it any way you wish.
------
 
 
=== {{{Normal Guidelines}}}===
Write the Normal Guidelines here for the role, format it any way you wish.
------
 
 
=== {{{Variations}}}===
Discuss possible variations on this role, format it any way you wish.
------
 
 
=== {{{Use}}}===
Discuss how this role is used in practice and how it affects game balance, format it any way you wish..
------
 
 
=== {{{Advice}}}===
Write out advice for how to play this role, format it any way you wish.
------
 
 
==={{{RolePM#}}}===
 
====For existing PM's====
If the PM can be found here: [[Template:RolePM]], then just write down the title of the role PM.


==Example==
== Example ==


For an example see: [[Neapolitan]]
For an example see [[Neapolitan]].
</noinclude>
</noinclude>

Revision as of 06:17, 8 December 2018

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
}}

Example

For an example see Neapolitan.