Difference between revisions of "Template:MemParl/doc"
Jump to navigation
Jump to search
(Created page with "This is a template for a Member of Parliament. There are many fields; just leave them empty if you don't know the value something should be, eg. "Facebook = " in the example b...") |
m |
||
| Line 3: | Line 3: | ||
Here is the entirety of the table, as you would enter it into an article: | Here is the entirety of the table, as you would enter it into an article: | ||
| + | <pre> | ||
| + | {{#switch:{{{area|}}} | ||
| + | | biog = | ||
| + | <table class="vbox people {{{class}}}"> | ||
| + | <tr><th class="title"> | ||
| + | <div class="title-lg">{{{name}}}</div> | ||
| + | <div class="title-sm">{{{pos1}}}</div> | ||
| + | </th></tr> | ||
| + | <tr><th>{{{pic}}}</th></tr> | ||
| + | <tr><td>{{{logo}}}</td></tr> | ||
| + | <tr><th class="bold-txt" style="padding-top:0;"> | ||
| + | <hr/> | ||
| + | <div>{{{pos2}}}</div> | ||
| + | <hr/> | ||
| + | <div>{{{elect}}}</div> | ||
| + | <div class="banner">{{{value}}}</div> | ||
| + | </th></tr> | ||
| + | <tr> | ||
| + | <td class="left-txt">{{{blurb}}}</td> | ||
| + | </tr> | ||
| + | | dosh = | ||
| + | <tr class="fold"><td> | ||
| + | <div class="mw-collapsible mw-collapsed" data-expandtext="{{int:show}}" data-collapsetext="{{int:hide}}" style="border:none; padding:0;"> | ||
| + | <div class="head">Salary + Expenses</div> | ||
| + | <div class="body mw-collapsible-content"> | ||
| + | <div class="cell">Income</div> | ||
| + | <div class="row"> | ||
| + | <div class="key">Base salary:</div> | ||
| + | <div class="value">£{{{salary}}} <small>''(yearly)''</small></div> | ||
| + | </div> | ||
| + | <div class="row"> | ||
| + | <div class="key">Other Revenue:</div> | ||
| + | <div class="value">{{{twfy}}}</div> | ||
| + | </div> | ||
| + | <div class="cell">Expenses <span style="font-weight:normal; font-style:italic; font-size:80%;">per {{{ipsa}}}, {{{date}}}</span></div> | ||
| + | <div class="row"> | ||
| + | <div class="key">Office costs:</div> | ||
| + | <div class="value">£{{{office}}}</div> | ||
| + | </div> | ||
| + | <div class="row"> | ||
| + | <div class="key">Accommodation:</div> | ||
| + | <div class="value">£{{{accomm}}}</div> | ||
| + | </div> | ||
| + | <div class="row"> | ||
| + | <div class="key">Travel:</div> | ||
| + | <div class="value">£{{{travel}}}</div> | ||
| + | </div> | ||
| + | </div> | ||
| + | </div> | ||
| + | </td> | ||
| + | </tr> | ||
| + | | parly = | ||
| + | <tr class="fold"><td> | ||
| + | <div class="mw-collapsible mw-collapsed" data-expandtext="{{int:show}}" data-collapsetext="{{int:hide}}" style="border:none; padding:0"> | ||
| + | <div class="head">Parliamentary Record</div> | ||
| + | <div class="body mw-collapsible-content"> | ||
| + | <dl class="vbox-dl"> | ||
| + | <dt>Voting:</dt> | ||
| + | <dd>Voting overview: [{{{oview}}} They Work For You]</dd> | ||
| + | <dd>Complete record: [{{{votes}}} The Public Whip]</dd> | ||
| + | <dt>Activity:</dt> | ||
| + | <dd>Attendance: [{{{attend}}} The Public Whip]</dd> | ||
| + | <dd>Pro/Anti Stances: [{{{stances}}} TheyWorkForYou]</dd> | ||
| + | <dd>Parliamentary Contributions: [{{{hansrd}}} Hansard]</dd> | ||
| + | </dl> | ||
| + | </div> | ||
| + | </div> | ||
| + | </td></tr> | ||
| + | | contact = | ||
| + | <tr class="fold"><td> | ||
| + | <div class="mw-collapsible mw-collapsed" data-expandtext="{{int:show}}" data-collapsetext="{{int:hide}}" style="border:none; padding:0"> | ||
| + | <div class="head">Contact</div> | ||
| + | <div class="body mw-collapsible-content"> | ||
| + | Party website: {{{party}}} | ||
| + | <dl class="vbox-dl"> | ||
| + | <dt>Constituency:</dt> | ||
| + | <dd>{{{caddr}}}</dd> | ||
| + | <dd>Tel: {{{ctelno}}}</dd> | ||
| + | <dt>Parliament:</dt> | ||
| + | <dd>House of Commons, London SW1A 0AA</dd> | ||
| + | <dd>Tel: 020-7219-4298</dd> | ||
| + | <dd>[{{{ppage}}} Parliament.uk]</dd> | ||
| + | <dd>{{{pamail}}}</dd> | ||
| + | <dt>Personal Website:</dt> | ||
| + | <dd>{{{pweb}}}</dd> | ||
| + | <dd>{{{comail}}}</dd> | ||
| + | <dt>WriteToThem:</dt> | ||
| + | <dd>[{{{wtthem}}} WriteToThem.com]</dd> | ||
| + | <dt>Social Media:</dt> | ||
| + | <dd>Twitter: {{{tweets}}}</dd> | ||
| + | <dd>Facebook: {{{fbook}}}</dd> | ||
| + | </dl> | ||
| + | </div> | ||
| + | </div> | ||
| + | </td></tr> | ||
| + | <tr><td class="footer"> | ||
| + | <div class="wp">Wikipedia: {{{wpedia}}}</div> | ||
| + | </td></tr> | ||
| + | </table> | ||
| + | | #default = | ||
| + | <h1>Template:MemParl - something is very wrong here.</h1> | ||
| + | }}<noinclude>{{doc2}}</noinclude> | ||
| + | </pre> | ||
| + | ;A working example: | ||
| + | :(todo) | ||
<includeonly>[[Category:WikiPolitiks templates]]</includeonly> | <includeonly>[[Category:WikiPolitiks templates]]</includeonly> | ||
Revision as of 16:49, 27 April 2018
This is a template for a Member of Parliament. There are many fields; just leave them empty if you don't know the value something should be, eg. "Facebook = " in the example below.
Here is the entirety of the table, as you would enter it into an article:
{{#switch:{{{area|}}}
| biog =
<table class="vbox people {{{class}}}">
<tr><th class="title">
<div class="title-lg">{{{name}}}</div>
<div class="title-sm">{{{pos1}}}</div>
</th></tr>
<tr><th>{{{pic}}}</th></tr>
<tr><td>{{{logo}}}</td></tr>
<tr><th class="bold-txt" style="padding-top:0;">
<hr/>
<div>{{{pos2}}}</div>
<hr/>
<div>{{{elect}}}</div>
<div class="banner">{{{value}}}</div>
</th></tr>
<tr>
<td class="left-txt">{{{blurb}}}</td>
</tr>
| dosh =
<tr class="fold"><td>
<div class="mw-collapsible mw-collapsed" data-expandtext="{{int:show}}" data-collapsetext="{{int:hide}}" style="border:none; padding:0;">
<div class="head">Salary + Expenses</div>
<div class="body mw-collapsible-content">
<div class="cell">Income</div>
<div class="row">
<div class="key">Base salary:</div>
<div class="value">£{{{salary}}} <small>''(yearly)''</small></div>
</div>
<div class="row">
<div class="key">Other Revenue:</div>
<div class="value">{{{twfy}}}</div>
</div>
<div class="cell">Expenses <span style="font-weight:normal; font-style:italic; font-size:80%;">per {{{ipsa}}}, {{{date}}}</span></div>
<div class="row">
<div class="key">Office costs:</div>
<div class="value">£{{{office}}}</div>
</div>
<div class="row">
<div class="key">Accommodation:</div>
<div class="value">£{{{accomm}}}</div>
</div>
<div class="row">
<div class="key">Travel:</div>
<div class="value">£{{{travel}}}</div>
</div>
</div>
</div>
</td>
</tr>
| parly =
<tr class="fold"><td>
<div class="mw-collapsible mw-collapsed" data-expandtext="{{int:show}}" data-collapsetext="{{int:hide}}" style="border:none; padding:0">
<div class="head">Parliamentary Record</div>
<div class="body mw-collapsible-content">
<dl class="vbox-dl">
<dt>Voting:</dt>
<dd>Voting overview: [{{{oview}}} They Work For You]</dd>
<dd>Complete record: [{{{votes}}} The Public Whip]</dd>
<dt>Activity:</dt>
<dd>Attendance: [{{{attend}}} The Public Whip]</dd>
<dd>Pro/Anti Stances: [{{{stances}}} TheyWorkForYou]</dd>
<dd>Parliamentary Contributions: [{{{hansrd}}} Hansard]</dd>
</dl>
</div>
</div>
</td></tr>
| contact =
<tr class="fold"><td>
<div class="mw-collapsible mw-collapsed" data-expandtext="{{int:show}}" data-collapsetext="{{int:hide}}" style="border:none; padding:0">
<div class="head">Contact</div>
<div class="body mw-collapsible-content">
Party website: {{{party}}}
<dl class="vbox-dl">
<dt>Constituency:</dt>
<dd>{{{caddr}}}</dd>
<dd>Tel: {{{ctelno}}}</dd>
<dt>Parliament:</dt>
<dd>House of Commons, London SW1A 0AA</dd>
<dd>Tel: 020-7219-4298</dd>
<dd>[{{{ppage}}} Parliament.uk]</dd>
<dd>{{{pamail}}}</dd>
<dt>Personal Website:</dt>
<dd>{{{pweb}}}</dd>
<dd>{{{comail}}}</dd>
<dt>WriteToThem:</dt>
<dd>[{{{wtthem}}} WriteToThem.com]</dd>
<dt>Social Media:</dt>
<dd>Twitter: {{{tweets}}}</dd>
<dd>Facebook: {{{fbook}}}</dd>
</dl>
</div>
</div>
</td></tr>
<tr><td class="footer">
<div class="wp">Wikipedia: {{{wpedia}}}</div>
</td></tr>
</table>
| #default =
<h1>Template:MemParl - something is very wrong here.</h1>
}}<noinclude>{{doc2}}</noinclude>
- A working example
- (todo)