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

Template:SetupParser: Difference between revisions

From MafiaWiki
Jump to navigation Jump to search
(we need a linebreak to join bulleted lists correctly)
(more testing)
Line 53: Line 53:
== Role PMs ==
== Role PMs ==


{{#if:{{{Role1|}}}|{{RoleParser|{{{Role1}}}|{{{GlobalRules|}}}|{{{WinconF1|X}}}Wincon={{{Wincon1|}}}|{{{WinconF3|Y}}}Wincon={{{Wincon2|}}}|{{{WinconF3|Z}}}Wincon={{{Wincon3|}}}}}
{{#if:{{{Role1|}}}|{{RoleParser|{{{Role1}}}|{{{GlobalRules|}}}|{{{WinconF1|X}}}Wincon={{{Wincon1|}}}|{{{WinconF3|Y}}}Wincon={{{Wincon2|}}}|{{{WinconF3|Z}}}Wincon={{{Wincon3|}}}|TownWincon=test}}
}}{{#if:{{{Role2|}}}|{{RoleParser|{{{Role2}}}|{{{GlobalRules|}}}|{{{WinconF1|X}}}Wincon={{{Wincon1|}}}|{{{WinconF3|Y}}}Wincon={{{Wincon2|}}}|{{{WinconF3|Z}}}Wincon={{{Wincon3|}}}}}
}}{{#if:{{{Role2|}}}|{{RoleParser|{{{Role2}}}|{{{GlobalRules|}}}|{{{WinconF1|X}}}Wincon={{{Wincon1|}}}|{{{WinconF3|Y}}}Wincon={{{Wincon2|}}}|{{{WinconF3|Z}}}Wincon={{{Wincon3|}}}}}
}}{{#if:{{{Role3|}}}|{{RoleParser|{{{Role3}}}|{{{GlobalRules|}}}|{{{WinconF1|X}}}Wincon={{{Wincon1|}}}|{{{WinconF3|Y}}}Wincon={{{Wincon2|}}}|{{{WinconF3|Z}}}Wincon={{{Wincon3|}}}}}
}}{{#if:{{{Role3|}}}|{{RoleParser|{{{Role3}}}|{{{GlobalRules|}}}|{{{WinconF1|X}}}Wincon={{{Wincon1|}}}|{{{WinconF3|Y}}}Wincon={{{Wincon2|}}}|{{{WinconF3|Z}}}Wincon={{{Wincon3|}}}}}

Revision as of 08:18, 8 December 2018

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

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; Yes or No

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