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 15: Line 15:
-->{{#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:{{{image|}}}}}}]]}}<!--
-->{{#switch:{{lc:{{{type|}}}}}
-->{{#switch:{{lc:{{{type|}}}}}
    |frameless=[[File:{{{image|}}}|{{#var:imagesize}}|{{#var:align}}|{{{title|{{{caption|}}}}}} | {{#var:link}} | alt={{{alt|File:{{{image|}}}}}}]]
     |caption=<div class="thumb t{{#var:align}}"><!--
     |caption=<div class="thumb t{{#var:align}}"><!--
     --><div class="thumbinner" style="background-color: transparent !important; border: none !important; width:{{#var:imagesize}};" title="{{{title|{{{caption|}}}}}}"> {{#var:image}}<!--
     --><div class="thumbinner" style="background-color: transparent !important; border: none !important; width:{{#var:imagesize}};" title="{{{title|{{{caption|}}}}}}"> {{#var:image}}<!--
Line 59: Line 58:
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|image|The desired image. Do not include a File prefix.|Required}}
{{parameter|type|The type of display for the image. Choices are ''frameless'', ''thumb'', ''normal'', and ''caption''. ''Frameless'' displays the image without any boxes or captions. ''Thumb'' displays the image in the traditional thumbnail box. ''Normal'' just displays the image without any special boxes or containers. ''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}}
{{parameter|scale|Use this if you instead wish to limit the overall size of the image to a certain pixel or percentage amount. Enter as a pixel number followed by a '''px''', or as a percentage number followed by a '''%'''. This will keep the image's dimensions within the specified amount.|optional}}  
{{parameter|scale|Use this if you instead wish to limit the overall size of the image to a certain pixel or percentage amount. Enter as a pixel number followed by a '''px''', or as a percentage number followed by a '''%'''. This will keep the image's dimensions within the specified amount.|optional}}  

Navigation menu