Difference between revisions of "Template:Info Politicians"
m |
m |
||
| (14 intermediate revisions by the same user not shown) | |||
| Line 2: | Line 2: | ||
<tr><th colspan="2"> | <tr><th colspan="2"> | ||
<hr class="plain"/> | <hr class="plain"/> | ||
| − | <div class="title"> | + | <div class="title"><!-- {img|Northern-Ireland-Assembly.svg|124|100|float=none}} --> </div> |
<hr class="plain"/> | <hr class="plain"/> | ||
</th></tr> | </th></tr> | ||
| Line 26: | Line 26: | ||
<dt>Committees:</dt> | <dt>Committees:</dt> | ||
<dd>{{{cttees}}}</dd> | <dd>{{{cttees}}}</dd> | ||
| − | <dt>All Party | + | <dt>All Party Parliamentary Groups:</dt> |
<dd>{{{appgs}}}</dd> | <dd>{{{appgs}}}</dd> | ||
</dl> | </dl> | ||
| + | <div style="font-size:86%">''As at {{{reg-date}}}''</div> | ||
</div> | </div> | ||
</div></td></tr> | </div></td></tr> | ||
| Line 75: | Line 76: | ||
<tr><td style="padding:0;"> | <tr><td style="padding:0;"> | ||
<table class="mw-collapsible mw-collapsed inner" data-expandtext="{{int:show}}" data-collapsetext="{{int:hide}}"> | <table class="mw-collapsible mw-collapsed inner" data-expandtext="{{int:show}}" data-collapsetext="{{int:hide}}"> | ||
| − | <tr><th colspan="2" class="fold"><span style="font-size: | + | <tr><th colspan="2" class="fold {{{party}}}"><span style="font-size:115%;">Salary and Expenses</span></th></tr> |
<tr><td colspan="2" style="font-weight:bold; padding-top:3px;">Income</td></tr> | <tr><td colspan="2" style="font-weight:bold; padding-top:3px;">Income</td></tr> | ||
<tr><td style="padding-left:0.8em;">Base salary:</td><td>£{{{mp-salary}}} ''per year''</td></tr> | <tr><td style="padding-left:0.8em;">Base salary:</td><td>£{{{mp-salary}}} ''per year''</td></tr> | ||
| Line 81: | Line 82: | ||
<tr><td colspan="2" style="font-weight:bold; padding-top:3px;">Expenses:</td></tr> | <tr><td colspan="2" style="font-weight:bold; padding-top:3px;">Expenses:</td></tr> | ||
<tr><td style="padding-left:0.8em;">Office Costs:</td><td>£{{{exp-office}}}</td></tr> | <tr><td style="padding-left:0.8em;">Office Costs:</td><td>£{{{exp-office}}}</td></tr> | ||
| − | <tr><td style="padding-left:0.8em;">Accommodation:</td><td style="padding:0;">£{{{exp-accomm}}}</td></tr> | + | {{#if:{{{exp-accomm|}}}|<tr><td style="padding-left:0.8em;">Accommodation:</td><td style="padding:0;">£{{{exp-accomm}}}</td></tr>|}} |
<tr><td style="padding-left:0.8em;">Travel:</td><td>£{{{exp-travel}}}</td></tr> | <tr><td style="padding-left:0.8em;">Travel:</td><td>£{{{exp-travel}}}</td></tr> | ||
| − | <tr><td style="padding-top:2px; font-size:86%">''As | + | <tr><td style="padding-top:2px; font-size:86%">''As at {{{exp-date}}}''</td></tr> |
</table> | </table> | ||
</td></tr> | </td></tr> | ||
Latest revision as of 12:26, 3 April 2019
|
| |||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
{{{name}}}
MP for {{{constit}}}
| |||||||||||||||
| {{{portrait}}} | |||||||||||||||
| {{{party-logo}}} | |||||||||||||||
|
In office: {{{in-office}}}
| |||||||||||||||
| {{{blurb}}} | |||||||||||||||
Committees and APPGs
As at {{{reg-date}}}
| |||||||||||||||
Parliamentary Record
| |||||||||||||||
Contact
Party website: {{{party-wsite}}}
| |||||||||||||||
| |||||||||||||||
|
Wikipedia: {{{wp-page}}}
| |||||||||||||||
[edit] Documentation
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.
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
| Conservative | Nadhim Zahawi | #0087dc + #eff7fc | |
| Scottish Conservative & Unionist | Scottish Conservatives |
Colours as for Conservatives | |
| Northern Ireland Conservatives | Northern Ireland Conservatives |
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 Labour |
– | Colours as for Labour | |
| Scottish Labour, Scottish Labour Party |
– | 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:
- 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
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 Gyimah
, 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}}
}}