Difference between revisions of "Template:govt/doc"

From WikiCorporates
Jump to navigation Jump to search
(Created page with "=== Usage === Tiny template to print "Conservatives" in party colours. Optionally takes an argument, ''eg.'' "Thatcher" === Examples === <pre>{{Con|May}}</pre> ;Which will g...")
 
m
Line 1: Line 1:
 +
<small><< [[Template:govt]]</small>
 
=== Usage ===
 
=== Usage ===
−
Tiny template to print "Conservatives" in party colours. Optionally takes an argument, ''eg.'' "Thatcher"
+
Tiny template to print "Conservatives / Labour / Cons/LibDems" in party colours. Optionally takes a PM as a 3rd argument, ''eg.'' "Thatcher".
 +
 
 +
The parameters are:
 +
<pre>
 +
{{govt
 +
| arg-0  - One of [div / span]. Determines (a) whether the output is wrapped in a div and (b) what font size is used.
 +
| arg-1  - Party name, abbreviated. One of [ Con | Lab | ConLib ]
 +
| arg-2  - PM name (optional)
 +
}}
 +
</pre>
  
 
=== Examples ===
 
=== Examples ===
−
<pre>{{Con|May}}</pre>
+
<code><nowiki>{{govt|div|Con|May}}</nowiki></code> {{govt|div|Con|May}}
 +
<code><nowiki>{{govt|span|Con|May}}</nowiki></code> {{govt|span|Con|May}}
 +
<code><nowiki>{{govt|span|Lab|Blair}}</nowiki></code> {{govt|span|Lab|Blair}}
 +
<code><nowiki>{{govt|span|ConLib}}</nowiki></code> {{govt|span|ConLib|CC}}
  
−
;Which will give
 
−
{{Con|May}}
 
  
−
List of PMs from 1979&ndash;present:
+
==== Helpful List of PMs from 1979&ndash;present: ====
 
* {{Con|May}} Jul.2016&ndash;
 
* {{Con|May}} Jul.2016&ndash;
 
* {{Con|Cameron}} May.2015&ndash;Jul.2016
 
* {{Con|Cameron}} May.2015&ndash;Jul.2016

Revision as of 23:57, 17 July 2018

<< Template:govt

Usage

Tiny template to print "Conservatives / Labour / Cons/LibDems" in party colours. Optionally takes a PM as a 3rd argument, eg. "Thatcher".

The parameters are:

{{govt
| arg-0   - One of [div / span]. Determines (a) whether the output is wrapped in a div and (b) what font size is used.
| arg-1   - Party name, abbreviated. One of [ Con | Lab | ConLib ]
| arg-2   - PM name (optional)
}}

Examples

{{govt|div|Con|May}}

Conservatives (May)

{{govt|span|Con|May}} Conservatives (May) {{govt|span|Lab|Blair}} Labour (Blair) {{govt|span|ConLib}} Cons/LibDem (Cameron/Clegg)


Helpful List of PMs from 1979–present:

  • Conservatives (May)
    Jul.2016–
  • Conservatives (Cameron)
    May.2015–Jul.2016
  • Cons-LibDem (Cameron-Clegg)
    May.2010–May.2015
  • Template:Lab Jun.2007–May.2010
  • Template:Lab May.1997–Jun.2007
  • Conservatives (Major)
    Nov.1990–May.1997
  • Conservatives (Thatcher)
    May.1979–Nov.1990