Template:Thumb

From CruisersWiki

(Difference between revisions)
Jump to: navigation, search
(to my sick leave)
(height|)
 
(20 intermediate revisions not shown)
Line 1: Line 1:
-
[[Image:{{{1}}} | thumb | 345px | right | {{{2}}} ]]<noinclude>
+
<includeonly>{{if
 +
  | test= {{filepath:{{{1}}}}}
 +
  | then= [[Image:{{{1}}}|thumb|{{?|test={{{height|}}}|1000x{{{height|}}}|{{? | test= {{{3|}}}|{{{3}}}|345px}}}}|{{{align|right}}}|{{{2|}}}]]
 +
  | else= {{wikipedia image|{{{1}}}|{{{2|}}}|width={{if |test={{{3|}}} | then={{{3}}} | else={{?|test={{{height|}}}||345px}}}}|height={{{height|}}}|thumb={{{align|right}}}}}
 +
  }}</includeonly><noinclude>
 +
{{doc}}
-
Copy & paste:
+
[[Category:Templates|Image right]]
-
<pre><nowiki>{{image right||}}</nowiki></pre>
+
-
 
+
-
Example:
+
-
<pre><nowiki>{{image right|Favignana.jpg|Cala Principale, Favignana}}</nowiki></pre>
+
-
 
+
-
Gives:
+
-
{{image right|Favignana.jpg|Cala Principale, Favignana}}
+
</noinclude>
</noinclude>

Latest revision as of 13:42, 14 August 2017

Cala Principale, Favignana

This template puts a standard thumbnail of an image at the right side of the page:

Copy and paste:

{{thumb| | }}

Example:

{{thumb|Favignana.jpg|Cala Principale, Favignana}}
EU-Italy.svg
Magnify-clip.png
Location of Italy (dark green) in Europe

This one displays an image from Wikimedia Commons (Wikipedia):

{{thumb|EU-Italy.svg|Location of Italy (dark green) in Europe}}
Personal tools
advertisement
Friends of Cruisers Wiki