Difference between revisions of "Template:HOCa"
Jump to navigation
Jump to search
Template documentation
imported>FlyingChrysalis (Test {{sum}} subtraction and self-referencing in documentation) |
imported>FlyingChrysalis (Didn't work. What the hell are the rules here???) |
||
Line 4: | Line 4: | ||
| GOVCS = {{sum|{{HOC|CON}}|{{HOC|DUP}}}} | | GOVCS = {{sum|{{HOC|CON}}|{{HOC|DUP}}}} | ||
| OPP = {{sum|{{HOC|LAB}}|{{HOC|SNP}}|{{HOC|LD}}|{{HOC|SF}}|{{HOC|IGC}}|{{HOC|PC}}|{{HOC|GP}}|{{HOC|IND}}}} | | OPP = {{sum|{{HOC|LAB}}|{{HOC|SNP}}|{{HOC|LD}}|{{HOC|SF}}|{{HOC|IGC}}|{{HOC|PC}}|{{HOC|GP}}|{{HOC|IND}}}} | ||
− | | CONv = {{sum|{{HOC|CON}}|-{{HOC|CONds}}}} <!--voting total--> | + | <!--| CONv = {{sum|{{HOC|CON}}|-{{HOC|CONds}}}} <!--voting total--> |
| LABv = {{sum|{{HOC|LAB}}|-{{HOC|LABds}}}} <!--voting total--> | | LABv = {{sum|{{HOC|LAB}}|-{{HOC|LABds}}}} <!--voting total--> | ||
| TOTv = {{sum|{{HOC|TOT}}|-1|-{{HOC|CONds}}|-{{HOC|LABds}}|-{{HOC|SF}}|-{{HOC|VAC}}|-{{HOC|SUS}}}} <!--voting total--> | | TOTv = {{sum|{{HOC|TOT}}|-1|-{{HOC|CONds}}|-{{HOC|LABds}}|-{{HOC|SF}}|-{{HOC|VAC}}|-{{HOC|SUS}}}} <!--voting total--> | ||
− | | GOVv = {{ | + | | GOVv = {{HOCa|CONv}} |
− | | OPPv = {{sum|{{ | + | | OPPv = {{sum|{{HOCa|LABv}}|{{HOC|SNP}}|{{HOC|LD}}|{{HOC|IGC}}|{{HOC|PC}}|{{HOC|GP}}|{{HOC|IND}}}} |
− | + | | MAJ = {{sum|{{HOCa|GOVv}}|{{HOC|CS}}|-{{HOC|OPPv}}}}--> | |
}}<noinclude>{{documentation|content= | }}<noinclude>{{documentation|content= | ||
This data template performs calculations on the figures contained in the [[Template:HOC|HOC template]]. | This data template performs calculations on the figures contained in the [[Template:HOC|HOC template]]. | ||
Line 20: | Line 20: | ||
* {{tld|HOCa|CS}} → {{HOCa|CS}} | * {{tld|HOCa|CS}} → {{HOCa|CS}} | ||
* {{tld|HOCa|GOVCS}} → {{HOCa|GOVCS}} | * {{tld|HOCa|GOVCS}} → {{HOCa|GOVCS}} | ||
− | * {{tld|HOCa|OPP}} → {{HOCa|OPP | + | * {{tld|HOCa|OPP}} → {{HOCa|OPP}}<!-- |
− | |||
* {{tld|sum|{{HOC|OPP}}|-{{HOC|LAB}}}} → {{sum|{{HOC|OPP}}|-{{HOC|LAB}}}} | * {{tld|sum|{{HOC|OPP}}|-{{HOC|LAB}}}} → {{sum|{{HOC|OPP}}|-{{HOC|LAB}}}} | ||
* {{tld|HOCa|TOTv}} → {{HOCa|TOTv}} | * {{tld|HOCa|TOTv}} → {{HOCa|TOTv}} |
Revision as of 20:34, 17 November 2019

This data template performs calculations on the figures contained in the HOC template.
Usage
{{HOC|Abbreviation}}
→ Number of seats
Examples
{{HOCa|GOV}}
→ 298{{HOCa|CS}}
→ 10{{HOCa|GOVCS}}
→ Template:Sum{{HOCa|OPP}}
→ Template:Sum
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Subpages of this template. |