User:CX Zoom/Template:Election box roundwise rank choice candidate/doc

TemplateData
Note:
 * Parameters consisting r6 in their names, appear if rounds is set to 6.
 * Parameters consisting r5 in their names, appear if rounds is set to 5 or more.
 * Parameters consisting r4 in their names, appear if rounds is set to 4 or more.
 * Parameters consisting r3 in their names, appear if rounds is set to 3 or more.


 * Therefore, no requirement to use such parameters, if they are not supposed to appear.

{	"params": { "rounds": { "label": "Rounds", "description": "Number of rounds in the election. (Min: 2, Max:6)", "type": "number", "required": true },		"party": { "label": "Party", "description": "Name of party. No enclosing in brackets.", "type": "string", "required": true },		"candidate": { "label": "Candidate", "description": "Name of candidate. Enclose in brackets as usual, if article exists.", "type": "string", "required": true },		"electcolor": { "label": "Elect color", "description": "Background color for the round in which the candidate is elected. Do not use if the candidate is not elected.", "default": "#99ff99" },		"r1v": { "label": "Round 1 votes", "description": "Votes received in round 1.", "type": "number", "required": true },		"r1p": { "label": "Round 1 pct", "description": "% votes received in round 1.", "type": "unknown", "required": true },		"r1t": { "label": "Round 1 transfer", "description": "Votes transferred in round 1 for round 2.", "type": "number", "required": true },		"r1lostvotes": { "label": "Round 1 lost votes", "description": "If set to yes, turns background color of \"Round 1 transfer\" cell as pink. Denotes that votes are lost as a result of the transfer. It is case sensitive.", "type": "string" },		"r1eliminated": { "label": "Round 1 eliminated", "description": "If set to yes, denotes the candidate is eliminated from this round (#1). It is case sensitive.", "type": "string" },		"r2v": { "label": "Round 2 votes", "description": "Cumulative votes in round 2.", "type": "number" },		"r2g": { "label": "Round 2 gross pct", "description": "%(gross): cumulative votes in round 2 as a %age of total votes cast.", "type": "unknown" },		"r2n": { "label": "Round 2 net pct", "description": "%(net): cumulative votes in round 2 as a %age of total active votes in this round (#2)." },		"r2t": { "label": "Round 2 transfer", "description": "Votes transferred in round 2 for round 3.", "type": "number" },		"r2lostvotes": { "label": "Round 2 lost votes", "description": "If set to yes, turns background color of \"Round 2 transfer\" cell as pink. Denotes that votes are lost as a result of the transfer. It is case sensitive.", "type": "string" },		"r2eliminated": { "label": "Round 2 eliminated", "description": "If set to yes, denotes the candidate is eliminated from this round (#2). It is case sensitive.", "type": "string" },		"r2elected": { "label": "Round 2 elected", "description": "If set to yes, denotes the candidate is elected in this round (#2). It is case sensitive. Works only if, rounds=2.", "type": "string" },		"r3v": { "label": "Round 3 votes", "description": "Cumulative votes in round 3.", "type": "number" },		"r3g": { "label": "Round 3 gross pct", "description": "%(gross): cumulative votes in round 3 as a %age of total votes cast." },		"r3n": { "label": "Round 3 net pct", "description": "%(net): cumulative votes in round 3 as a %age of total active votes in this round (#3)." },		"r3t": { "label": "Round 3 transfer", "description": "Votes transferred in round 3 for round 4.", "type": "number" },		"r3lostvotes": { "label": "Round 3 lost votes", "description": "If set to yes, turns background color of \"Round 3 transfer\" cell as pink. Denotes that votes are lost as a result of the transfer. It is case sensitive.", "type": "string" },		"r3eliminated": { "label": "Round 3 eliminated", "description": "If set to yes, denotes the candidate is eliminated from this round (#3). It is case sensitive.", "type": "string" },		"r3elected": { "label": "Round 3 elected", "description": "If set to yes, denotes the candidate is elected in this round (#3). It is case sensitive. Works only if, rounds=3.", "type": "string" },		"r4v": { "label": "Round 4 votes", "description": "Cumulative votes in round 4.", "type": "number" },		"r4g": { "label": "Round 4 gross pct", "description": "%(gross): cumulative votes in round 4 as a %age of total votes cast." },		"r4n": { "label": "Round 4 net pct", "description": "%(net): cumulative votes in round 4 as a %age of total active votes in this round (#4)." },		"r4t": { "label": "Round 4 transfer", "description": "Votes transferred in round 4 for round 5.", "type": "number" },		"r4lostvotes": { "label": "Round 4 lost votes", "description": "If set to yes, turns background color of \"Round 4 transfer\" cell as pink. Denotes that votes are lost as a result of the transfer. It is case sensitive.", "type": "string" },		"r4eliminated": { "label": "Round 4 eliminated", "description": "If set to yes, denotes the candidate is eliminated from this round (#4). It is case sensitive.", "type": "string" },		"r4elected": { "label": "Round 4 elected", "description": "If set to yes, denotes the candidate is elected in this round (#4). It is case sensitive. Works only if, rounds=4.", "type": "string" },		"r5v": { "label": "Round 5 votes", "description": "Cumulative votes in round 5.", "type": "number" },		"r5g": { "label": "Round 5 gross pct", "description": "%(gross): cumulative votes in round 5 as a %age of total votes cast." },		"r5n": { "label": "Round 5 net pct", "description": "%(net): cumulative votes in round 5 as a %age of total active votes in this round (#5)." },		"r5t": { "label": "Round 5 transfer", "description": "Votes transferred in round 5 for round 6.", "type": "number" },		"r5lostvotes": { "label": "Round 5 lost votes", "description": "If set to yes, turns background color of \"Round 5 transfer\" cell as pink. Denotes that votes are lost as a result of the transfer. It is case sensitive.", "type": "string" },		"r5eliminated": { "label": "Round 5 eliminated", "description": "If set to yes, denotes the candidate is eliminated from this round (#5). It is case sensitive.", "type": "string" },		"r5elected": { "label": "Round 5 elected", "description": "If set to yes, denotes the candidate is elected in this round (#5). It is case sensitive. Works only if, rounds=5.", "type": "string" },		"r6v": { "label": "Round 6 votes", "description": "Cumulative votes in round 6.", "type": "number" },		"r6g": { "label": "Round 6 gross pct", "description": "%(gross): cumulative votes in round 6 as a %age of total votes cast." },		"r6n": { "label": "Round 6 net pct", "description": "%(net): cumulative votes in round 6 as a %age of total active votes in this round (#6)." },		"r6elected": { "label": "Round 6 elected", "description": "If set to yes, denotes the candidate is elected in this round (#6). It is case sensitive. Works only if, rounds=6.", "type": "string" }	},	"description": "Displays the results of an individual in election box roundwise rank choice.", "paramOrder": [ "rounds", "party", "candidate", "electcolor", "r1v", "r1p", "r1t", "r1lostvotes", "r1eliminated", "r2v", "r2g", "r2n", "r2t", "r2lostvotes", "r2eliminated", "r2elected", "r3v", "r3g", "r3n", "r3t", "r3lostvotes", "r3eliminated", "r3elected", "r4v", "r4g", "r4n", "r4t", "r4lostvotes", "r4eliminated", "r4elected", "r5v", "r5g", "r5n", "r5t", "r5lostvotes", "r5eliminated", "r5elected", "r6v", "r6g", "r6n", "r6elected" ],	"format": "block" }