Template:Political party list/doc: Difference between revisions

Jump to navigation Jump to search
(update /doc)
 
m (1 revision imported)
 
(No difference)

Latest revision as of 00:12, 16 February 2023

This template is designed to make it easier to read tables where the name of a political party appears as one of the columns.

Rather than a table where party names appear on a background colour, which can provide poor accessibility, this template creates two columns, one with a coloured bar and one with the party name, both populated from the political party module).

This means that a table can be generated looking like this:

Information Party Notes
Some information UMP Some notes would go here, these will often be rather longer than the contents of the other columns
More information Republican Some more notes. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec libero sapien.
And yet more Green Praesent at magna eget nulla dignissim gravida vitae quis ante. Phasellus turpis velit, accumsan sed facilisis in.

Usage

This template creates two columns (one with the colour, one with the name), so the table header should be colspanned appropriately. The table above was generated as follows:

{| class="wikitable"
! Information
! colspan="2" | Party
! Notes
|-
! Some information
{{Political party list|Union for a Popular Movement}}
| Some notes would go here, these will often be rather longer than the contents of the other columns
|-
! More information
{{Political party list|Republican Party}}
| Some more notes. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec libero sapien.
|-
! And yet more
{{Political party list|Green Party of England and Wales}}
| Praesent at magna eget nulla dignissim gravida vitae quis ante. Phasellus turpis velit, accumsan sed facilisis in.
|}

See also

  • Wikipedia:WikiProject Politics/Political parties