Template:Party name with color/doc

{{Documentation subpage}}

{{High-use}}

{{Lua|Module:Party name with color}}

Template:Party name with color is used to produce two adjacent table cells - a colored table cell with a given political party's colors, and a political party's name.

Parameters

class="wikitable"

! scope="col" | Parameter

! scope="col" | Description

scope="row" | {{para|1}}

| The party's name.

scope="row" | {{para|full}}

| Optional; Set to "1", "y", "yes", or "true" to display the full name of the party without its disambiguation.

scope="row" | {{para|shortname}}

| Optional; Uses the value of {{para|shortname}} as the short name.

scope="row" | {{para|color}}

| Optional; Uses the value of {{para|color}} as the party's color.

scope="row" | {{para|rowspan}}

| Optional; Spans the rows of the color and the party name by the amount entered.

scope="row" | {{para|no_link}}

| Optional; Set to "1", "y", "yes", or "true" to disable linking to the party's article.

scope="row" | {{para|dab}}

| Optional; Set to "1", "y", "yes", or "true" to display the full value of {{para|1}}; useful to display party's name with disambiguation.

scope="row" | {{para|abbrev}}

| Optional; Set to "1", "y", "yes", or "true" to display the party abbreviation, when available.

Example

class="wikitable"

|+ Used below in examples

scope="col" | Template

! scope="col" | Content

{{tlx|Party color|Bharatiya Janata Party}}

| {{Party color|Bharatiya Janata Party}}

{{tlx|Party shortname|Bharatiya Janata Party}}

| {{Party shortname|Bharatiya Janata Party}}

{{tlx|Party color|Constitution Party (United States)}}

| {{Party color|Constitution Party (United States)}}

{{tlx|Party shortname|Constitution Party (United States)}}

| {{Party shortname|Constitution Party (United States)}}

{{tlx|Party color|Labour Party (UK)}}

| {{Party color|Labour Party (UK)}}

{{tlx|Party shortname|Labour Party (UK)}}

| {{Party shortname|Labour Party (UK)}}

{{tlx|Party abbrev|Labour Party (UK)}}

| {{Party abbrev|Labour Party (UK)}}

class="wikitable" style="float: right;"

! scope="col" | Year

! scope="col" colspan="2" | Party

2000

| {{Party name with color|Bharatiya Janata Party}}

2005

| {{Party name with color|Bharatiya Janata Party|full=yes}}

2010

| {{Party name with color|Constitution Party (United States)}}

2015

| {{Party name with color|Constitution Party (United States)|full=yes}}

2020

| {{Party name with color|Labour Party (UK)|rowspan=2}}

2025
2030

| {{Party name with color|Labour Party (UK)|abbrev=y}}

2035

| {{Party name with color|Foo Party}}

class="wikitable"

! scope="col" | Year

! scope="col" colspan="2" | Party

2000

| {{Party name with color|Bharatiya Janata Party}}

2005

| {{Party name with color|Bharatiya Janata Party|full=yes}}

2010

| {{Party name with color|Constitution Party (United States)}}

2015

| {{Party name with color|Constitution Party (United States)|full=true}}

2020

| {{Party name with color|Labour Party (UK)|rowspan=2}}

2025
2030

| {{Party name with color|Labour Party (UK)|abbrev=y}}

2035

| {{Party name with color|Foo Party}}

See also

Tracking category

  • {{Category link with count|Pages using Party name with color with unknown parameters}}

{{Sandbox other||

Party name with color

}}