Template:Thumb

From CruisersWiki

(Difference between revisions)
Jump to: navigation, search
m (moved Template:Image right to Template:Thumb: better reflects function)
Line 1: Line 1:
<includeonly>{{if
<includeonly>{{if
   | test= {{filepath:{{{1}}}}}
   | test= {{filepath:{{{1}}}}}
-
   | then= [[Image:{{{1}}}|thumb|{{? | test= {{{3|}}}|{{{3}}}|345px}}|alt=Click for larger view|right|{{{2|}}}]]
+
   | then= [[Image:{{{1}}}|thumb|{{? | test= {{{3|}}}|{{{3}}}|345px}}|{{{align|right}}}|{{{2|}}}]]
-
   | else= {{#Widget:commons image|file={{{1}}}|caption={{{2|}}}|width={{if |test={{{3|}}} | then={{{3}}} | else=345px}}|thumb=right}}
+
   | else= {{#Widget:commons image|file={{{1}}}|caption={{{2|}}}|width={{if |test={{{3|}}} | then={{{3}}} | else=345px}}|thumb={{{align|right}}}}}
   }}</includeonly><noinclude>
   }}</includeonly><noinclude>
{{doc}}
{{doc}}

Revision as of 13:24, 27 March 2016

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