Template:Image: Difference between revisions

Jump to navigation Jump to search
Want an adless experience? Log in or Create an account.
m
no edit summary
mNo edit summary
mNo edit summary
Line 1: Line 1:
<includeonly>{{#if:{{{image|}}}|<!--
<includeonly>{{#if:{{{file|}}}|<!--
-->{{#vardefine:imagesize|
-->{{#vardefine:imagesize|
       {{#if:{{{scale|}}}
       {{#if:{{{scale|}}}
         |{{ImageSize|File:{{{image|}}}|{{{scale|}}}}}
         |{{ImageSize|File:{{{file|}}}|{{{scale|}}}}}
         |{{Percent|{{{image|}}}|{{{size|}}}}}
         |{{Percent|{{{file|}}}|{{{size|}}}}}
       }}
       }}
     }}<!--
     }}<!--
Line 10: Line 10:
     {{#ifeq:{{lc:{{{link|}}}}}|none
     {{#ifeq:{{lc:{{{link|}}}}}|none
       |link=
       |link=
       |link={{{link|File:{{{image}}}}}}
       |link={{{link|File:{{{file}}}}}}
     }}
     }}
   }}<!--
   }}<!--
-->{{#vardefine:image|[[File:{{{image|}}}|{{#var:imagesize}}|{{{title|{{{caption|}}}}}}|{{#var:link}}|alt={{{alt|File:{{{image|}}}}}}]]}}<!--
-->{{#vardefine:image|[[File:{{{image|}}}|{{#var:imagesize}}|{{{title|{{{caption|}}}}}}|{{#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 22: Line 22:
     --><div class="thumbinner" style="width:{{#var:imagesize}};" title="{{{title|{{{caption|}}}}}}"> {{#var:image}}<!--
     --><div class="thumbinner" style="width:{{#var:imagesize}};" title="{{{title|{{{caption|}}}}}}"> {{#var:image}}<!--
     --><div class="thumbcaption"><!--
     --><div class="thumbcaption"><!--
     --><div class="magnify" style="margin-left:5px">[[File:Magnify-clip.png|link=File:{{{image}}}|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|}}}}}}" align="{{#var:align}}" style="float:{{#var:align}}"> {{#var:image}}<!--
Line 43: Line 43:
<div style="float:right"><pre>
<div style="float:right"><pre>
{{Image
{{Image
|image       =  
|file       =  
|type        =  
|type        =  
|size        =  
|size        =  
Line 57: Line 57:


Here are descriptions of the parameters. Only the parameter "''image''" is actually required, the rest are optional.
Here are descriptions of the parameters. Only the parameter "''image''" is actually required, the rest are optional.
{{parameter|image|The desired image. Do not include a File prefix.|Required}}
{{parameter|file|The desired image. Do not include a File prefix.|Required}}
{{parameter|type|The type of display for the image. Choices are ''normal'', ''thumb'', and ''caption''. ''Normal'' displays the image without any boxes or captions. ''Thumb'' displays the image in the traditional thumbnail box. ''Caption'' displays the image without any frame but with a boxed caption below it.|Optional|Defaults to ''normal'' if left blank}}
{{parameter|type|The type of display for the image. Choices are ''normal'', ''thumb'', and ''caption''. ''Normal'' displays the image without any boxes or captions. ''Thumb'' displays the image in the traditional thumbnail box. ''Caption'' displays the image without any frame but with a boxed caption below it.|Optional|Defaults to ''normal'' if left blank}}
{{parameter|size|The size of the image. Enter as a pixel number followed by a '''px''', or as a percentage number followed by a '''%'''. To specify height instead of width, enter the size as ''x##px''.|Optional}}
{{parameter|size|The size of the image. Enter as a pixel number followed by a '''px''', or as a percentage number followed by a '''%'''. To specify height instead of width, enter the size as ''x##px''.|Optional}}

Navigation menu