Modul:Political party/Y

Fra Wikipedia, den frie encyklopedi
Moduldokumentasjon

Updating this submodule[rediger kilde]

Mal:Transcluded section The political parties contained in this module are split into alphabetised lists based on the first character of the name (for example, "Labour Party (UK)" would be under /L). The /1 subpage is for any party that does not start with the western letters A-Z (including numbers and accented characters).

Within each data submodule are two local groups: local alternate and local full. The alternate group is for alternate names of a party. The following is an example of alternate names for the Labour Party (UK):

local alternate = {
    ....
	["Labour and Co-operative"] = "Labour Party (UK)",
	["Labour Co-operative"] = "Labour Party (UK)",
    ...
}

The first entry in square brackets is the alternate name, and the second entry only in quotes is the name found in the full group, seen below. Note that the alternate name of a party should be stored in its corresponding letter-based subpage; "Alabama Democratic Party" is listed in /A even though it is an alternate name for "Democratic Party (US)" (which is stored in /D).

Table values[rediger kilde]

local full = {
    ....
	["Labour Party (UK)"] = {abbrev = "Lab", color = "#E4003B", shortname = "Labour",},
    ...
}

There are three values stored for each party:

  • The abbreviation (abbrev).
  • The color of the party (color), which can either be a hex triplet or a basic color name.
  • A shorter name for the party (shortname).

If a name value is not stored for a party, the module will attempt to return the other "short" name variant before returning the input. Thus, if abbrev is stored but shortname is not, regardless of which value is asked for it will return the abbrev value.

Color values[rediger kilde]

Political party namecolorabbrevshortnameIs color valid?Contrast normal textContrast unvisited linkContrast visited link
Y5 Give Me Five#F36A25AAFailedAA
YATAMAdarkgreenFailedFailedFailed
YES (Lithuania)#02adf3YESAAAFailedAA
YSR Congress Party#1569C7YSRCPFailedFailedFailed
YSR Telangana Party#0ce5d2YSRTPAAAAAAAA
Yabloko#00A23DAAFailedAA
Yachad (political party)#036395FailedFailedFailed
Yamina#19A3BDAAAFailedAA
Yamina (political alliance)#CBD53AAAAAAAAA
Yatsenyuk's Front for changeGreenFailedFailedFailed
Yazidi Movement for Reform and Progress#D61D16Yazidi MovementFailedFailedFailed
Yellow Vest Australia#0000FFFailedFailedFailed
Yemeni Socialist Party#FF0000YSPAAFailedFailed
Yemenite Association#89C5C6AAAFailedAAA
Yes Colombia#F6E808AAAAAAAA
Yes Solidarity for Hungary Movement#CB2122FailedFailedFailed
Yes We Can, Citizens' Alternative for Madrid#532F55FailedFailedFailed
Yes for Salamanca#F67001AAAFailedAA
Yes! For Poland#A42B3AT!DPLFailedFailedFailed
Yes, Bulgaria!#A1C619AAAFailedAAA
Yesh Atid#003ba3FailedFailedFailed
Yisrael BaAliyah#0C2C84Yisrael BaAliyahFailedFailedFailed
Yisrael Beiteinu#9AC0E2AAAFailedAAA
Yntymak (political party)#008BA1YntymakAAFailedFailed
Yorkshire First#00AEEFAAAFailedAA
Yorkshire Party#00AEEFYorkshireAAAFailedAA
You Party#55aee6AAAFailedAA
Young China Party#FFCC33YouthAAAAAAAA
Young Czech Party#284696Young CzechFailedFailedFailed
Young Egypt Party#009900AAFailedFailed
Young Farmers (Switzerland)#0C6E08JPFailedFailedFailed
Young Finnish Party#3399FFYoung FinnishAAAFailedAA
Young Finns#109473AAFailedFailed
Young Guard of United Russia#014FA2MGERFailedFailedFailed
Young Influence#33D8D0AAAAAAAA
Young Liberals Party#284696FailedFailedFailed
Young Lithuania#B12F2BJLFailedFailedFailed
Young Malagasies Determined#FFA500AAAFailedAAA
Young Party#B2B2B2GPAAAFailedAAA
Young People's Party UK#FFF643Young People'sAAAAAAAAA
Young Progressives Party#ED3237YPPAAFailedFailed
Young Radicals#0174DFAAFailedFailed
Young Socialists Switzerland#EE0000Young SocialistsAAFailedFailed
Youngspiration#F37943AAAFailedAA
Your Badajoz#1C6A81FailedFailedFailed
Your Party#FAA61AYourAAAFailedAAA
Your Vote Counts#E75433AAFailedFailed
Youth Action (Croatia)#ffc90eAAAAAAAA
Youth Party – European Greens#9ACD32AAAAAAAA
Youth and Students Party#339933YSPAAFailedFailed
Yuen Long Tin Shui Wai Democratic Alliance#1c41e0Democratic AllianceFailedFailedFailed
Yugoslav Communist Party of MontenegroredJKP CGAAFailedFailed
Yugoslav Left#E62020JULAAFailedFailed
Yugoslav Muslim Organization#009900JMOAAFailedFailed
Yugoslav National Movement#04522CFailedFailedFailed
Yugoslav National Party#767676JNSAAFailedFailed
Yugoslav Radical Union#000000JRZFailedFailedFailed
Yugoslav Republican Party#f3ad40AAAFailedAAA
Yugoslav Social-Democratic PartyredJSDSAAFailedFailed
Yulia Tymoshenko Bloc#CC193BTymoshenko BlocFailedFailedFailed
Yūshi no Kai#FF6666AAAFailedAA


-- Constant data used by [[Module:Political party]]

local alternate = {
	["Young People's Party (UK)"] = "Young People's Party UK",
	["Yachad"] = "Yachad (political party)",
	["Yewwi Askan Wi"] = "Liberate the People",
	["Young Progressive Party"] = "Young Progressives Party",
	["Your Movement"] = "Palikot's Movement",
	["Youth Organisation of Turkmenistan named after Magtymguly"] = "Magtymguly Youth Organisation of Turkmenistan",
	["YPP"] = "Young People's Party UK",
	["YSRCP"] = "YSR Congress Party",
	["YSRTP"] = "YSR Telangana Party",
	["Yugoslav Radical Peasants' Democracy"] = "Yugoslav National Party",
}

local full = {
	["Y5 Give Me Five"] = {abbrev = "", color = "#F36A25", shortname = "",},
	["Yabloko"] = {abbrev = "", color = "#00A23D", shortname = "",},
	["Yachad (political party)"] = {abbrev = "", color = "#036395", shortname = "",},
	["Yamina (political alliance)"] = {abbrev = "", color = "#CBD53A", shortname = "",},
	["Yamina"] = {abbrev = "", color = "#19A3BD", shortname = "",},
	["YATAMA"] = {abbrev = "", color = "darkgreen", shortname = "",},
	["Yatsenyuk's Front for change"] = {abbrev = "", color = "Green", shortname = "",},
	["Yazidi Movement for Reform and Progress"] = {abbrev = "", color = "#D61D16", shortname = "Yazidi Movement",},
	["Yellow Vest Australia"] = {abbrev = "", color = "#0000FF", shortname = "",},
	["Yemeni Socialist Party"] = {abbrev = "YSP", color = "#FF0000", shortname = "",},
	["Yemenite Association"] = {abbrev = "", color = "#89C5C6", shortname = "",},
	["Yes! For Poland"] = {abbrev = "T!DPL", color = "#A42B3A", shortname = "",},
	["YES (Lithuania)"] = {abbrev = "YES", color = "#02adf3", shortname = "",},
	["Yes Colombia"] = {abbrev = "", color = "#F6E808", shortname = "",},
	["Yes for Salamanca"] = {abbrev = "", color = "#F67001", shortname = "",},
	["Yes Solidarity for Hungary Movement"] = {abbrev = "", color = "#CB2122", shortname = "",},
	["Yes We Can, Citizens' Alternative for Madrid"] = {abbrev = "", color = "#532F55", shortname = "",},
	["Yes, Bulgaria!"] = {abbrev = "", color = "#A1C619", shortname = "",},
	["Yesh Atid"] = {abbrev = "", color = "#003ba3", shortname = "",},
	["Yisrael BaAliyah"] = {abbrev = "", color = "#0C2C84", shortname = "Yisrael BaAliyah",},
	["Yisrael Beiteinu"] = {abbrev = "", color = "#9AC0E2", shortname = "",},
	["Yntymak (political party)"] = {abbrev = "", color = "#008BA1", shortname = "Yntymak",},
	["Yorkshire First"] = {abbrev = "", color = "#00AEEF", shortname = "",},
	["Yorkshire Party"] = {abbrev = "", color = "#00AEEF", shortname = "Yorkshire",},
	["You Party"] = {abbrev = "", color = "#55aee6", shortname = "",},
	["Young Czech Party"] = {abbrev = "", color = "#284696", shortname = "Young Czech",},
	["Young Egypt Party"] = {abbrev = "", color = "#009900", shortname = "",},
	["Young Farmers (Switzerland)"] = {abbrev = "JP", color = "#0C6E08", shortname = "",},
	["Young Finnish Party"] = {abbrev = "", color = "#3399FF", shortname = "Young Finnish",},
	["Young Finns"] = {abbrev = "", color = "#109473", shortname = "",},
	["Young Guard of United Russia"] = {abbrev = "MGER", color = "#014FA2", shortname = "",},
	["Young Influence"] = {abbrev = "", color = "#33D8D0", shortname = "",},
	["Young Liberals Party"] = {abbrev = "", color = "#284696", shortname = "",},
	["Young Lithuania"] = {abbrev = "JL", color = "#B12F2B", shortname = "",},
	["Young Malagasies Determined"] = {abbrev = "", color = "#FFA500", shortname = "",},
	["Young Party"] = {abbrev = "GP", color = "#B2B2B2", shortname = "",},
	["Young People's Party UK"] = {abbrev = "", color = "#FFF643", shortname = "Young People's",},
	["Young Progressives Party"] = {abbrev = "YPP", color = "#ED3237", shortname = "",},
	["Young Radicals"] = {abbrev = "", color = "#0174DF", shortname = "",},
	["Young Socialists Switzerland"] = {abbrev = "", color = "#EE0000", shortname = "Young Socialists",},
	["Youngspiration"] = {abbrev = "", color = "#F37943", shortname = "",},
	["Your Badajoz"] = {abbrev = "", color = "#1C6A81", shortname = "",},
	["Your Party"] = {abbrev = "", color = "#FAA61A", shortname = "Your",},
	["Your Vote Counts"] = {abbrev = "", color = "#E75433", shortname = "",},
	["Youth Action (Croatia)"] = {abbrev = "", color = "#ffc90e", shortname = "",},
	["Youth and Students Party"] = {abbrev = "YSP", color = "#339933", shortname = "",},
	["Youth Action (Croatia)"] = {abbrev = "", color = "#ffc90e", shortname = "",},
	["Young China Party"] = {abbrev = "", color = "#FFCC33", shortname = "Youth",},
	["Youth Party – European Greens"] = {abbrev = "", color = "#9ACD32", shortname = "",},
	["YSR Congress Party"] = {abbrev = "YSRCP", color = "#1569C7", shortname = "",},
	["YSR Telangana Party"] = {abbrev = "YSRTP", color = "#0ce5d2", shortname = "",},
	["Yuen Long Tin Shui Wai Democratic Alliance"] = {abbrev = "", color = "#1c41e0", shortname = "Democratic Alliance",},
	["Yugoslav Communist Party of Montenegro"] = {abbrev = "JKP CG", color = "red", shortname = "",},
	["Yugoslav Left"] = {abbrev = "JUL", color = "#E62020", shortname = "",},
	["Yugoslav Muslim Organization"] = {abbrev = "JMO", color = "#009900", shortname = "",},
	["Yugoslav National Movement"] = {abbrev = "", color = "#04522C", shortname = "",},
	["Yugoslav National Party"] = {abbrev = "JNS", color = "#767676", shortname = "",},
	["Yugoslav Radical Union"] = {abbrev = "JRZ", color = "#000000", shortname = "",},
	["Yugoslav Republican Party"] = {abbrev = "", color = "#f3ad40", shortname = "",},
	["Yugoslav Social-Democratic Party"] = {abbrev = "JSDS", color = "red", shortname = "",},
	["Yulia Tymoshenko Bloc"] = {abbrev = "", color = "#CC193B", shortname = "Tymoshenko Bloc",},
	["Yūshi no Kai"] = {abbrev = "", color = "#FF6666", shortname = "",},
}

return {
	full = full,
	alternate = alternate,
}