Difference between revisions of "Template:party-logo"

From WikiCorporates
Jump to navigation Jump to search
m
m
Line 1: Line 1:
−
{{img|{{{1}}}-sm.svg|{{#if:{{{2|}}}|{{{2}}}|25}}|{{#if:{{{3|}}}|{{{3}}}|20}}|ml=0|mr=0|float={{#if:{{{float|}}}|{{{float}}}|none}}}}<noinclude>{{doc2}}</noinclude>
+
{{img|
 +
{{#switch:{{{1}}}
 +
|APNI=Alliance-Party-of-Northern-Ireland-sm.svg
 +
|AWP=Animal-Welfare-Party-sm.svg
 +
|Brexit=Brexit-Party-sm.svg
 +
|DUP=Democratic-Unionist-Party-sm.svg
 +
|Greens=Green-Party-sm.svg
 +
|Greens-NI=Green-Party-NI-sm.svg
 +
|Greens-Scotland=Green-Party-Scotland-sm.svg
 +
|Independent=Independent-Candidate-sm.svg
 +
|Labour=Labour-Party-sm.svg
 +
|Labour-Coop=Labour-and-Cooperative-sm.svg
 +
|LibDems=Liberal-Democrats-sm.svg
 +
|SDLP=Social-Democratic-Labour-Party-sm.svg
 +
|SNP=Scottish-National-Party-sm.svg
 +
|SPGB=Socialist-Party-Great-Britain-sm.svg
 +
|TED=English-Democrats-sm.svg
 +
|TIG=Independent-Group-sm.svg
 +
|TIN=Independent-Network-sm.svg
 +
|Tory=Conservatives-sm.svg
 +
|TUV=Traditional-Unionist-Voice-sm.svg
 +
|TYP=Yorkshire-Party-sm.svg
 +
|UKEU=UK-European-Union-Party-sm.svg
 +
|UKIP=UKIP-sm.svg
 +
|UUP=Ulster-Unionist-Party-sm.svg
 +
|WEP=Womens-Equality-Party-sm.svg
 +
|#default={{tc|Something went wrong in Template:party-logo: no such switch option "{{{1}}}".}}
 +
}}
 +
|{{#if:{{{2|}}}|{{{2}}}|25}}|{{#if:{{{3|}}}|{{{3}}}|20}}|ml=0|mr=0|float={{#if:{{{float|}}}|{{{float}}}|none}}}}<noinclude>{{doc2}}</noinclude>

Revision as of 22:09, 26 April 2019

<img src="https://www.wikicorporates.org/Images/ Something went wrong in Template:party-logo: no such switch option "{{{1}}}".

" width="25" height="20"/>

[edit] Documentation

Template to generate teensy party logos. The default is 25 x 20px, with a left- and right-margin of 0px.

Good usage examples: Guide to EU Elections#European Parliament Political Groups

All images in  /Images/Logos-Political-Parties/
New logos: use /Images/Logos-Political-Parties/Template-Political-Party-Logos.svg

Usage

{{party-logo
|party-name    - see "Examples" below
|width         - optional; default = 25
|height        - optional; default = 20
}}

Examples

  • {{party-logo|APNI}} → Alliance Party of Northern Ireland
  • {{party-logo|AWP}} → Animal Welfare Party
  • {{party-logo|Brexit}} → Brexit Party
  • {{party-logo|DUP}} → Democratic Unionist Party
  • {{party-logo|Greens}} → Green Party
  • {{party-logo|Greens-NI}} → Green Party of Northern Ireland
  • {{party-logo|Greens-Scotland}} → Green Party of Scotland
  • {{party-logo|Independent}} → Independent Candidate
  • {{party-logo|Labour}} → Labour Party
  • {{party-logo|Labour-Coop}} → Labour and Cooperative Party
  • {{party-logo|LibDems}} → Liberal Democrats
  • {{party-logo|Plaid-Cymru}} → <img src="https://www.wikicorporates.org/Images/

Something went wrong in Template:party-logo: no such switch option "Plaid-Cymru". " width="25" height="20"/> Plaid Cymru

Something went wrong in Template:party-logo: no such switch option "Sinn-Fein". " width="25" height="20"/> Sinn Fein

Something went wrong in Template:party-logo: no such switch option "SDP". " width="25" height="20"/> Social Democratic Party