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-...")
 
(→‎All current images)
 
(19 intermediate revisions by the same user not shown)
Line 1: Line 1:
−
<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]].
 +
 
 +
{{ToDo|Update the images which use the UK flag to use the new one which doesn't use clipping.}}
 +
 
 
<pre>
 
<pre>
−
Path is set to http://wikipolitiks.local/Images/
+
All images have been uploaded; backups are in /Uploaded/Site-Imgs/Former/
 +
Originals are in /Site-Imgs/Former-Occupations-ink.svg
 
</pre>
 
</pre>
  
 
=== 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, HM-Govt, Conservatives, Media, Thinktank, Welsh-Parl]
−
|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 ===
+
=== Example ===
−
<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>
+
=== All current images ===
−
{{img
+
{{former|UK-Police}}
−
|Toy-Factory-Wages.png
+
{{former|UK-Navy}}
−
|200
+
{{former|UK-Army}}
−
|217
+
{{former|UK-RAF}}
−
|border=red
+
{{former|US-Army}}
−
|caption=[http://www.chrismadden.co.uk/cartoon-gallery/exploitation-of-factory-workers-in-the-developing-world/ Need to pay £4 for this]}}
+
{{former|EU-Parliament}}
−
</pre>
+
{{former|UK-Parliament}}
−
Gives:
+
{{former|UK-HoL}}
−
{{img|Toy-Factory-Wages.png
+
{{former|UK-HoC}}
−
|200|217
+
{{former|HM-Govt}}
−
|border=red
+
{{former|Conservatives}}
−
|caption=[http://www.chrismadden.co.uk/cartoon-gallery/exploitation-of-factory-workers-in-the-developing-world/ Need to pay £4 for this]}}
+
{{former|Thinktank}}
−
 
+
{{former|Media}}
−
<includeonly>[[Category:WikiPolitiks templates]]</includeonly>
+
{{former|Welsh-Parl}}
 +
<includeonly>[[Category:WikiCorporates templates]]</includeonly>

Latest revision as of 06:10, 4 December 2020

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

ToDo: Update the images which use the UK flag to use the new one which doesn't use clipping.
All images have been uploaded; backups are in /Uploaded/Site-Imgs/Former/
Originals are in /Site-Imgs/Former-Occupations-ink.svg

Usage

{{former
|job-name - one of [UK-Police, UK-Navy, UK-Army, UK-RAF, US-Army, EU-Parliament, UK-Parliament, UK-HoL, UK-HoC, HM-Govt, Conservatives, Media, Thinktank, Welsh-Parl]
}}

Example

{{former|UK-Police}}

Gives:

Former-UK-Police.svg

All current images

Former-UK-Police.svg
Former-UK-Navy.svg
Former-UK-Army.svg
Former-UK-RAF.svg
Former-US-Army.svg
Former-EU-Parliament.svg
Former-UK-Parliament.svg
Former-UK-HoL.svg
Former-UK-HoC.svg
Former-HM-Govt.svg
Former-Conservatives.svg
Former-Thinktank.svg
Former-Media.svg
Former-Senedd-Cymru.svg