Template:Image: Difference between revisions

Jump to navigation Jump to search
Want an adless experience? Log in or Create an account.
m
Text replacement - "<br>" to "<br/>"
mNo edit summary
m (Text replacement - "<br>" to "<br/>")
 
(3 intermediate revisions by one other user not shown)
Line 13: Line 13:
     }}
     }}
   }}<!--
   }}<!--
-->{{#vardefine:image|[[File:{{{file|}}}|{{#var:imagesize}}|{{{title|{{{caption|{{#var:link}}}}}}}}|{{#var:link}}|alt={{{alt|File:{{{file|}}}}}}]]}}<!--
-->{{#vardefine:image|[[File:{{{file|}}}{{#if:{{#var:imagesize}}|{{!}}{{#var:imagesize}}}}|{{#var:link}}|alt={{{alt|File:{{{file|}}}}}}]]}}<!--
-->{{#switch:{{lc:{{{type|}}}}}
-->{{#switch:{{lc:{{{type|}}}}}
     |caption=<div class="thumb t{{#var:align}}"><!--
     |caption=<div class="thumb t{{#var:align}}"><!--
Line 24: Line 24:
     --><div class="magnify" style="margin-left:5px">[[File:Magnify-clip.png|link=File:{{{file}}}|Enlarge]]</div>{{{caption|}}}<!--
     --><div class="magnify" style="margin-left:5px">[[File:Magnify-clip.png|link=File:{{{file}}}|Enlarge]]</div>{{{caption|}}}<!--
     --></div></div></div>
     --></div></div></div>
     |normal|#default=<div title="{{{title|{{{caption|}}}}}}" align="{{#var:align}}" style="float:{{#var:align}}"> {{#var:image}}<!--
     |normal|#default=<div title="{{{title|{{{caption|{{#explode:{{#var:link}}|=|1}}}}}}}}" align="{{#var:align}}" style="float:{{#var:align}}">{{#var:image}}<!--
     --></div>
     --></div>
     }}
     }}
Line 67: Line 67:
{{parameter|alt|The text that is displayed when the image fails to load.|Optional|Defaults to the file name.}}
{{parameter|alt|The text that is displayed when the image fails to load.|Optional|Defaults to the file name.}}
{{parameter|link|The desired link. Can be internal or external. If you set this to "''none''", then the image will not create a link at all. Note: This only changes the image's link and it does not effect the enlarge link in image thumbnails. |Optional|Defaults to the image's page if left blank.}}
{{parameter|link|The desired link. Can be internal or external. If you set this to "''none''", then the image will not create a link at all. Note: This only changes the image's link and it does not effect the enlarge link in image thumbnails. |Optional|Defaults to the image's page if left blank.}}
 
==Examples==
<u><b>Basic</b></u>
<div style="float:left; margin-right:20px"><pre>
{{Image|file=Magic-Hammer.png}}
</pre></div>
{{clear}}
{{Image|file=Magic-Hammer.png}}
{{clear}}<br/>
<u><b>Thumbnail</b></u>
<div style="float:left; margin-right:20px"><pre>
{{Image|file=Magic-Hammer.png|type=thumb|caption=Magic Hammer from A Link to the Past.}}
</pre></div><br/>
{{Image|file=Magic-Hammer.png|type=thumb|caption=Magic Hammer from A Link to the Past.}}
{{clear}}<br/>
<u><b>Caption</b></u>
<div style="float:left; margin-right:20px"><pre>
{{Image|file=Magic-Hammer.png|type=caption|caption=Magic Hammer from A Link to the Past.}}
</pre></div><br/>
{{Image|file=Magic-Hammer.png|type=caption|caption=Magic Hammer from A Link to the Past.}}
{{clear}}


{{Cat|Formatting Templates}}
{{Cat|Formatting Templates}}
</noinclude>
</noinclude>

Navigation menu