Difference between revisions of "Template:img/doc"
Jump to navigation
Jump to search
m (→Usage) |
m (→Example) |
||
| Line 16: | Line 16: | ||
</pre> | </pre> | ||
| − | === | + | === Examples === |
<pre>{{img|Financial-Weapons-of-Mass-Destruction.png|100|100|border=#808080}}</pre> | <pre>{{img|Financial-Weapons-of-Mass-Destruction.png|100|100|border=#808080}}</pre> | ||
Gives: | Gives: | ||
{{img|Financial-Weapons-of-Mass-Destruction.png|100|100|border=#808080}} | {{img|Financial-Weapons-of-Mass-Destruction.png|100|100|border=#808080}} | ||
| + | {{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 23:24, 10 June 2018
Simple template to make my life easier.
Path is set to http://wikipolitiks.local/Images/
Usage
{{img
|image-name.png - the filename of the image
|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
}}
Examples
{{img|Financial-Weapons-of-Mass-Destruction.png|100|100|border=#808080}}
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]}}
Gives:
