வார்ப்புரு:Party name with color/doc
{{Documentation subpage}}
 {{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=&quot;wikitable&quot;
 |-
 ! scope=&quot;col&quot; | Parameter
 ! scope=&quot;col&quot; | Description
 |-
 ! scope=&quot;row&quot; | {{para|1}}
 | The party's name.
 |-
 ! scope=&quot;row&quot; | {{para|full}}
 | Optional; Displays the full name of the party without its disambiguation.
 |-
 ! scope=&quot;row&quot; | {{para|shortname}}
 | Optional; Uses the value of {{para|shortname}} as the short name.
 |-
 ! scope=&quot;row&quot; | {{para|color}}
 | Optional; Uses the value of {{para|color}} as the party's color.
 |-
 ! scope=&quot;row&quot; | {{para|rowspan}}
 | Optional; Spans the rows of the color and the party name by the amount entered.
 |-
 ! scope=&quot;row&quot; | {{para|no_link}}
 | Optional; Any value will disable linking to the party's article.
 |-
 ! scope=&quot;row&quot; | {{para|dab}}
 | Optional; Any value will display the part in {{para|1}}; useful to display party's name with disambiguation.
 |}
 
 ==Example==
 {| class=&quot;wikitable&quot;
 |+ Used below in examples
 |-
 ! scope=&quot;col&quot; | Template
 ! scope=&quot;col&quot; | 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)}}
 |}
 
 {| class=&quot;wikitable&quot; style=&quot;float: right;&quot;
 |-
 ! scope=&quot;col&quot; | Year
 ! scope=&quot;col&quot; colspan=&quot;2&quot; | 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|Foo Party}}
 |}
 &lt;pre style=&quot;display: inline-block;&quot;&gt;{| class=&quot;wikitable&quot;
 |-
 ! scope=&quot;col&quot; | Year
 ! scope=&quot;col&quot; colspan=&quot;2&quot; | 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|Foo Party}}
 |}
 &lt;/pre&gt;
 
 == See also ==
 * [[Template:Party name with color no link]]
 * [[Template:Full party name with color]]
 
 == Tracking category ==
 * {{Category link with count|Pages using Party name with color with unknown parameters}}
 
 &lt;includeonly&gt;{{Sandbox other||
 [[Category:Political party color templates| ]]