Template:Political party/doc

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 metadata subtemplates (e.g. Template:Conservative Party (UK)/meta/color and Template:Conservative Party (UK)/meta/shortname, or Template:Democratic Party (US)/meta/color and Template:Democratic Party (US)/meta/shortname).

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

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