Template:Party table entry: Difference between revisions

From AlternateWiki
Content deleted Content added
No edit summary
No edit summary
Line 20: Line 20:
{{!}}-
{{!}}-
}}</includeonly><noinclude>
}}</includeonly><noinclude>
'''Mandatory'''
* show_color
* <code>1</code>: First parameter specifies JSON file to take information from.
* separate_desc
* <code>2</code>: Second parameter specifies key that refers to an object representing the party in the file.
* show_emblem / show_emblem_with_name
'''Optional'''
* show_founded
* <code>show_color</code>: Shows color block to the left of name with background color of <code>party.color</code>.
* show_position
* <code>separate_desc</code>: Shows description (<code>party.desc</code>) 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_seats / show_seats_auto
* <code>show_emblem</code>: Shows emblem (<code>party.logo</code>) in column after name at size <code>70x70px</code>.<br><code>show_emblem_with_name</code>: Shows emblem (<code>party.logo</code>) in the same cell as the name.
* after1, after2, after3
* <code>show_founded</code>: Shows founding date/year (<code>party.founded</code>) in column after emblem.
* <code>show_position</code>: Shows political position (<code>party.position</code>) in column founded.
* <code>show_seats</code>: Shows seats (<code>party.seats</code>) in column after leader/summary.<br><code>show_seats_auto</code>: Shows a [[Template:Composition bar|Composition bar]] made from <code>party.seats</code>, <code>party.seats_total</code> and (if it exists) <code>party.color</code>.
* <code>after1</code>, <code>after2</code>, <code>after3</code>: Generic columns at the end to display special information (<code>party.after1</code>, <code>party.after2</code>, <code>party.after3</code>).


<nowiki>{{Party table entry|Template:Party_table_entry/JSON|cooperative}}</nowiki>
<nowiki>{{Party table entry|Template:Party_table_entry/JSON|cooperative}}</nowiki>
Line 39: Line 43:
{| class="wikitable" style="text-align:left;"
{| class="wikitable" style="text-align:left;"
!colspan="2"|Name
!colspan="2"|Name
!Emblem
!Founded
!Founded
!Position
!Position