Template:Party table entry: Difference between revisions
From AlternateWiki
Content deleted Content added
No edit summary |
No edit summary |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly>|-{{#if:{{{show_color|}}}|<nowiki/> |
<includeonly>|-{{#if:{{{show_color|}}}|<nowiki/> |
||
{{!}} {{#if:{{{separate_desc|}}}|rowspan="2"}} bgcolor="{{GetJSON|{{{1}}}|{{{2}}}.color|none}}" {{!}}}} |
{{!}} {{#if:{{{separate_desc|}}}|rowspan="2"}} bgcolor="{{GetJSON|{{{1}}}|{{{2}}}.color|none}}" {{!}}}} |
||
{{#if:{{{separate_desc|}}}|{{!}}rowspan="2"}}|{{#if:{{{show_emblem_with_name|}}}|<div style="text-align: center">[[File:{{GetJSON|{{{1}}}|{{{2}}}.logo}}| |
{{#if:{{{separate_desc|}}}|{{!}}rowspan="2"}}|{{#if:{{{show_emblem_with_name|}}}|<div style="text-align: center">[[File:{{GetJSON|{{{1}}}|{{{2}}}.logo}}|170x65px]]<br><br>}}{{GetJSON|{{{1}}}|{{{2}}}.name}}{{#if:{{{show_emblem_with_name|}}}|</div>}}{{#if:{{{show_emblem|}}}|<nowiki/> |
||
{{!}}<div style="text-align: center">[[File:{{GetJSON|{{{1}}}|{{{2}}}.logo}}|70x70px]]</div>}}{{#if:{{{show_founded|}}}|<nowiki/> |
{{!}}<div style="text-align: center">[[File:{{GetJSON|{{{1}}}|{{{2}}}.logo}}|70x70px]]</div>}}{{#if:{{{show_founded|}}}|<nowiki/> |
||
{{!}}<div style="text-align: center">{{GetJSON|{{{1}}}|{{{2}}}.founded}}</div>}}{{#if:{{{show_position|}}}|<nowiki/> |
{{!}}<div style="text-align: center">{{GetJSON|{{{1}}}|{{{2}}}.founded}}</div>}}{{#if:{{{show_position|}}}|<nowiki/> |
||
Line 11: | Line 11: | ||
{{!}}{{#if:{{{show_seats|}}}|{{GetJSON|{{{1}}}|{{{2}}}.seats}}}}<!-- |
{{!}}{{#if:{{{show_seats|}}}|{{GetJSON|{{{1}}}|{{{2}}}.seats}}}}<!-- |
||
-->{{#if:{{{show_seats_auto|}}}|{{#if:{{GetJSON|{{{1}}}|{{{2}}}.seats}}|{{#if:{{GetJSON|{{{1}}}|{{{2}}}.seats_total}}|{{#if:{{GetJSON|{{{1}}}|{{{2}}}.seats_label}}|{{GetJSON|{{{1}}}|{{{2}}}.seats_label}}<br>}}{{Composition bar|{{GetJSON|{{{1}}}|{{{2}}}.seats}}|{{GetJSON|{{{1}}}|{{{2}}}.seats_total}}|#{{GetJSON|{{{1}}}|{{{2}}}.color|CCCCCC}}}}}}}}}}<!-- |
-->{{#if:{{{show_seats_auto|}}}|{{#if:{{GetJSON|{{{1}}}|{{{2}}}.seats}}|{{#if:{{GetJSON|{{{1}}}|{{{2}}}.seats_total}}|{{#if:{{GetJSON|{{{1}}}|{{{2}}}.seats_label}}|{{GetJSON|{{{1}}}|{{{2}}}.seats_label}}<br>}}{{Composition bar|{{GetJSON|{{{1}}}|{{{2}}}.seats}}|{{GetJSON|{{{1}}}|{{{2}}}.seats_total}}|#{{GetJSON|{{{1}}}|{{{2}}}.color|CCCCCC}}}}}}}}}}<!-- |
||
-->}}{{#if:{{{show_seats2|}}}{{{show_seats2_auto|}}}|<nowiki/> |
|||
{{!}}{{#if:{{{show_seats2|}}}|{{GetJSON|{{{1}}}|{{{2}}}.seats2}}}}<!-- |
|||
-->{{#if:{{{show_seats2_auto|}}}|{{#if:{{GetJSON|{{{1}}}|{{{2}}}.seats2}}|{{#if:{{GetJSON|{{{1}}}|{{{2}}}.seats2_total}}|{{#if:{{GetJSON|{{{1}}}|{{{2}}}.seats2_label}}|{{GetJSON|{{{1}}}|{{{2}}}.seats2_label}}<br>}}{{Composition bar|{{GetJSON|{{{1}}}|{{{2}}}.seats2}}|{{GetJSON|{{{1}}}|{{{2}}}.seats2_total}}|#{{GetJSON|{{{1}}}|{{{2}}}.color|CCCCCC}}}}}}}}}}<!-- |
|||
-->}}{{#if:{{{show_seats3|}}}{{{show_seats3_auto|}}}|<nowiki/> |
|||
{{!}}{{#if:{{{show_seats3|}}}|{{GetJSON|{{{1}}}|{{{2}}}.seats3}}}}<!-- |
|||
-->{{#if:{{{show_seats3_auto|}}}|{{#if:{{GetJSON|{{{1}}}|{{{2}}}.seats3}}|{{#if:{{GetJSON|{{{1}}}|{{{2}}}.seats3_total}}|{{#if:{{GetJSON|{{{1}}}|{{{2}}}.seats3_label}}|{{GetJSON|{{{1}}}|{{{2}}}.seats3_label}}<br>}}{{Composition bar|{{GetJSON|{{{1}}}|{{{2}}}.seats3}}|{{GetJSON|{{{1}}}|{{{2}}}.seats3_total}}|#{{GetJSON|{{{1}}}|{{{2}}}.color|CCCCCC}}}}}}}}}}<!-- |
|||
-->}}{{#if:{{{after1|}}}|<nowiki/> |
-->}}{{#if:{{{after1|}}}|<nowiki/> |
||
{{!}}{{GetJSON|{{{1}}}|{{{2}}}.{{{after1}}}}}{{#if:{{{after2|}}}|<nowiki/> |
{{!}}{{GetJSON|{{{1}}}|{{{2}}}.{{{after1}}}}}{{#if:{{{after2|}}}|<nowiki/> |
Revision as of 20:19, 22 May 2024
Mandatory
1
: First parameter specifies JSON file to take information from.2
: Second parameter specifies key that refers to an object representing the party in the file.
Optional
show_color
: Shows color block to the left of name with background color ofparty.color
.separate_desc
: Shows description (party.desc
) underneath the information (except for the name/colour). Value should be the width of the description as so it horizontally fills the rest of the table.show_emblem
: Shows emblem (party.logo
) in column after name at size70x70px
.show_emblem_with_name
: Shows emblem (party.logo
) in the same cell as the name.show_founded
: Shows founding date/year (party.founded
) in column after emblem.show_position
: Shows political position (party.position
) in column founded.show_seats
: Shows seats (party.seats
) in column after leader/summary.show_seats_auto
: Shows a Composition bar made fromparty.seats
,party.seats_total
and (if it exists)party.color
.after1
,after2
,after3
: Generic columns at the end to display special information (party.after1
,party.after2
,party.after3
).
{{Party table entry|Template:Party_table_entry/JSON|cooperative}}
Name | Ideology | Leader | Summary |
---|---|---|---|
Co-operative Party | Jim McMahon (NEC Chair) Preet Kaur Gill (Parliamentary Chair) Joe Fortune (General Secretary) |
A party that promotes cooperative principles and values and provides political representation for the British co-operative movement. Since 1927 has been in an electoral alliance with the Labour party, standing joint candidates (under the Labour and Co-operative description). |
{{Party table entry|Template:Party_table_entry/JSON|cooperative|show_color=y|show_founded=y|show_seats_auto=y|show_position=y|after1=membership|show_emblem_with_name=y|separate_desc=8}}
Name | Founded | Position | Ideology | Leader | Seats | Membership | |
---|---|---|---|---|---|---|---|
1917
|
Centre-left | Jim McMahon (NEC Chair) Preet Kaur Gill (Parliamentary Chair) Joe Fortune (General Secretary) |
House of Commons 27 / 650
|
13,194 | |||
A party that promotes cooperative principles and values and provides political representation for the British co-operative movement. Since 1927 has been in an electoral alliance with the Labour party, standing joint candidates (under the Labour and Co-operative description). |