<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://stockhub.co/index.php?action=history&amp;feed=atom&amp;title=Module%3APolitical_party%2Fdoc</id>
	<title>Module:Political party/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://stockhub.co/index.php?action=history&amp;feed=atom&amp;title=Module%3APolitical_party%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://stockhub.co/index.php?title=Module:Political_party/doc&amp;action=history"/>
	<updated>2026-05-28T04:00:54Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.5</generator>
	<entry>
		<id>https://stockhub.co/index.php?title=Module:Political_party/doc&amp;diff=144369&amp;oldid=prev</id>
		<title>imported&gt;Asartea: move: seems clearer there</title>
		<link rel="alternate" type="text/html" href="https://stockhub.co/index.php?title=Module:Political_party/doc&amp;diff=144369&amp;oldid=prev"/>
		<updated>2022-01-29T15:20:37Z</updated>

		<summary type="html">&lt;p&gt;move: seems clearer there&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Module rating|general}}&lt;br /&gt;
{{High-use}}&lt;br /&gt;
{{Lua|Module:Arguments|Module:Delink}}&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
{{Mlx|{{BASEPAGENAME}}|fetch|&amp;lt;party&amp;gt;|&amp;lt;value&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
{{Transcluded section|source=Template:Political party/doc}}&lt;br /&gt;
{{Trim|{{#section:Template:Political party/doc|Parameters}}}}&lt;br /&gt;
&lt;br /&gt;
==Updating the module==&lt;br /&gt;
The political parties contained in this module are split into alphabetised lists based on the first character of the name (for example, &amp;quot;Labour Party (UK)&amp;quot; would be under [[Module:Political party/L|/L]]). The [[Module:Political party/1|/1]] subpage is for any party that does not start with the western letters A-Z (including numbers and accented characters).&lt;br /&gt;
&lt;br /&gt;
Within each data submodule are two local groups: &amp;lt;code lang=lua&amp;gt;local alternate&amp;lt;/code&amp;gt; and &amp;lt;code lang=lua&amp;gt;local full&amp;lt;/code&amp;gt;. The alternate group is for alternate names of a party. The following is an example of alternate names for the [[Labour Party (UK)]]:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=lua&amp;gt;&lt;br /&gt;
local alternate = {&lt;br /&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;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
The first entry in square brackets is the alternate name, and the second entry only in quotes is the name found in the &amp;lt;code&amp;gt;full&amp;lt;/code&amp;gt; group, seen below. Note that the alternate name of a party should be stored in its corresponding letter-based subpage; &amp;quot;Alabama Democratic Party&amp;quot; is listed in [[Module:Political party/A|/A]] even though it is an alternate name for &amp;quot;Democratic Party (US)&amp;quot; (which is stored in [[Module:Political party/D|/D]]).&lt;br /&gt;
&lt;br /&gt;
=== Table values ===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=lua&amp;gt;&lt;br /&gt;
local full = {&lt;br /&gt;
    ....&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;
    ...&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
There are three values stored for each party:&lt;br /&gt;
* The abbreviation (&amp;lt;code&amp;gt;abbrev&amp;lt;/code&amp;gt;).&lt;br /&gt;
* The color of the party (&amp;lt;code&amp;gt;color&amp;lt;/code&amp;gt;), which can either be a [[hex triplet]] or a [[Web_colors#Basic colors|basic color name]].&lt;br /&gt;
* A shorter name for the party (&amp;lt;code&amp;gt;shortname&amp;lt;/code&amp;gt;).&lt;br /&gt;
&lt;br /&gt;
If a name value is not stored for a party, the module will attempt to return the other &amp;quot;short&amp;quot; name variant before returning the input. Thus, if &amp;lt;code&amp;gt;abbrev&amp;lt;/code&amp;gt; is stored but &amp;lt;code&amp;gt;shortname&amp;lt;/code&amp;gt; is not, regardless of which value is asked for it will return the &amp;lt;code&amp;gt;abbrev&amp;lt;/code&amp;gt; value.&lt;br /&gt;
&lt;br /&gt;
==Requesting an addition or a change ==&lt;br /&gt;
Requests should be made at the [[Module talk:Political party|talk page]] in a new section. Copy the following line and fill in {{em|only}} the fields relevant to the party. A party name is required as is at least one other piece of information. See above for information regarding each value.&lt;br /&gt;
* &amp;lt;code&amp;gt;[&amp;quot;party&amp;quot;] = {abbrev = &amp;quot;&amp;quot;, color = &amp;quot;&amp;quot;, shortname = &amp;quot;&amp;quot;,},&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Error messages==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+Module error messages and resolutions&lt;br /&gt;
!Error message&lt;br /&gt;
!Resolution&lt;br /&gt;
|-&lt;br /&gt;
|Lua error: bad argument #1 to &amp;#039;sub&amp;#039; (string expected, got table).&lt;br /&gt;
|An entry intended for the &amp;quot;local full&amp;quot; section has been placed into the &amp;quot;local alternate&amp;quot; section. Move it to the &amp;quot;local full&amp;quot; section&lt;br /&gt;
|-&lt;br /&gt;
| Lua error in package.lua at line 80: module &amp;#039;Module:Political party/&amp;#039; not found.&lt;br /&gt;
| Party added to alternate list with empty value.&lt;br /&gt;
|-&lt;br /&gt;
|Value not in template. Please request that it be added. ([https://en.wikipedia.org/w/index.php?search=%22Value+not+in+template.+Please+request+that+it+be+added.%22&amp;amp;title=Special:Search&amp;amp;profile=advanced&amp;amp;fulltext=1&amp;amp;ns0=1 article search])&lt;br /&gt;
|The party in question has an entry with no color in the &amp;quot;local full&amp;quot; section. (This can be caused by duplicate entries in &amp;quot;local full&amp;quot; that, if present, should be merged.)&lt;br /&gt;
|-&lt;br /&gt;
|(no error message, but party color is white/blank)&lt;br /&gt;
|Add a color for the party to its entry in the &amp;quot;local full&amp;quot; section in the relevant Module:Political party/ lettered data page (see links below).&lt;br /&gt;
|-&lt;br /&gt;
|parameter 1 should be a party name ([https://en.wikipedia.org/w/index.php?search=%22parameter+1+should+be+a+party+name%22&amp;amp;title=Special:Search&amp;amp;profile=advanced&amp;amp;fulltext=1&amp;amp;ns0=1&amp;amp;searchToken=6facepv07u1udc6gtrdi3x0fy article search])&lt;br /&gt;
| A template is trying to feed a missing parameter to the module. Work around this by [https://en.wikipedia.org/w/index.php?title=Template:Election_box_inline_candidate_with_party_link_no_change&amp;amp;action=history testing for the parameter] in the template.&lt;br /&gt;
|-&lt;br /&gt;
|parameter 2 should be the output type ([https://en.wikipedia.org/w/index.php?search=%22parameter+2+should+be+the+output+type%22&amp;amp;title=Special:Search&amp;amp;profile=advanced&amp;amp;fulltext=1&amp;amp;ns0=1 article search])&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Data pages ==&lt;br /&gt;
{{div col}}&lt;br /&gt;
*[[Module:Political party/1|Political party/1]]&lt;br /&gt;
*[[Module:Political party/A|Political party/A]]&lt;br /&gt;
*[[Module:Political party/B|Political party/B]]&lt;br /&gt;
*[[Module:Political party/C|Political party/C]]&lt;br /&gt;
*[[Module:Political party/D|Political party/D]]&lt;br /&gt;
*[[Module:Political party/E|Political party/E]]&lt;br /&gt;
*[[Module:Political party/F|Political party/F]]&lt;br /&gt;
*[[Module:Political party/G|Political party/G]]&lt;br /&gt;
*[[Module:Political party/H|Political party/H]]&lt;br /&gt;
*[[Module:Political party/I|Political party/I]]&lt;br /&gt;
*[[Module:Political party/J|Political party/J]]&lt;br /&gt;
*[[Module:Political party/K|Political party/K]]&lt;br /&gt;
*[[Module:Political party/L|Political party/L]]&lt;br /&gt;
*[[Module:Political party/M|Political party/M]]&lt;br /&gt;
*[[Module:Political party/N|Political party/N]]&lt;br /&gt;
*[[Module:Political party/O|Political party/O]]&lt;br /&gt;
*[[Module:Political party/P|Political party/P]]&lt;br /&gt;
*[[Module:Political party/Q|Political party/Q]]&lt;br /&gt;
*[[Module:Political party/R|Political party/R]]&lt;br /&gt;
*[[Module:Political party/S|Political party/S]]&lt;br /&gt;
*[[Module:Political party/T|Political party/T]]&lt;br /&gt;
*[[Module:Political party/U|Political party/U]]&lt;br /&gt;
*[[Module:Political party/V|Political party/V]]&lt;br /&gt;
*[[Module:Political party/W|Political party/W]]&lt;br /&gt;
*[[Module:Political party/X|Political party/X]]&lt;br /&gt;
*[[Module:Political party/Y|Political party/Y]]&lt;br /&gt;
*[[Module:Political party/Z|Political party/Z]]&lt;br /&gt;
{{div col end}}&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;
&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>imported&gt;Asartea</name></author>
	</entry>
</feed>