Template:Thumb
From CruisersWiki
(Difference between revisions)
(wikipedia image enhancement) |
(width) |
||
Line 2: | Line 2: | ||
| test= {{filepath:{{{1}}}}} | | test= {{filepath:{{{1}}}}} | ||
| then= [[Image:{{{1}}}|thumb|{{? | test= {{{3|}}}|{{{3}}}|345px}}|{{{align|right}}}|{{{2|}}}]] | | then= [[Image:{{{1}}}|thumb|{{? | test= {{{3|}}}|{{{3}}}|345px}}|{{{align|right}}}|{{{2|}}}]] | ||
- | | else= {{wikipedia image|{{{1}}}|{{{2|}}}|{{if |test={{{3|}}} | then={{{3}}} | else=345px}}|thumb={{{align|right}}}}} | + | | else= {{wikipedia image|{{{1}}}|{{{2|}}}|width={{if |test={{{3|}}} | then={{{3}}} | else=345px}}|thumb={{{align|right}}}}} |
}}</includeonly><noinclude> | }}</includeonly><noinclude> | ||
{{doc}} | {{doc}} |
Revision as of 13:23, 14 August 2017
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}}
This one displays an image from Wikimedia Commons (Wikipedia):
{{thumb|EU-Italy.svg|Location of Italy (dark green) in Europe}}