Difference between revisions of "Template:img/doc"

From WikiCorporates
Jump to navigation Jump to search
m (→‎Examples)
m
Line 1: Line 1:
 
<< [[Template:img]]
 
<< [[Template:img]]
  
−
Simple template to make my life easier.
+
Simple template to format and display images that have not been uploaded. Path is set to <code><nowiki>{{SERVER}}/Images/</nowiki></code>
−
<pre>
+
 
−
Path is set to {{SERVER}}/Images/
+
==== Examples ====
 +
{{img|Financial-Weapons-of-Mass-Destruction.png|100|100|border=#808080|caption=Financial Weapons of Mass Destruction}}
 +
<pre style="margin-right:12em;">
 +
{{img|Financial-Weapons-of-Mass-Destruction.png|100|100|border=#808080
 +
|caption=Financial Weapons of Mass Destruction]}}
 
</pre>
 
</pre>
 +
{{Clear}}
  
−
==== Tmp ====
+
{{img|Cannabis-Law-Reform.svg|103|100|border=#808080}}
−
1. New information is coming out increasingly, to show the relationship between air pollution and infertility. <span style="margin-right:10px; margin-left:10px; border:1px solid red;"><img src="http://wikipolitiks.local/Images/Compass.svg" width="60" height="20"></span> It is currently estimated by the CDC that 6.7 million women have impaired ability to get pregnant or to carry a baby to term.<br/>
+
<pre style="margin-right:12em;">{{img|Cannabis-Law-Reform.svg|103|100|border=#808080}}</pre>
−
2. <span style="float:right; margin-left:10px; border:1px solid red;"><img src="http://wikipolitiks.local/Images/Compass.svg" width="60" height="20"></span> New information is coming out increasingly, to show the relationship between air pollution and infertility. It is currently estimated by the CDC that 6.7 million women have impaired ability to get pregnant or to carry a baby to term.<br/>
+
{{Clear}}
−
3. <span style="float:left; margin-right:10px; border:1px solid red;"><img src="http://wikipolitiks.local/Images/Compass.svg" width="60" height="20"></span> New information is coming out increasingly, to show the relationship between air pollution and infertility. It is currently estimated by the CDC that 6.7 million women have impaired ability to get pregnant or to carry a baby to term.
+
 
 +
'''Inline, with defaults margin-left=5px, margin-right=5px:'''  Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.{{img|Compass.svg|60|20|float=none|border=red}} Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
 +
 
 +
'''Inline, with user-set margin-left=0px, and default margin-right=5px:'''  Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.{{img|Compass.svg|60|20|ml=0|float=none|border=red}} Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
 +
 
 +
{{img|Compass.svg|60|20|border=red}} '''Float right, with default margin-left=10px:''' <code><nowiki>{{img|Compass.svg|60|20|border=red}}</nowiki></code> {{Lorem ipsum}}
 +
 
 +
{{img|Compass.svg|60|20|ml=20|mr=50|border=red}} '''Float right, with user-set margin-left=20px and margin-right=30px:''' <code><nowiki>{{img|Compass.svg|60|20|ml=20|mr=50|border=red}}</nowiki></code> {{Lorem ipsum}}
 +
 
 +
 
 +
 
 +
# <span style="float:left; margin-right:10px; border:1px solid red;"><img src="http://wikipolitiks.local/Images/Compass.svg" width="60" height="20"></span> New information is coming out increasingly, to show the relationship between air pollution and infertility. It is currently estimated by the CDC that 6.7 million women have impaired ability to get pregnant or to carry a baby to term.
 
{{hline}}
 
{{hline}}
−
4. <div style="width:60px; margin-right:10px; margin-left:10px; border:1px solid red;"><img src="http://wikipolitiks.local/Images/Compass.svg" width="60" height="20"></div> New information is coming out increasingly, to show the relationship between air pollution and infertility. It is currently estimated by the CDC that 6.7 million women have impaired ability to get pregnant or to carry a baby to term. <br/>
+
# <div style="width:60px; margin-right:10px; margin-left:10px; border:1px solid red;"><img src="http://wikipolitiks.local/Images/Compass.svg" width="60" height="20"></div> New information is coming out increasingly, to show the relationship between air pollution and infertility. It is currently estimated by the CDC that 6.7 million women have impaired ability to get pregnant or to carry a baby to term. <br/>
−
5. <div style="float:left; margin-right:10px; margin-left:10px; border:1px solid red;"><img src="http://wikipolitiks.local/Images/Compass.svg" width="60" height="20"></div> New information is coming out increasingly, to show the relationship between air pollution and infertility. It is currently estimated by the CDC that 6.7 million women have impaired ability to get pregnant or to carry a baby to term. <br/>
+
# <div style="float:left; margin-right:10px; margin-left:10px; border:1px solid red;"><img src="http://wikipolitiks.local/Images/Compass.svg" width="60" height="20"></div> New information is coming out increasingly, to show the relationship between air pollution and infertility. It is currently estimated by the CDC that 6.7 million women have impaired ability to get pregnant or to carry a baby to term. <br/>
−
6. <div style="float:right; margin-left:10px; margin-right:10px; border:1px solid red;"><img src="http://wikipolitiks.local/Images/Compass.svg" width="60" height="20"></div> New information is coming out increasingly, to show the relationship between air pollution and infertility. It is currently estimated by the CDC that 6.7 million women have impaired ability to get pregnant or to carry a baby to term.
 
 
{{hline}}
 
{{hline}}
−
7. <div style="text-align:center; font-size:80%; width:60px; border:1px solid red;"><img src="http://wikipolitiks.local/Images/Compass.svg" width="60" height="20">A caption.</div> New information is coming out increasingly, to show the relationship between air pollution and infertility. It is currently estimated by the CDC that 6.7 million women have impaired ability to get pregnant or to carry a baby to term. <br/>
+
# <div style="text-align:center; font-size:80%; width:60px; border:1px solid red;"><img src="http://wikipolitiks.local/Images/Compass.svg" width="60" height="20">A caption.</div> New information is coming out increasingly, to show the relationship between air pollution and infertility. It is currently estimated by the CDC that 6.7 million women have impaired ability to get pregnant or to carry a baby to term. <br/>
−
8. <div style="float:right; margin-left:10px; text-align:center; font-size:80%; width:60px; border:1px solid red;"><img src="http://wikipolitiks.local/Images/Compass.svg" width="60" height="20">A caption.</div> New information is coming out increasingly, to show the relationship between air pollution and infertility. It is currently estimated by the CDC that 6.7 million women have impaired ability to get pregnant or to carry a baby to term. <br/>
+
# <div style="float:left; margin-right:10px; text-align:center; font-size:80%; width:60px; border:1px solid red;"><img src="http://wikipolitiks.local/Images/Compass.svg" width="60" height="20">A caption.</div> New information is coming out increasingly, to show the relationship between air pollution and infertility. It is currently estimated by the CDC that 6.7 million women have impaired ability to get pregnant or to carry a baby to term.
−
9. <div style="float:left; margin-right:10px; text-align:center; font-size:80%; width:60px; border:1px solid red;"><img src="http://wikipolitiks.local/Images/Compass.svg" width="60" height="20">A caption.</div> New information is coming out increasingly, to show the relationship between air pollution and infertility. It is currently estimated by the CDC that 6.7 million women have impaired ability to get pregnant or to carry a baby to term.
 
 
{{hline}}
 
{{hline}}
  
Line 38: Line 52:
 
Testing float=none, margin-left=8px, margin-right=20px:  XXXXX{{img|Compass.svg|60|20|float=none|ml=8px|mr=20px}}XXXXX
 
Testing float=none, margin-left=8px, margin-right=20px:  XXXXX{{img|Compass.svg|60|20|float=none|ml=8px|mr=20px}}XXXXX
  
−
<pre>{{img|Financial-Weapons-of-Mass-Destruction.png|100|100|border=#808080}}
+
 
−
{{img|Cannabis-Law-Reform.svg|103|100|border=black}}
+
 
−
</pre>
 
−
Gives:
 
−
{{img|Financial-Weapons-of-Mass-Destruction.png|100|100|border=#808080}}
 
−
{{img|Cannabis-Law-Reform.svg|103|100|border=black}}
 
  
 
<pre>
 
<pre>
−
{{img
+
{{img|Toy-Factory-Wages.png|200|217|border=red
−
|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]}}
 
|caption=[http://www.chrismadden.co.uk/cartoon-gallery/exploitation-of-factory-workers-in-the-developing-world/ Need to pay £4 for this]}}
 
</pre>
 
</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]}}
−
{{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 21:53, 4 April 2019

<< Template:img

Simple template to format and display images that have not been uploaded. Path is set to {{SERVER}}/Images/

Examples

Financial Weapons of Mass Destruction
{{img|Financial-Weapons-of-Mass-Destruction.png|100|100|border=#808080
|caption=Financial Weapons of Mass Destruction]}}

{{img|Cannabis-Law-Reform.svg|103|100|border=#808080}}

Inline, with defaults margin-left=5px, margin-right=5px: Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Inline, with user-set margin-left=0px, and default margin-right=5px: Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Float right, with default margin-left=10px: {{img|Compass.svg|60|20|border=red}} Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Float right, with user-set margin-left=20px and margin-right=30px: {{img|Compass.svg|60|20|ml=20|mr=50|border=red}} Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.


  1. New information is coming out increasingly, to show the relationship between air pollution and infertility. It is currently estimated by the CDC that 6.7 million women have impaired ability to get pregnant or to carry a baby to term.

  1. New information is coming out increasingly, to show the relationship between air pollution and infertility. It is currently estimated by the CDC that 6.7 million women have impaired ability to get pregnant or to carry a baby to term.
  2. New information is coming out increasingly, to show the relationship between air pollution and infertility. It is currently estimated by the CDC that 6.7 million women have impaired ability to get pregnant or to carry a baby to term.

  1. A caption.
    New information is coming out increasingly, to show the relationship between air pollution and infertility. It is currently estimated by the CDC that 6.7 million women have impaired ability to get pregnant or to carry a baby to term.
  2. A caption.
    New information is coming out increasingly, to show the relationship between air pollution and infertility. It is currently estimated by the CDC that 6.7 million women have impaired ability to get pregnant or to carry a baby to term.

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|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]}}
Need to pay £4 for this