Difference between revisions of "Template:former/doc"

From WikiCorporates
Jump to navigation Jump to search
(Created page with "<small><< Template:former</small> Simple template to make my life easier. <pre> Path is set to http://wikipolitiks.local/Images/ </pre> === Usage === <pre> {{img |image-...")
 
m
Line 1: Line 1:
 
<small><< [[Template:former]]</small>
 
<small><< [[Template:former]]</small>
  
−
Simple template to make my life easier.
+
Template to generate small images denoting where people have formerly worked; it's all about the [[Revolving Door]].
 
<pre>
 
<pre>
 
Path is set to http://wikipolitiks.local/Images/
 
Path is set to http://wikipolitiks.local/Images/
Line 8: Line 8:
 
=== Usage ===
 
=== Usage ===
 
<pre>
 
<pre>
−
{{img
+
{{former
−
|image-name.png - the filename of the image
+
|job-name  - one of [UK-Police, UK-Navy, UK-Army, UK-RAF, US-Army, EU-Parliament, UK-Parliament, UK-HoL, UK-HoC]
−
|300            - width
 
−
|200            - height
 
−
|float          - optional. [left | right | none]. If left empty, the image will float right.
 
−
|border          - optional border colour
 
−
|caption        - optional image caption
 
 
}}
 
}}
 
</pre>
 
</pre>
  
 
=== Examples ===
 
=== Examples ===
−
<pre>{{img|Financial-Weapons-of-Mass-Destruction.png|100|100|border=#808080}}</pre>
+
<pre>{{former|UK-Police}}</pre>
 
Gives:
 
Gives:
−
{{img|Financial-Weapons-of-Mass-Destruction.png|100|100|border=#808080}}
+
{{former|UK-Police}}
 
{{Clear}}
 
{{Clear}}
−
 
−
<pre>
 
−
{{img
 
−
|Toy-Factory-Wages.png
 
−
|200
 
−
|217
 
−
|border=red
 
−
|caption=[http://www.chrismadden.co.uk/cartoon-gallery/exploitation-of-factory-workers-in-the-developing-world/ Need to pay £4 for this]}}
 
−
</pre>
 
−
Gives:
 
−
{{img|Toy-Factory-Wages.png
 
−
|200|217
 
−
|border=red
 
−
|caption=[http://www.chrismadden.co.uk/cartoon-gallery/exploitation-of-factory-workers-in-the-developing-world/ Need to pay £4 for this]}}
 
  
 
<includeonly>[[Category:WikiPolitiks templates]]</includeonly>
 
<includeonly>[[Category:WikiPolitiks templates]]</includeonly>

Revision as of 14:32, 1 August 2018

<< Template:former

Template to generate small images denoting where people have formerly worked; it's all about the Revolving Door.

Path is set to http://wikipolitiks.local/Images/

Usage

{{former
|job-name  - one of [UK-Police, UK-Navy, UK-Army, UK-RAF, US-Army, EU-Parliament, UK-Parliament, UK-HoL, UK-HoC]
}}

Examples

{{former|UK-Police}}

Gives:

Former-UK-Police.svg