Template:ClickToEnlarge View history

No edit summary
No edit summary
 
(14 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><center><table style="border: 1px solid #CCCCCC; font-size: small;text-align: center;"><tr><td><table style="border: 1px solid #CCCCCC;"><tr><td>[[File:{{{File|}}}|{{{size|150px}}}|center|link=https://wiki.waze.com/wiki/images/3/33/{{{Link|{{{File|}}}}}]]</td></tr></table>Click on this thumbnail to enlarge</td></tr></table></center></includeonly><noinclude>{{Documentation}}</noinclude>
<includeonly>{{#ifeq:{{{Align|}}}|left|<div style="float:left;padding-right:{{{Margin|10px}}}">|
{{#ifeq:{{{Align|}}}|right|<div style="float:right;padding-left:{{{Margin|10px}}}">|{{#ifeq:{{{Align|}}}|center|<center>|}}}}}}<table style="border: 1px solid #CCCCCC; font-size: small;text-align: center;"><tr><td align="center"><table style="border: 1px solid #CCCCCC;"><tr><td align="center">
[[File:{{{File|NOK.png}}}|{{{Size|180px}}}|center|link={{{Link|ERROR_NO_LINK}}}]]
</td></tr></table>Click on this thumbnail to enlarge</td></tr></table>{{#ifeq:{{{Align|}}}|left|</div>|{{#ifeq:{{{Align|}}}|right|</div>|{{#ifeq:{{{Align|}}}|center|</center>|}}}}}}</includeonly><noinclude>{{Documentation}}</noinclude>

Latest revision as of 13:35, 15 April 2016

Documentation icon Template documentation[view] [edit] [history] [purge]

The purpose is to provide an equivalent of the classic Thumbnail generated by the thumn mediawiki syntax, but providing a way to go directly to the enlarged version of the picture without landing in the File page (with the versions, and all non-relevant element for the targeted purpose : get a wider picture)

{{ClickToEnlarge
|File=picture filename - mandatory
|Link=link to the enlarged picture - mandatory
|Size=size with the "px" suffix - optional, default value is 180px
|Align=left or center'' or right
}}


About alignement:

  • left provide a floating-left picture, following text will start on its immediate right. If you don't want the "floating" feature, just ignore this parameter. The picture will be aligned left, in block mode.
  • right provide a floating-right picture, following text will start on its immediate left. If you don't want the "floating" feature, add a
    template just after this template.
  • center provide a block mode centered picture. No floating effect.

exemple:

Click on this thumbnail to enlarge
The above documentation is transcluded from Template:ClickToEnlarge/doc.
Please add categories to the /doc subpage.
Subpages of this template.