Template:Infobox election: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
Now Supporting non-multiples of 4! |
||
| (17 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
<includeonly><onlyinclude>{{Infobox| | <includeonly><onlyinclude>{{Infobox| | ||
{{Infobox/above|{{{name|}}}}} | {{Infobox/above|{{{name|}}}}} | ||
{{Infobox/header|←{{{previous}}} ''' | {{Infobox/image|image={{{flag|}}}|options=border{{!}}50px}} | ||
{{Infobox/header|← {{{previous}}} '''·''' {{{next}}} →}} | |||
{{Infobox/split|equal=no| | {{Infobox/split|equal=no| | ||
{{Infobox/split/column|vertical-align=left | {{Infobox/split/column|vertical-align=left| | ||
{{Infobox/image|image={{{ | {{Infobox/image|image=Empty-Placeholder.png|options=border{{!}}frameless{{!}}100x100px}} | ||
{{Infobox/row|Candidate|''}} | |||
{{Infobox/row|Party|''}} | |||
{{Infobox/row|Seats before|''}} | |||
{{Infobox/row|Seats won|''}} | |||
{{Infobox/row|Seats change|''}} | |||
}} | }} | ||
{{Infobox/split/column|vertical-align=right|style=width:min-content| | |||
{{#if: {{{leader1|}}} |{{Infobox/image|image={{{leader1|}}}|options=border{{!}}frameless{{!}}100x100px}}|{{Infobox/image|image=Portrait-placeholder.png|options=border{{!}}frameless{{!}}100x100px}}}} | |||
{{Infobox/row||{{{lname1|}}}}} | |||
{{Infobox/row||{{Colorbox|#{{{pcolor1|ffffff00}}}|{{{party1|}}}|{{{plink1|}}}|{{#if:{{{ptext1|}}}|#{{{ptext1|}}}|#000}}}}}} | |||
{{Infobox/row||{{{past1|}}}}} | |||
{{Infobox/row||{{{after1|}}}}} | |||
{{Infobox/row||{{{change1|}}}}} | |||
}} | |||
{{Infobox/split/column|vertical-align=right|style=width:min-content| | |||
{{#if: {{{leader2|}}} |{{Infobox/image|image={{{leader2|}}}|options=border{{!}}frameless{{!}}100x100px}}|{{Infobox/image|image=Portrait-placeholder.png|options=border{{!}}frameless{{!}}100x100px}}}} | |||
{{Infobox/row||{{{lname2|}}}}} | |||
{{Infobox/row||{{Colorbox|#{{{pcolor2|ffffff00}}}|{{{party2|}}}|{{{plink2|}}}|{{#if:{{{ptext2|}}}|#{{{ptext2|}}}|#000}}}}}} | |||
{{Infobox/row||{{{past2|}}}}} | |||
{{Infobox/row||{{{after2|}}}}} | |||
{{Infobox/row||{{{change2|}}}}} | |||
}} | |||
{{#if: {{{lname3|}}} | | |||
{{Infobox/split/column|vertical-align=right|style=width:min-content| | |||
{{#if: {{{leader3|}}} |{{Infobox/image|image={{{leader3|}}}|options=border{{!}}frameless{{!}}100x100px}}|{{Infobox/image|image=Portrait-placeholder.png|options=border{{!}}frameless{{!}}100x100px}}}} | |||
{{Infobox/row||{{{lname3|}}}}} | |||
{{Infobox/row||{{Colorbox|#{{{pcolor3|ffffff00}}}|{{{party3|}}}|{{{plink3|}}}|{{#if:{{{ptext3|}}}|#{{{ptext3|}}}|#000}}}}}} | |||
{{Infobox/row||{{{past3|}}}}} | |||
{{Infobox/row||{{{after3|}}}}} | |||
{{Infobox/row||{{{change3|}}}}} | |||
}} | |||
|}} | |||
{{#if: {{{lname4|}}} | | |||
{{Infobox/split/column|vertical-align=right|style=width:min-content| | |||
{{#if: {{{leader4|}}} |{{Infobox/image|image={{{leader4|}}}|options=border{{!}}frameless{{!}}100x100px}}|{{Infobox/image|image=Portrait-placeholder.png|options=border{{!}}frameless{{!}}100x100px}}}} | |||
{{Infobox/row||{{{lname4|}}}}} | |||
{{Infobox/row||{{Colorbox|#{{{pcolor4|ffffff00}}}|{{{party4|}}}|{{{plink4|}}}|{{#if:{{{ptext4|}}}|#{{{ptext4|}}}|#000}}}}}} | |||
{{Infobox/row||{{{past4|}}}}} | |||
{{Infobox/row||{{{after4|}}}}} | |||
{{Infobox/row||{{{change4|}}}}} | |||
}} | |||
}} | |||
|}} | |||
<!-- Start of If block for 5+ parties --> | |||
{{#if: {{{lname5|}}} | | |||
{{Infobox/split|equal=no| | |||
{{Infobox/split/column|vertical-align=left| | |||
{{Infobox/image|image=Empty-Placeholder.png|options=border{{!}}frameless{{!}}100x100px}} | |||
{{Infobox/row|Candidate|''}} | |||
{{Infobox/row|Party|''}} | |||
{{Infobox/row|Seats before|''}} | |||
{{Infobox/row|Seats won|''}} | |||
{{Infobox/row|Seats change|''}} | |||
}} | |||
{{Infobox/split/column|vertical-align=right|style=width:min-content| | |||
{{#if: {{{leader5|}}} |{{Infobox/image|image={{{leader5|}}}|options=border{{!}}frameless{{!}}100x100px}}|{{Infobox/image|image=Portrait-placeholder.png|options=border{{!}}frameless{{!}}100x100px}}}} | |||
{{Infobox/row||{{{lname5|}}}}} | |||
{{Infobox/row||{{Colorbox|#{{{pcolor5|ffffff00}}}|{{{party5|}}}|{{{plink5|}}}|{{#if:{{{ptext5|}}}|#{{{ptext5|}}}|#000}}}}}} | |||
{{Infobox/row||{{{past5|}}}}} | |||
{{Infobox/row||{{{after5|}}}}} | |||
{{Infobox/row||{{{change5|}}}}} | |||
}} | |||
{{#if: {{{lname6|}}} | | |||
{{Infobox/split/column|vertical-align=right|style=width:min-content| | |||
{{#if: {{{leader6|}}} |{{Infobox/image|image={{{leader6|}}}|options=border{{!}}frameless{{!}}100x100px}}|{{Infobox/image|image=Portrait-placeholder.png|options=border{{!}}frameless{{!}}100x100px}}}} | |||
{{Infobox/row||{{{lname6|}}}}} | |||
{{Infobox/row||{{Colorbox|#{{{pcolor6|ffffff00}}}|{{{party6|}}}|{{{plink6|}}}|{{#if:{{{ptext6|}}}|#{{{ptext6|}}}|#000}}}}}} | |||
{{Infobox/row||{{{past6|}}}}} | |||
{{Infobox/row||{{{after6|}}}}} | |||
{{Infobox/row||{{{change6|}}}}} | |||
}} | |||
|}} | |||
{{#if: {{{lname7|}}} | | |||
{{Infobox/split/column|vertical-align=right|style=width:min-content| | |||
{{#if: {{{leader7|}}} |{{Infobox/image|image={{{leader7|}}}|options=border{{!}}frameless{{!}}100x100px}}|{{Infobox/image|image=Portrait-placeholder.png|options=border{{!}}frameless{{!}}100x100px}}}} | |||
{{Infobox/row||{{{lname7|}}}}} | |||
{{Infobox/row||{{Colorbox|#{{{pcolor7|ffffff00}}}|{{{party7|}}}|{{{plink7|}}}|{{#if:{{{ptext7|}}}|#{{{ptext7|}}}|#000}}}}}} | |||
{{Infobox/row||{{{past7|}}}}} | |||
{{Infobox/row||{{{after7|}}}}} | |||
{{Infobox/row||{{{change7|}}}}} | |||
}} | |||
|}} | |||
{{#if: {{{lname8|}}} | | |||
{{Infobox/split/column|vertical-align=right|style=width:min-content| | |||
{{#if: {{{leader8|}}} |{{Infobox/image|image={{{leader8|}}}|options=border{{!}}frameless{{!}}100x100px}}|{{Infobox/image|image=Portrait-placeholder.png|options=border{{!}}frameless{{!}}100x100px}}}} | |||
{{Infobox/row||{{{lname8|}}}}} | |||
{{Infobox/row||{{Colorbox|#{{{pcolor8|ffffff00}}}|{{{party8|}}}|{{{plink8|}}}|{{#if:{{{ptext8|}}}|#{{{ptext8|}}}|#000}}}}}} | |||
{{Infobox/row||{{{past8|}}}}} | |||
{{Infobox/row||{{{after8|}}}}} | |||
{{Infobox/row||{{{change8|}}}}} | |||
}} | |||
}} | |||
|}} | |||
|}} | |||
<!-- End of If block for 5+ parties --> | |||
<!-- Start of If block for 9+ parties --> | |||
{{#if: {{{lname9|}}} | | |||
{{Infobox/split|equal=no| | |||
{{Infobox/split/column|vertical-align=left| | |||
{{Infobox/image|image=Empty-Placeholder.png|options=border{{!}}frameless{{!}}100x100px}} | |||
{{Infobox/row|Candidate|''}} | |||
{{Infobox/row|Party|''}} | |||
{{Infobox/row|Seats before|''}} | |||
{{Infobox/row|Seats won|''}} | |||
{{Infobox/row|Seats change|''}} | |||
}} | |||
{{Infobox/split/column|vertical-align=right|style=width:min-content| | |||
{{#if: {{{leader9|}}} |{{Infobox/image|image={{{leader9|}}}|options=border{{!}}frameless{{!}}100x100px}}|{{Infobox/image|image=Portrait-placeholder.png|options=border{{!}}frameless{{!}}100x100px}}}} | |||
{{Infobox/row||{{{lname9|}}}}} | |||
{{Infobox/row||{{Colorbox|#{{{pcolor9|ffffff00}}}|{{{party9|}}}|{{{plink9|}}}|{{#if:{{{ptext9|}}}|#{{{ptext9|}}}|#000}}}}}} | |||
{{Infobox/row||{{{past9|}}}}} | |||
{{Infobox/row||{{{after9|}}}}} | |||
{{Infobox/row||{{{change9|}}}}} | |||
}} | |||
{{#if: {{{leader10|}}} | | |||
{{Infobox/split/column|vertical-align=right|style=width:min-content| | |||
{{#if: {{{leader10|}}} |{{Infobox/image|image={{{leader10|}}}|options=border{{!}}frameless{{!}}100x100px}}|{{Infobox/image|image=Portrait-placeholder.png|options=border{{!}}frameless{{!}}100x100px}}}} | |||
{{Infobox/row||{{{lname10|}}}}} | |||
{{Infobox/row||{{Colorbox|#{{{pcolor10|ffffff00}}}|{{{party10|}}}|{{{plink10|}}}|{{#if:{{{ptext10|}}}|#{{{ptext10|}}}|#000}}}}}} | |||
{{Infobox/row||{{{past10|}}}}} | |||
{{Infobox/row||{{{after10|}}}}} | |||
{{Infobox/row||{{{change10|}}}}} | |||
}} | |||
|}} | |||
{{#if: {{{leader11|}}} | | |||
{{Infobox/split/column|vertical-align=right|style=width:min-content| | |||
{{#if: {{{leader11|}}} |{{Infobox/image|image={{{leader11|}}}|options=border{{!}}frameless{{!}}100x100px}}|{{Infobox/image|image=Portrait-placeholder.png|options=border{{!}}frameless{{!}}100x100px}}}} | |||
{{Infobox/row||{{{lname11|}}}}} | |||
{{Infobox/row||{{Colorbox|#{{{pcolor11|ffffff00}}}|{{{party11|}}}|{{{plink11|}}}|{{#if:{{{ptext11|}}}|#{{{ptext11|}}}|#000}}}}}} | |||
{{Infobox/row||{{{past11|}}}}} | |||
{{Infobox/row||{{{after11|}}}}} | |||
{{Infobox/row||{{{change11|}}}}} | |||
}} | |||
|}} | |||
{{#if: {{{leader12|}}} | | |||
{{Infobox/split/column|vertical-align=right|style=width:min-content| | {{Infobox/split/column|vertical-align=right|style=width:min-content| | ||
{{Infobox/image|image={{{ | {{#if: {{{leader12|}}} |{{Infobox/image|image={{{leader12|}}}|options=border{{!}}frameless{{!}}100x100px}}|{{Infobox/image|image=Portrait-placeholder.png|options=border{{!}}frameless{{!}}100x100px}}}} | ||
|options=border{{!}} | {{Infobox/row||{{{lname12|}}}}} | ||
{{Infobox/row||{{Colorbox|#{{{pcolor12|ffffff00}}}|{{{party12|}}}|{{{plink12|}}}|{{#if:{{{ptext12|}}}|#{{{ptext12|}}}|#000}}}}}} | |||
{{Infobox/row||{{{past12|}}}}} | |||
{{Infobox/row||{{{after12|}}}}} | |||
{{Infobox/row||{{{change12|}}}}} | |||
}} | }} | ||
}} | }} | ||
|}} | |||
|}} | |||
<!-- End of If block for 9+ parties --> | |||
<!-- Start of If block for 13+ parties --> | |||
{{#if: {{{lname13|}}} | | |||
{{Infobox/split|equal=no| | |||
{{Infobox/split/column|vertical-align=left| | |||
{{Infobox/image|image=Empty-Placeholder.png|options=border{{!}}frameless{{!}}100x100px}} | |||
{{Infobox/row|Candidate|''}} | |||
{{Infobox/row|Party|''}} | |||
{{Infobox/row|Seats before|''}} | |||
{{Infobox/row|Seats won|''}} | |||
{{Infobox/row|Seats change|''}} | |||
}} | |||
{{Infobox/split/column|vertical-align=right|style=width:min-content| | |||
{{#if: {{{leader13|}}} |{{Infobox/image|image={{{leader13|}}}|options=border{{!}}frameless{{!}}100x100px}}|{{Infobox/image|image=Portrait-placeholder.png|options=border{{!}}frameless{{!}}100x100px}}}} | |||
{{Infobox/row||{{{lname13|}}}}} | |||
{{Infobox/row||{{Colorbox|#{{{pcolor13|ffffff00}}}|{{{party13|}}}|{{{plink13|}}}|{{#if:{{{ptext13|}}}|#{{{ptext13|}}}|#000}}}}}} | |||
{{Infobox/row||{{{past13|}}}}} | |||
{{Infobox/row||{{{after13|}}}}} | |||
{{Infobox/row||{{{change13|}}}}} | |||
}} | |||
{{#if: {{{leader14|}}} | | |||
{{Infobox/split/column|vertical-align=right|style=width:min-content| | |||
{{#if: {{{leader14|}}} |{{Infobox/image|image={{{leader14|}}}|options=border{{!}}frameless{{!}}100x100px}}|{{Infobox/image|image=Portrait-placeholder.png|options=border{{!}}frameless{{!}}100x100px}}}} | |||
{{Infobox/row||{{{lname14|}}}}} | |||
{{Infobox/row||{{Colorbox|#{{{pcolor14|ffffff00}}}|{{{party14|}}}|{{{plink14|}}}|{{#if:{{{ptext14|}}}|#{{{ptext14|}}}|#000}}}}}} | |||
{{Infobox/row||{{{past14|}}}}} | |||
{{Infobox/row||{{{after14|}}}}} | |||
{{Infobox/row||{{{change14|}}}}} | |||
}} | |||
|}} | |||
{{#if: {{{leader15|}}} | | |||
{{Infobox/split/column|vertical-align=right|style=width:min-content| | |||
{{#if: {{{leader15|}}} |{{Infobox/image|image={{{leader15|}}}|options=border{{!}}frameless{{!}}100x100px}}|{{Infobox/image|image=Portrait-placeholder.png|options=border{{!}}frameless{{!}}100x100px}}}} | |||
{{Infobox/row||{{{lname15|}}}}} | |||
{{Infobox/row||{{Colorbox|#{{{pcolor15|ffffff00}}}|{{{party15|}}}|{{{plink15|}}}|{{#if:{{{ptext15|}}}|#{{{ptext15|}}}|#000}}}}}} | |||
{{Infobox/row||{{{past15|}}}}} | |||
{{Infobox/row||{{{after15|}}}}} | |||
{{Infobox/row||{{{change15|}}}}} | |||
}} | |||
|}} | |||
{{#if: {{{lname16|}}} | | |||
{{Infobox/split/column|vertical-align=right|style=width:min-content| | |||
{{#if: {{{leader16|}}} |{{Infobox/image|image={{{leader16|}}}|options=border{{!}}frameless{{!}}100x100px}}|{{Infobox/image|image=Portrait-placeholder.png|options=border{{!}}frameless{{!}}100x100px}}}} | |||
{{Infobox/row||{{{lname16|}}}}} | |||
{{Infobox/row||{{Colorbox|#{{{pcolor16|ffffff00}}}|{{{party16|}}}|{{{plink16|}}}|{{#if:{{{ptext16|}}}|#{{{ptext16|}}}|#000}}}}}} | |||
{{Infobox/row||{{{past16|}}}}} | |||
{{Infobox/row||{{{after16|}}}}} | |||
{{Infobox/row||{{{change16|}}}}} | |||
}} | |||
}} | |||
|}} | |||
|}} | |||
<!-- End of If block for 13+ parties --> | |||
{{Infobox/row|Preceded by|{{{previous|}}}}} | |||
{{Infobox/row|Succeeded by|{{{next|}}}}} | |||
{{Infobox/row|Preceded by|{{{ | |||
{{Infobox/row|Succeeded by|{{{ | |||
<!-- MAP --> | <!-- MAP --> | ||
Latest revision as of 03:31, 25 November 2026
| 552nd Executive Council of the Carpenters’ Guild of Yetch Bay | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ← 2025 · 2027 → | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Preceded by | 2025 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Succeeded by | 2027 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Map | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Election of Place 2026 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ← 2025 · 2027 → | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Preceded by | 2025 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Succeeded by | 2027 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Map | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
This is a template for Elections, and almost certainly jankily made.
Most parameters are optional and the row will not appear if the parameter is empty or omitted. Feel free to add more parameters for stuff that people might want to put in a ŋation infobox. The current parameters are:
- name
- Name of the ŋation
- previous
- Link to previous election
- next
- Link to next election
- flag
- Filename of the flag
[n] indicates that there are multiple of this type, one for every party in an election. [n] is to be replaced with whatever number it is to be, starting with 1. 1 is required.
- leader[n]
- Filename of the leader portrait
- lname[n]
- Name of the leader
- party[n]
- Name of the Party
- plink[n]
- Title of the Party's page
- pcolor[n]
- Color of Party (as hexcode)
- ptext[n]
- Optional; recommended to set to FFF if black text does not look right for your party color
- past[n]
- Number of seats before the election
- after[n]
- Number of seats after the election
- change[n]
- Change in number of seats (+/0/-)
- map
- Filename of the map
