Redigerer
Mal:Party abbrev/dok
Hopp til navigering
Hopp til søk
Advarsel:
Du er ikke innlogget. IP-adressen din vil bli vist offentlig om du redigerer. Hvis du
logger inn
eller
oppretter en konto
vil redigeringene dine tilskrives brukernavnet ditt, og du vil få flere andre fordeler.
Antispamsjekk.
Ikke
fyll inn dette feltet!
{{Documentation subpage}} {{Lua|Module:Political party}} '''Mal:Political abbrev''' returns an abbreviated short name for the provided political party. == Usage == * {{Tlx|Party abbrev|<party name>}} == Parameters == {{Trim|{{#section:Template:Political party/doc|Parameters}}}} ==Examples== Here are some examples using the [[Labour Party (UK)|Labour Party]] (note that there are multiple potential input names): <pre> ["Labour and Co-operative"] = "Labour Party (UK)", ["Labour Co-operative"] = "Labour Party (UK)", ... ["Labour Party (Thailand)"] = {abbrev = "", color = "#FF0000", shortname = "",}, ["Labour Party (UK)"] = {abbrev = "Lab", color = "#E4003B", shortname = "Labour",}, </pre> * {{tlx|Party abbrev|Labour Party (UK)}} → {{Party abbr|Labour Party (UK)}} * {{tlx|Party abbrev|Labour and Co-operative}} → {{Party abbr|Labour and Co-operative}} * {{tlx|Party abbrev|Labour Co-operative}} → {{Party abbr|Labour Co-operative}} If the party is not present in the module, or the abbreviation is not in the module, the input party name will be returned. * {{tlx|Party abbrev|Not-a-party}} → {{Party abbr|Not-a-party|}} * {{tlx|Party abbrev|A test no values}} → {{Party abbr|A test no values}} To check if the party is present in the module, use {{para|error|value}}. * {{tlx|Party abbrev|A test no values|error{{=}}ERROR}} → {{Party abbr|A test no values|error=ERROR}} (''note in this case the input is in the module'') * {{tlx|Party abbrev|Not-a-party|error{{=}}ERROR}} → {{Party abbr|Not-a-party|error=ERROR}} ==See also== * [[Mal:Political party]] - primary template use for the module with options for shortname, abbrev, and color * [[Mal:Party abbrev linked]] - used for wikilinking to a party's article with an abbreviated label * [[Mal:Party shortname]] - returns a party's shortname * [[Mal:Party shortname linked]] - used for wikilinking to a party's article with a shortname label <includeonly>{{Sandbox other|| [[Category:Political party templates]] }}</includeonly>
Redigeringsforklaring:
Merk at alle bidrag til Wikisida.no anses som frigitt under Creative Commons Navngivelse-DelPåSammeVilkår (se
Wikisida.no:Opphavsrett
for detaljer). Om du ikke vil at ditt materiale skal kunne redigeres og distribueres fritt må du ikke lagre det her.
Du lover oss også at du har skrevet teksten selv, eller kopiert den fra en kilde i offentlig eie eller en annen fri ressurs.
Ikke lagre opphavsrettsbeskyttet materiale uten tillatelse!
Avbryt
Redigeringshjelp
(åpnes i et nytt vindu)
Forhåndsvis en side som bruker denne malen
Denne siden er medlem av 1 skjult kategori:
Kategori:Sider hvor ekspansjonsdybden er overskredet
Navigasjonsmeny
Personlige verktøy
Ikke logget inn
Brukerdiskusjon
Bidrag
Opprett konto
Logg inn
Navnerom
Mal
Diskusjon
norsk bokmål
Visninger
Les
Rediger kilde
Vis historikk
Mer
Navigasjon
Forside
Siste endringer
Tilfeldig side
Hjelp til MediaWiki
Verktøy
Lenker hit
Relaterte endringer
Spesialsider
Sideinformasjon