Difference between revisions of "Template:img/doc"
Jump to navigation
Jump to search
m |
m |
||
| Line 6: | Line 6: | ||
</pre> | </pre> | ||
| − | + | ==== Tmp ==== | |
| + | * XXXX<span style="margin-right:20px; margin-left:20px;"><img src="http://wikipolitiks.local/Images/Compass.svg" width="60" height="20"></span>XXXX | ||
Revision as of 03:19, 4 April 2019
<< Template:img
Simple template to make my life easier.
Path is set to {{SERVER}}/Images/
Tmp
- XXXX
XXXX
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, with a 10px right margin.
|ml - optional margin-left. If left empty, the default is 10px.
|mr - optional margin-right. If left empty, the default is 10px.
|border - optional border colour
|caption - optional image caption
|round - optionally round. Must use square images for this to work nicely.
}}
Examples
Testing float=none, margin-left=8px, margin-right=20px: XXXXXXXXXX
{{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:
