Difference between revisions of "Template:Info Politicians/doc"

From WikiCorporates
Jump to navigation Jump to search
m (→‎Images and Colours)
(→‎Images and Colours)
 
(39 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
−
[[Template:Info Politicians|Template]] This is a Template for Politicians of all persuasions.
+
This is a Template for Politicians of all persuasions.
 +
 
 +
Note: See the '''Talk''' page for the formatted version. If the actual template contains line breaks, I get blank paragraphs at the top of the article page.
 +
 
 +
Portrait size: 250 x 300
 +
 
 +
 
  
−
__NOTOC__
 
 
== Images and Colours ==
 
== Images and Colours ==
 
Depending on which Parliament a member sits in, the 2 bars at the top get their Parliament's colour + their Parliament's logo. <small>Nb: since Mar.2018, there's a [https://www.thetimes.co.uk/edition/news/spot-the-difference-mps-spend-50-000-on-parliament-logo-redesign-837wswgw7 new Portcullis logo].</small> See the ''Talk'' page for sources, etc.
 
Depending on which Parliament a member sits in, the 2 bars at the top get their Parliament's colour + their Parliament's logo. <small>Nb: since Mar.2018, there's a [https://www.thetimes.co.uk/edition/news/spot-the-difference-mps-spend-50-000-on-parliament-logo-redesign-837wswgw7 new Portcullis logo].</small> See the ''Talk'' page for sources, etc.
−
* HoC: <code><nowiki>[[File:House-of-Commons.svg|240x37px]]</nowiki></code>, #085196 (Westminster Parliament)
+
{| class="wikitable"
−
* HoC: <code><nowiki>[[File:House-of-Lords.svg|240x32px]]</code></nowiki></code>, #085196 (Westminster Parliament)
+
|+ Parliaments / Assemblies
−
* NAW: <code><nowiki>[[File:National-Assembly-for-Wales.png|240x42px]]</nowiki></code>, #e60a82 (Welsh Assembly)
+
| HoC: || <tt><nowiki>{{img|House-of-Commons.svg|240|37}}</nowiki></tt>|| {{img|House-of-Commons.svg|163|25|float=none}}|| {{ColorBox|#085196|#085196|#ffffff}} (Westminster Parliament)
−
* SP:  <code><nowiki>[[File:Scottish-Parliament.svg|240x99px]]</nowiki></code>, #5c2d91 (Scottish Parliament)
+
|-
−
* NIA: <code><nowiki>[[File:Northern-Ireland-Assembly.svg|124x100px]]</nowiki></code>, #4a82c3 (same colour as logo)
+
| HoL: || <tt><nowiki>[[File:House-of-Lords.svg|225x30px]]</nowiki></tt> ||[[File:House-of-Lords.svg|225x30px]] || {{ColorBox|#a2070f|#a2070f|#ffffff}} (Westminster Parliament)
−
* {{tc|MEPs}}: To figure out.
+
|-
−
* All other politicians get grey bars (style = "plain") + find a decent image to put beside "Politicians". I think I'm going to have to make the image + "Politicians" into one image, because the image won't position correctly in Chrome.
+
| Eng. Parl: ||<tt><nowiki>{{img|English-Parliament.svg|240|232}}</nowiki></tt> || {{img|English-Parliament.svg|34|25|float=none}}|| {{ColorBox|#ce1124|#ce1124|#ffffff}} (English MPs)
−
Put the colours in this table as I figure them out:
+
|-
 +
| NAW: || <tt><nowiki>{{img|National-Assembly-for-Wales.svg|240|205}}</nowiki></tt> ||{{img|National-Assembly-for-Wales.svg|29|25|float=none}} ||{{ColorBox|#e60a82|#e60a82|#ffffff}} (Welsh Assembly)
 +
|-
 +
| SP:  || <tt><nowiki>{{img|Scottish-Parliament.svg|240|99}}</nowiki></tt> ||{{img|Scottish-Parliament.svg|31|25|float=none}} || {{ColorBox|#5c2d91|#5c2d91|#ffffff}} (Scottish Parliament)
 +
|-
 +
| NIA: || <tt><nowiki>{{img|Northern-Ireland-Assembly.svg|123|100}}</nowiki></tt> ||{{img|Northern-Ireland-Assembly.svg|31|25|float=none}} ||{{ColorBox|#4a82c3|#4a82c3|#ffffff}} (same colour as logo)
 +
|-
 +
| MEPs: || <tt><nowiki>{{img|European-Parliament.svg|220|120}}</nowiki></tt> ||{{img|European-Parliament.svg|46|25|float=none}} ||{{ColorBox|#003399|#003399|#ffffff}} (same colour as logo)
 +
|}
 +
All other politicians get grey bars (style = "plain") + find a decent image to put beside "Politicians". I think I'm going to have to make the image + "Politicians" into one image, because the image won't position correctly in Chrome.
  
 +
== Political Party Colours ==
 
{| class="wikitable"
 
{| class="wikitable"
−
|+ Working Examples
+
|+ Political Parties
−
| [https://www.conservatives.com/ Conservative]:    || [[Nadhim Zahawi]]   ||{{ColorBox|#0087dc|#0087dc|#ffffff}} + {{ColorBox|#6ed700|#6ed700}}
+
| [https://www.conservatives.com/ Conservative]
 +
  |[[Nadhim Zahawi]]
 +
  |{{ColorBox|#0087dc|#0087dc|#ffffff|border=#0087dc}} + {{ColorBox|#eff7fc|#eff7fc|border=#0087dc}}
 +
  |{{img|Conservatives.svg|100|15|float=left}}
 +
|-
 +
| [http://www.scottishconservatives.com/ Scottish Conservative & Unionist]
 +
  |{{wpl|Scottish Conservatives}}
 +
  |Colours as for Conservatives
 +
  |{{img|Conservatives-Scottish.svg|100|28|float=left}}
 +
|-
 +
| [https://www.niconservatives.com/ Northern Ireland Conservatives]
 +
  |{{wpl|Northern Ireland Conservatives}}
 +
  |Colours as for Conservatives
 +
  |{{img|Conservatives-Northern-Ireland.svg|100|20|float=left}}
 +
|-
 +
| [http://www.mydup.com/ Democratic Unionist Party]
 +
  |[[Gregory Campbell]]
 +
  |{{ColorBox|#c8292b|#c8292b|#ffffff}} + {{ColorBox|#19283e|#19283e|#ffffff}}
 +
  |{{img|Democratic-Unionist-Party.svg|100|49|float=left}}
 +
|-
 +
| [https://www.greenparty.org.uk/ Green Party]
 +
  |[[Caroline Lucas]]
 +
  |{{ColorBox|#6ab023|#6ab023|#ffffff|border=#6ab023}} + {{ColorBox|#f6faf1|#f6faf1|border=#6ab023}}
 +
  |{{img|Green-Party.svg|100|22|float=left}}
 
|-
 
|-
−
| [http://www.mydup.com/ Democratic Unionist Party]:|| [[Gregory Campbell]] ||x
+
| [http://www.labour.org.uk/ Labour]
 +
  |[[Jared O'Mara]]
 +
  |{{ColorBox|#d50000|#d50000|#ffffff|border=#d50000 }} + {{ColorBox|#fcefef|#fcefef|border=#d50000}}
 +
  |{{img|Labour-Party.svg|100|18|float=none}}
 
|-
 
|-
−
| [https://www.greenparty.org.uk/ Green Party]:    || [[Caroline Lucas]]  ||{{ColorBox|#8dc63f|#8dc63f|#ffffff}} + {{ColorBox|#008066|#008066}}
+
| [http://party.coop/ Labour + CoOp]
 +
  |[[Louise Ellman]]
 +
   |Colours as for Labour
 +
  |{{img|Labour-and-Co-operative.svg|100|32|float=none}}
 
|-
 
|-
−
| [http://www.labour.org.uk/ Labour]               || [[Jared O'Mara]]    ||{{ColorBox|#d50000|#d50000|#ffffff}} + {{ColorBox|#9b301c|#9b301c}}
+
| [http://www.welshlabour.wales/ Welsh Labour], {{wpl|Welsh Labour}}
 +
  |&ndash;
 +
  |Colours as for Labour
 +
  |{{img|Labour-Welsh-Labour.svg|100|29|float=none}}
 
|-
 
|-
−
| [http://party.coop/ Labour + CoOp]:              || [[Louise Ellman]]    ||Colours as for Labour
+
| [http://scottishlabour.org.uk/ Scottish Labour], {{wpl|Scottish Labour Party}}
 +
  |&ndash;
 +
  |Colours as for Labour
 +
  |{{img|Labour-Scottish-Labour.svg|100|30|float=none}}
 
|-
 
|-
−
| [http://www.libdems.org.uk/ Liberal Democrat]:    || [[Tom Brake]]       ||{{ColorBox|#fdbb30|#fdbb30|#ffffff}} + {{ColorBox|#00929f|#00929f}}
+
| [http://www.libdems.org.uk/ Liberal Democrat]
 +
  |[[Tom Brake]]
 +
  |{{ColorBox|#fdbb30|#fdbb30|#ffffff|border=#fdbb30}} + {{ColorBox|#fefaf2|#fefaf2|border=#fdbb30}}
 +
  |{{img|Liberal-Democrats-ink.svg|100|47|float=none}} {{img|Liberal-Democrats-Scottish-ink.svg|100|47|float=none}}
 
|-
 
|-
−
| [http://www.plaidcymru.org/ Plaid Cymru]:        || [[Jonathan Edwards]] ||{{ColorBox|#3f8428|#3f8428|#ffffff}} + {{ColorBox|#e1cc00|#e1cc00}}
+
| [http://www2.plaid.cymru/ Plaid Cymru]
 +
  |[[Jonathan Edwards]]
 +
  |{{ColorBox|#3f8428|#3f8428|#ffffff|border=#3f8428}} + {{ColorBox|#f3f7f1|#f3f7f1|border=#3f8428}}
 +
  |{{img|Plaid-Cymru.svg|100|28|float=none}}
 
|-
 
|-
−
| [http://www.snp.org/ Scottish National Party]:    || [[Mhairi Black]]     ||{{ColorBox|#fff95d|#fff95d}} + {{ColorBox|#0a2c50|#0a2c50|#ffffff}}
+
| [http://www.snp.org/ Scottish National Party]
 +
  | [[Mhairi Black]]
 +
  |{{ColorBox|#fef48b|#fef48b|border=#fef48b}} + {{ColorBox|#fefdf7|#fefdf7|border=#fef48b}}
 +
  |{{img|Scottish-National-Party-by.svg|100|33|float=none}}
 
|-
 
|-
−
| [http://www.sinnfein.ie/ Sinn Féin]:              || [[Mickey Brady]]     ||x
+
| [http://www.sinnfein.ie/ Sinn Féin]
 +
  |[[Mickey Brady]]
 +
  |{{ColorBox|#02665f|#02665f|#ffffff|border=#ff6f00}} + {{ColorBox|#eff5f5|#eff5f5|border=#02665f}}<br/>{{ColorBox|#326760|#326760|#ffffff|border=#ff6f00}} + {{ColorBox|#f2f5f5|#f2f5f5|border=#326760}}
 +
  |{{img|Sinn-Fein.svg|145|30|float=none}}
 
|-
 
|-
−
| Independent:                                      || [[Charlie Elphicke]] ||x
+
| Independent
 +
  | [[Charlie Elphicke]]
 +
  |x
 +
  |&ndash;
 
|-
 
|-
−
| Speaker:                                          || [[John Bercow]]     ||x
+
| Speaker
 +
  | [[John Bercow]]
 +
  |x
 +
  |&ndash;
 
|-
 
|-
−
| [http://www.ukip.org/ UKIP]:                      || &ndash;             ||{{ColorBox|#b3009d|#b3009d|#ffffff}} + {{ColorBox|#efe600|#efe600}}
+
| [http://www.ukip.org/ UKIP]
 +
  | &ndash;
 +
  |{{ColorBox|#b3009d|#b3009d|#ffffff}} + {{ColorBox|#efe600|#efe600}}
 +
  |{{img|UKIP-For-The-Nation.svg|238|50|float=none}}
 
|}
 
|}
 
<!-- Misc colours I don't want to lose, but have no use for just now
 
<!-- Misc colours I don't want to lose, but have no use for just now
 
Labour Ireland: bg: #d5000d + border: #920009 (from [https://www.labour.ie/download/pdf/labour_guidelines_online.pdf Labour.ie])
 
Labour Ireland: bg: #d5000d + border: #920009 (from [https://www.labour.ie/download/pdf/labour_guidelines_online.pdf Labour.ie])
−
 
 
-->
 
-->
 +
==== Band Colours ====
 +
I decided I didn't like the linear gradient, it's too flashy. Now we have a 1px line across the top and bottom of the band of the main colour, plus a background colour.  Choosing the bg colour isn't trivial. Here are the steps I'm currently following:
 +
# Goto http://www.color-hex.com/color/e5f6f4
 +
# Say the main colour is #00ad93; input this at the top of the page and click "Get Info"
 +
# In the "Tints" section, click on the last colour before white at the far right, ie. #e5f6f4
 +
# On the next page, again in the "Tints" section, choose the 5th tint, eg. #eff9f8
 +
Add them to the table(s) above as I figure them out. Main colour first; background colour second.
  
 
=== Usage ===
 
=== Usage ===
Line 97: Line 174:
 
</pre>
 
</pre>
  
−
==== See also ====
+
<includeonly>[[Category:WikiCorporates templates]]</includeonly>
−
* [[Template:Wpa]], for a handy way of including links to Wikipedia in footnotes.
 
−
* [[Template:Wp]]/[[Template:Wikipedia article]], for a box announcing that Wikipedia also has an article on X
 
−
<includeonly>
 
−
[[Category:WikiPolitiks templates]]
 
−
</includeonly>
 

Latest revision as of 13:34, 30 May 2020

This is a Template for Politicians of all persuasions.

Note: See the Talk page for the formatted version. If the actual template contains line breaks, I get blank paragraphs at the top of the article page.

Portrait size: 250 x 300


Images and Colours

Depending on which Parliament a member sits in, the 2 bars at the top get their Parliament's colour + their Parliament's logo. Nb: since Mar.2018, there's a new Portcullis logo. See the Talk page for sources, etc.

Parliaments / Assemblies
HoC: {{img|House-of-Commons.svg|240|37}}  #085196  (Westminster Parliament)
HoL: [[File:House-of-Lords.svg|225x30px]] House-of-Lords.svg  #a2070f  (Westminster Parliament)
Eng. Parl: {{img|English-Parliament.svg|240|232}}  #ce1124  (English MPs)
NAW: {{img|National-Assembly-for-Wales.svg|240|205}}  #e60a82  (Welsh Assembly)
SP: {{img|Scottish-Parliament.svg|240|99}}  #5c2d91  (Scottish Parliament)
NIA: {{img|Northern-Ireland-Assembly.svg|123|100}}  #4a82c3  (same colour as logo)
MEPs: {{img|European-Parliament.svg|220|120}}  #003399  (same colour as logo)

All other politicians get grey bars (style = "plain") + find a decent image to put beside "Politicians". I think I'm going to have to make the image + "Politicians" into one image, because the image won't position correctly in Chrome.

Political Party Colours

Political Parties
Conservative Nadhim Zahawi  #0087dc  +  #eff7fc 
Scottish Conservative & Unionist Scottish ConservativesWikipedia-W.svg Colours as for Conservatives
Northern Ireland Conservatives Northern Ireland ConservativesWikipedia-W.svg Colours as for Conservatives
Democratic Unionist Party Gregory Campbell  #c8292b  +  #19283e 
Green Party Caroline Lucas  #6ab023  +  #f6faf1 
Labour Jared O'Mara  #d50000  +  #fcefef 
Labour + CoOp Louise Ellman Colours as for Labour
Welsh Labour, Welsh LabourWikipedia-W.svg – Colours as for Labour
Scottish Labour, Scottish Labour PartyWikipedia-W.svg – Colours as for Labour
Liberal Democrat Tom Brake  #fdbb30  +  #fefaf2 
Plaid Cymru Jonathan Edwards  #3f8428  +  #f3f7f1 
Scottish National Party Mhairi Black  #fef48b  +  #fefdf7 
Sinn Féin Mickey Brady  #02665f  +  #eff5f5 
 #326760  +  #f2f5f5 
Independent Charlie Elphicke x –
Speaker John Bercow x –
UKIP –  #b3009d  +  #efe600 

Band Colours

I decided I didn't like the linear gradient, it's too flashy. Now we have a 1px line across the top and bottom of the band of the main colour, plus a background colour. Choosing the bg colour isn't trivial. Here are the steps I'm currently following:

  1. Goto http://www.color-hex.com/color/e5f6f4
  2. Say the main colour is #00ad93; input this at the top of the page and click "Get Info"
  3. In the "Tints" section, click on the last colour before white at the far right, ie. #e5f6f4
  4. On the next page, again in the "Tints" section, choose the 5th tint, eg. #eff9f8

Add them to the table(s) above as I figure them out. Main colour first; background colour second.

Usage

This is a template for Politicians. There are many fields; just leave an entry blank if you don't know the value something should be, eg. "facebook = " in this example.

ToDo

  • Add a "current position" field, to take eg. "Secretary of State for Health and Social Care (Health Secretary).
  • ?Add a "Previous Posts Held", something like the one here: Sam GyimahWikipedia-W.svg, but simpler and easier to read?

Here is the entirety of the table, as you would enter it into an article:

{{Info Politicians
|party      = tory | labour | ...
|name       = Louise Ellman
|constit    = [[Liverpool Riverside]]
|portrait   = [[File:Official portrait of Mrs Louise Ellman crop 2.jpg|230px]]
|party-logo = [[File:Logo-Labour-200x50.png|center|230px]]
|in-office  = May.1997 — present;
|blurb      = Louise Ellman has been MP for Liverpool Riverside since 1997. In the GE-2017, she once again retained her seat, with 84.5% of the vote.
<!-- Committees + APPGs -->
|cttees     = National Policy Statements Sub-Committee
|appgs      = Israel APPG, Chair
<!-- Parliamentary Record -->
|actvty-twfy = https://www.theyworkforyou.com/mp/10186/louise_ellman/liverpool%2C_riverside#numerology
|actvty-tpw  = http://www.publicwhip.org.uk/mp.php?mpn=Louise_Ellman&mpc=Liverpool%2C_Riverside&house=commons&display=allvotes#divisions
|voting-tpw  = http://www.publicwhip.org.uk/mp.php?mpn=Louise_Ellman&mpc=Liverpool%2C_Riverside&house=commons
|voting-twfy = https://www.theyworkforyou.com/mp/10186/louise_ellman/liverpool%2C_riverside/votes
|voting-hans = https://hansard.parliament.uk/search/MemberContributions?memberId=484&type=Divisions
<!-- Contact -->
|party-wsite = [https://vote.labour.org.uk/louise-ellman Labour.org.uk]
|const-addr  = Room 212 The Cotton Exchange Building, Old Hall Street, Liverpool, L3 9LQ
|const-tel   = 0151-236-2969
|const-email = [mailto:lloydju@parliament.uk lloydju@parliament.uk]; [mailto:rob.carney@parliament.uk rob.carney@parliament.uk]
|parl-add    = House of Commons, London SW1A 0AA
|parl-tel    = 020-7219-5210
|parl-page   = [https://www.parliament.uk/biographies/commons/mrs-louise-ellman/484 Parliament.uk page]
|parl-email  = [mailto:louise.ellman.mp@parliament.uk louise.ellman.mp@parliament.uk]; [mailto:james.floyd@parliament.uk james.floyd@parliament.uk]
|website     = [http://www.louiseellman.co.uk/ www.louiseellman.co.uk/]
|write2them  = [https://www.writetothem.com/write?who=47002&pc=L3+9LQ WriteToThem.com]
|twitter     = [https://twitter.com/LouiseEllman @LouiseEllman]
|facebook    = 
<!-- Dosh -->
|exp-date   = Feb.2018
|mp-salary  = 76,011
|other-dosh = [https://www.theyworkforyou.com/regmem/?p=10186 TheyWorkForYou]
|exp-office = 14,351.63
|exp-staff  = 121.84
|exp-accomm = 6,298.32
|exp-travel = 2,730.78
<!-- Footer -->
|wp-page = {{wpl|Louise Ellman}}
}}