<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://prdmc.ca/w/index.php?action=history&amp;feed=atom&amp;title=Template%3APolitical_party%2Fdoc</id>
	<title>Template:Political party/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://prdmc.ca/w/index.php?action=history&amp;feed=atom&amp;title=Template%3APolitical_party%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://prdmc.ca/w/index.php?title=Template:Political_party/doc&amp;action=history"/>
	<updated>2026-10-27T11:54:14Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>https://prdmc.ca/w/index.php?title=Template:Political_party/doc&amp;diff=3514&amp;oldid=prev</id>
		<title>RandomUser34: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="https://prdmc.ca/w/index.php?title=Template:Political_party/doc&amp;diff=3514&amp;oldid=prev"/>
		<updated>2026-09-30T03:20:21Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 03:20, 30 September 2026&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>RandomUser34</name></author>
	</entry>
	<entry>
		<id>https://prdmc.ca/w/index.php?title=Template:Political_party/doc&amp;diff=3513&amp;oldid=prev</id>
		<title>wp&gt;MiltonC: /* See also */</title>
		<link rel="alternate" type="text/html" href="https://prdmc.ca/w/index.php?title=Template:Political_party/doc&amp;diff=3513&amp;oldid=prev"/>
		<updated>2025-11-22T00:27:16Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;See also&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Documentation subpage}}&lt;br /&gt;
&amp;lt;!-- Add categories where indicated at the bottom of this page and interwikis at Wikidata --&amp;gt;&lt;br /&gt;
{{Lua|Module:Political party}}&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Template:Political party&amp;#039;&amp;#039;&amp;#039; produces the short name or color of the provided political party.&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
* {{Tlx|Political party|&amp;lt;party name&amp;gt;|&amp;lt;value requested&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
&amp;lt;section begin=&amp;quot;Parameters&amp;quot;/&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; | Parameter&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; | Description&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot; | 1&lt;br /&gt;
| The political party&amp;#039;s name. If a party is not found, place a request at the [[Module talk:Political party|talk page]].&amp;lt;section end=&amp;quot;Parameters&amp;quot;/&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot; | 2&lt;br /&gt;
| The value requested. Currently supported values are &amp;lt;code&amp;gt;abbrev&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;color&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;shortname &amp;lt;/code&amp;gt;.&amp;lt;section begin=&amp;quot;Parameters&amp;quot;/&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot; | error&lt;br /&gt;
| Optional, this parameter will return the provided {{para|error}} value if the module does not contain the requested party or color.&lt;br /&gt;
|}&amp;lt;section end=&amp;quot;Parameters&amp;quot;/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Examples==&lt;br /&gt;
Here are some examples using the [[Labour Party (UK)|Labour Party]] (note that there are multiple potential input names):&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot;&amp;gt;&lt;br /&gt;
	[&amp;quot;Labour and Co-operative&amp;quot;] = &amp;quot;Labour Party (UK)&amp;quot;,&lt;br /&gt;
	[&amp;quot;Labour Co-operative&amp;quot;] = &amp;quot;Labour Party (UK)&amp;quot;,&lt;br /&gt;
    ...&lt;br /&gt;
	[&amp;quot;Labour Party (Thailand)&amp;quot;] = {abbrev = &amp;quot;&amp;quot;, color = &amp;quot;#FF0000&amp;quot;, shortname = &amp;quot;&amp;quot;,},&lt;br /&gt;
	[&amp;quot;Labour Party (UK)&amp;quot;] = {abbrev = &amp;quot;Lab&amp;quot;, color = &amp;quot;#E4003B&amp;quot;, shortname = &amp;quot;Labour&amp;quot;,},&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* {{tlx|Political party|Labour Party (UK)|abbrev}} → {{Political party|Labour Party (UK)|abbrev}}&lt;br /&gt;
* {{tlx|Political party|Labour Party (UK)|shortname}} → {{Political party|Labour Party (UK)|shortname}}&lt;br /&gt;
* {{tlx|Political party|Labour and Co-operative|shortname}} → {{Political party|Labour and Co-operative|shortname}}&lt;br /&gt;
* {{tlx|Political party|Labour Co-operative|shortname}} → {{Political party|Labour Co-operative|shortname}}&lt;br /&gt;
* {{tlx|Political party|Labour Party (UK)|color}} → {{Political party|Labour Party (UK)|color}}&lt;br /&gt;
&lt;br /&gt;
If the party is not present in the module, or the shortname or abbreviation are not in the module, the input party name will be returned.&lt;br /&gt;
* {{tlx|Political party|Not-a-party|abbrev}} → {{Political party|Not-a-party|abbrev}}&lt;br /&gt;
* {{tlx|Political party|Not-a-party|shortname}} → {{Political party|Not-a-party|shortname}}&lt;br /&gt;
* {{tlx|Political party|Not-a-party|color}} → {{Political party|Not-a-party|color}}&lt;br /&gt;
* {{tlx|Political party|A test no values|shortname}} → {{Political party|A test no values|shortname}}&lt;br /&gt;
&lt;br /&gt;
===Lua script error messages===&lt;br /&gt;
If either of the required parameters are not supplied, or the color does not exist in the module, an error will be returned.&lt;br /&gt;
* {{tlx|Political party}} → {{Political party}}&lt;br /&gt;
* {{tlx|Political party|A test no values}} → {{Political party|Not-a-party}}&lt;br /&gt;
* {{tlx|Political party|A test no values|color}} → {{Political party|A test no values|color}}&lt;br /&gt;
&lt;br /&gt;
To avoid generating a script error, use {{para|error|value}}. Note that this error value will also be passed if the party is not stored in the module.&lt;br /&gt;
* {{tlx|Political party|A test no values|color|error{{=}}ERROR}} → {{Political party|A test no values|color|error=ERROR}}&lt;br /&gt;
* {{tlx|Political party|Not-a-party|color|error{{=}}ERROR}} → {{Political party|Not-a-party|color|error=ERROR}}&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
* [[Template:Party abbr]]&lt;br /&gt;
* [[Template:Party color]]&lt;br /&gt;
* [[Template:Party shortname]]&lt;br /&gt;
Country specific templates:&lt;br /&gt;
* [[Template:Australian party style]]&lt;br /&gt;
* [[Template:Canadian party colour]]&lt;br /&gt;
&lt;br /&gt;
==Tracking categories==&lt;br /&gt;
* {{Category link with count|Pages using Political party with unknown party}}&lt;br /&gt;
* {{Category link with count|Pages using Political party with missing shortname}}&lt;br /&gt;
* {{Category link with count|Pages using Political party with missing color}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;{{Sandbox other||&lt;br /&gt;
&amp;lt;!-- Categories below this line; interwikis at Wikidata --&amp;gt;&lt;br /&gt;
[[Category:Political party templates]]&lt;br /&gt;
&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>wp&gt;MiltonC</name></author>
	</entry>
</feed>