You are viewing the MafiaScum.net Wiki. To play the game, visit the forum.
Template:SetupParser: Difference between revisions
Jump to navigation
Jump to search
(we need a linebreak to join bulleted lists correctly) |
(a description of the setup's history is free text, not yes or no) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 53: | Line 53: | ||
== Role PMs == | == Role PMs == | ||
{{#if:{{{Role1|}}}|{{RoleParser|{{{Role1}}}|{{{GlobalRules|}}}|{{{WinconF1|X}}}Wincon={{{Wincon1|}}}|{{{ | {{#if:{{{Role1|}}}|{{RoleParser|{{{Role1}}}|{{{GlobalRules|}}}|{{{WinconF1|X}}}Wincon={{{Wincon1|}}}|{{{WinconF2|Y}}}Wincon={{{Wincon2|}}}|{{{WinconF3|Z}}}Wincon={{{Wincon3|}}}}} | ||
}}{{#if:{{{Role2|}}}|{{RoleParser|{{{Role2}}}|{{{GlobalRules|}}}|{{{WinconF1|X}}}Wincon={{{Wincon1|}}}|{{{ | }}{{#if:{{{Role2|}}}|{{RoleParser|{{{Role2}}}|{{{GlobalRules|}}}|{{{WinconF1|X}}}Wincon={{{Wincon1|}}}|{{{WinconF2|Y}}}Wincon={{{Wincon2|}}}|{{{WinconF3|Z}}}Wincon={{{Wincon3|}}}}} | ||
}}{{#if:{{{Role3|}}}|{{RoleParser|{{{Role3}}}|{{{GlobalRules|}}}|{{{WinconF1|X}}}Wincon={{{Wincon1|}}}|{{{ | }}{{#if:{{{Role3|}}}|{{RoleParser|{{{Role3}}}|{{{GlobalRules|}}}|{{{WinconF1|X}}}Wincon={{{Wincon1|}}}|{{{WinconF2|Y}}}Wincon={{{Wincon2|}}}|{{{WinconF3|Z}}}Wincon={{{Wincon3|}}}}} | ||
}}{{#if:{{{Role4|}}}|{{RoleParser|{{{Role4}}}|{{{GlobalRules|}}}|{{{WinconF1|X}}}Wincon={{{Wincon1|}}}|{{{ | }}{{#if:{{{Role4|}}}|{{RoleParser|{{{Role4}}}|{{{GlobalRules|}}}|{{{WinconF1|X}}}Wincon={{{Wincon1|}}}|{{{WinconF2|Y}}}Wincon={{{Wincon2|}}}|{{{WinconF3|Z}}}Wincon={{{Wincon3|}}}}} | ||
}}{{#if:{{{Role5|}}}|{{RoleParser|{{{Role5}}}|{{{GlobalRules|}}}|{{{WinconF1|X}}}Wincon={{{Wincon1|}}}|{{{ | }}{{#if:{{{Role5|}}}|{{RoleParser|{{{Role5}}}|{{{GlobalRules|}}}|{{{WinconF1|X}}}Wincon={{{Wincon1|}}}|{{{WinconF2|Y}}}Wincon={{{Wincon2|}}}|{{{WinconF3|Z}}}Wincon={{{Wincon3|}}}}} | ||
}}{{#if:{{{Role6|}}}|{{RoleParser|{{{Role6}}}|{{{GlobalRules|}}}|{{{WinconF1|X}}}Wincon={{{Wincon1|}}}|{{{ | }}{{#if:{{{Role6|}}}|{{RoleParser|{{{Role6}}}|{{{GlobalRules|}}}|{{{WinconF1|X}}}Wincon={{{Wincon1|}}}|{{{WinconF2|Y}}}Wincon={{{Wincon2|}}}|{{{WinconF3|Z}}}Wincon={{{Wincon3|}}}}} | ||
}}{{#if:{{{Role7|}}}|{{RoleParser|{{{Role7}}}|{{{GlobalRules|}}}|{{{WinconF1|X}}}Wincon={{{Wincon1|}}}|{{{ | }}{{#if:{{{Role7|}}}|{{RoleParser|{{{Role7}}}|{{{GlobalRules|}}}|{{{WinconF1|X}}}Wincon={{{Wincon1|}}}|{{{WinconF2|Y}}}Wincon={{{Wincon2|}}}|{{{WinconF3|Z}}}Wincon={{{Wincon3|}}}}} | ||
}}{{#if:{{{Role8|}}}|{{RoleParser|{{{Role8}}}|{{{GlobalRules|}}}|{{{WinconF1|X}}}Wincon={{{Wincon1|}}}|{{{ | }}{{#if:{{{Role8|}}}|{{RoleParser|{{{Role8}}}|{{{GlobalRules|}}}|{{{WinconF1|X}}}Wincon={{{Wincon1|}}}|{{{WinconF2|Y}}}Wincon={{{Wincon2|}}}|{{{WinconF3|Z}}}Wincon={{{Wincon3|}}}}} | ||
}}{{#if:{{{Role9|}}}|{{RoleParser|{{{Role9}}}|{{{GlobalRules|}}}|{{{WinconF1|X}}}Wincon={{{Wincon1|}}}|{{{ | }}{{#if:{{{Role9|}}}|{{RoleParser|{{{Role9}}}|{{{GlobalRules|}}}|{{{WinconF1|X}}}Wincon={{{Wincon1|}}}|{{{WinconF2|Y}}}Wincon={{{Wincon2|}}}|{{{WinconF3|Z}}}Wincon={{{Wincon3|}}}}} | ||
}}{{#if:{{{Role10|}}}|{{RoleParser|{{{Role10}}}|{{{GlobalRules|}}}|{{{WinconF1|X}}}Wincon={{{Wincon1|}}}|{{{ | }}{{#if:{{{Role10|}}}|{{RoleParser|{{{Role10}}}|{{{GlobalRules|}}}|{{{WinconF1|X}}}Wincon={{{Wincon1|}}}|{{{WinconF2|Y}}}Wincon={{{Wincon2|}}}|{{{WinconF3|Z}}}Wincon={{{Wincon3|}}}}} | ||
}}{{#if:{{{Role11|}}}|{{RoleParser|{{{Role11}}}|{{{GlobalRules|}}}|{{{WinconF1|X}}}Wincon={{{Wincon1|}}}|{{{ | }}{{#if:{{{Role11|}}}|{{RoleParser|{{{Role11}}}|{{{GlobalRules|}}}|{{{WinconF1|X}}}Wincon={{{Wincon1|}}}|{{{WinconF2|Y}}}Wincon={{{Wincon2|}}}|{{{WinconF3|Z}}}Wincon={{{Wincon3|}}}}} | ||
}}{{#if:{{{Role12|}}}|{{RoleParser|{{{Role12}}}|{{{GlobalRules|}}}|{{{WinconF1|X}}}Wincon={{{Wincon1|}}}|{{{ | }}{{#if:{{{Role12|}}}|{{RoleParser|{{{Role12}}}|{{{GlobalRules|}}}|{{{WinconF1|X}}}Wincon={{{Wincon1|}}}|{{{WinconF2|Y}}}Wincon={{{Wincon2|}}}|{{{WinconF3|Z}}}Wincon={{{Wincon3|}}}}} | ||
}}{{#if:{{{Role13|}}}|{{RoleParser|{{{Role13}}}|{{{GlobalRules|}}}|{{{WinconF1|X}}}Wincon={{{Wincon1|}}}|{{{ | }}{{#if:{{{Role13|}}}|{{RoleParser|{{{Role13}}}|{{{GlobalRules|}}}|{{{WinconF1|X}}}Wincon={{{Wincon1|}}}|{{{WinconF2|Y}}}Wincon={{{Wincon2|}}}|{{{WinconF3|Z}}}Wincon={{{Wincon3|}}}}} | ||
}}{{#if:{{{Role14|}}}|{{RoleParser|{{{Role14}}}|{{{GlobalRules|}}}|{{{WinconF1|X}}}Wincon={{{Wincon1|}}}|{{{ | }}{{#if:{{{Role14|}}}|{{RoleParser|{{{Role14}}}|{{{GlobalRules|}}}|{{{WinconF1|X}}}Wincon={{{Wincon1|}}}|{{{WinconF2|Y}}}Wincon={{{Wincon2|}}}|{{{WinconF3|Z}}}Wincon={{{Wincon3|}}}}} | ||
}}{{#if:{{{Role15|}}}|{{RoleParser|{{{Role15}}}|{{{GlobalRules|}}}|{{{WinconF1|X}}}Wincon={{{Wincon1|}}}|{{{ | }}{{#if:{{{Role15|}}}|{{RoleParser|{{{Role15}}}|{{{GlobalRules|}}}|{{{WinconF1|X}}}Wincon={{{Wincon1|}}}|{{{WinconF2|Y}}}Wincon={{{Wincon2|}}}|{{{WinconF3|Z}}}Wincon={{{Wincon3|}}}}} | ||
}}{{#if:{{{Role16|}}}|{{RoleParser|{{{Role16}}}|{{{GlobalRules|}}}|{{{WinconF1|X}}}Wincon={{{Wincon1|}}}|{{{ | }}{{#if:{{{Role16|}}}|{{RoleParser|{{{Role16}}}|{{{GlobalRules|}}}|{{{WinconF1|X}}}Wincon={{{Wincon1|}}}|{{{WinconF2|Y}}}Wincon={{{Wincon2|}}}|{{{WinconF3|Z}}}Wincon={{{Wincon3|}}}}} | ||
}}{{#if:{{{Role17|}}}|{{RoleParser|{{{Role17}}}|{{{GlobalRules|}}}|{{{WinconF1|X}}}Wincon={{{Wincon1|}}}|{{{ | }}{{#if:{{{Role17|}}}|{{RoleParser|{{{Role17}}}|{{{GlobalRules|}}}|{{{WinconF1|X}}}Wincon={{{Wincon1|}}}|{{{WinconF2|Y}}}Wincon={{{Wincon2|}}}|{{{WinconF3|Z}}}Wincon={{{Wincon3|}}}}} | ||
}}{{#if:{{{Role18|}}}|{{RoleParser|{{{Role18}}}|{{{GlobalRules|}}}|{{{WinconF1|X}}}Wincon={{{Wincon1|}}}|{{{ | }}{{#if:{{{Role18|}}}|{{RoleParser|{{{Role18}}}|{{{GlobalRules|}}}|{{{WinconF1|X}}}Wincon={{{Wincon1|}}}|{{{WinconF2|Y}}}Wincon={{{Wincon2|}}}|{{{WinconF3|Z}}}Wincon={{{Wincon3|}}}}} | ||
}}{{#if:{{{Role19|}}}|{{RoleParser|{{{Role19}}}|{{{GlobalRules|}}}|{{{WinconF1|X}}}Wincon={{{Wincon1|}}}|{{{ | }}{{#if:{{{Role19|}}}|{{RoleParser|{{{Role19}}}|{{{GlobalRules|}}}|{{{WinconF1|X}}}Wincon={{{Wincon1|}}}|{{{WinconF2|Y}}}Wincon={{{Wincon2|}}}|{{{WinconF3|Z}}}Wincon={{{Wincon3|}}}}} | ||
}}{{#if:{{{Role20|}}}|{{RoleParser|{{{Role20}}}|{{{GlobalRules|}}}|{{{WinconF1|X}}}Wincon={{{Wincon1|}}}|{{{ | }}{{#if:{{{Role20|}}}|{{RoleParser|{{{Role20}}}|{{{GlobalRules|}}}|{{{WinconF1|X}}}Wincon={{{Wincon1|}}}|{{{WinconF2|Y}}}Wincon={{{Wincon2|}}}|{{{WinconF3|Z}}}Wincon={{{Wincon3|}}}}}}} | ||
{{#if:{{{Notes|}}}|==Notes== | {{#if:{{{Notes|}}}|==Notes== | ||
Line 110: | Line 110: | ||
| Notes = ''setup notes, these appear after the role PMs; optional'' | | Notes = ''setup notes, these appear after the role PMs; optional'' | ||
| Variations = ''variations of the setups; optional'' | | Variations = ''variations of the setups; optional'' | ||
| History = ''description of the setup's history, coming after statistics; | | History = ''description of the setup's history, coming after statistics; optional'' | ||
| Stats = ''whether to show setup statistics, Yes or No; requires a /Stats subpage'' | | Stats = ''whether to show setup statistics, Yes or No; requires a /Stats subpage'' |
Latest revision as of 03:45, 23 February 2019
|
This template is used to format setup pages for Open setups, including colored and linked role names, and standardised role PMs.
Syntax
{{SetupParser | Players = player count, a decimal number | Type1 = | Type2 = | Type3 = | Type4 = | Type5 = | Type6 = setup types in the Setup Sorting System | Designer1 = | Designer2 = | Designer3 = setup designers | InfoBoxNotes = any notes that should go in the infobox | Role1 = a role string for the first role in the setup | Quan1 = the number of players with role Role1, can be omitted if 1 | Role2 = | Quan2 = | Role3 = | Quan3 = | … like Role1/Quan1; repeat until you've specified every role in the setup | GlobalRules = one of the following: absent; Compulsive (compulsive NK); Daytalk (scum have daytalk); Daytalk/Compulsive (both); Nightless | Mechanics = bulleted list of unusual mechanics; optional | WinconF1 = faction to customize the win condition of; optional | Wincon1 = customized win condition for WinconF1 | WinconF2 = | Wincon2 = | WinconF3 = | Wincon3 = like WinconF1/Wincon1 | Introduction = lead section of the page, introducing the setup | Notes = setup notes, these appear after the role PMs; optional | Variations = variations of the setups; optional | History = description of the setup's history, coming after statistics; optional | Stats = whether to show setup statistics, Yes or No; requires a /Stats subpage | Version2 = | Version3 = | Version4 = whether the setup has at least 2 (3, 4) versions, Yes or No | HideHistory = whether to hide the history, Yes or No }}