Template:CaptionedImage
Wildwinter (talk | contribs) No edit summary |
(How to set the height. (Bad hack workaround)) |
||
Line 3: | Line 3: | ||
<pre> | <pre> | ||
{{CaptionedImage|file=FileName.jpg|title=A popup title|caption=A caption underneath|align=right or left or center or none|width=pixels}} | {{CaptionedImage|file=FileName.jpg|title=A popup title|caption=A caption underneath|align=right or left or center or none|width=pixels}} | ||
</pre> | |||
'''NOTE:''' You can set the ''height'' of an image by abusing the ''width'' parameter by putting an "x" before the value, like this: | |||
<pre> | |||
{{CaptionedImage|file=FileName.jpg|title=A popup title|caption=A 200px high image underneath|align=right or left or center or none|width=x200}} | |||
</pre> | </pre> | ||
</noinclude> | </noinclude> | ||
<includeonly><div class="captioned-image captioned-image-{{{align|none}}}">[[File:{{{file}}}|{{{width|187}}}px|{{{title|}}}]]<div class="caption">{{{caption|}}}</div></div></includeonly> | <includeonly><div class="captioned-image captioned-image-{{{align|none}}}">[[File:{{{file}}}|{{{width|187}}}px|{{{title|}}}]]<div class="caption">{{{caption|}}}</div></div></includeonly> |
Revision as of 20:16, 24 April 2016
Usage
{{CaptionedImage|file=FileName.jpg|title=A popup title|caption=A caption underneath|align=right or left or center or none|width=pixels}}
NOTE: You can set the height of an image by abusing the width parameter by putting an "x" before the value, like this:
{{CaptionedImage|file=FileName.jpg|title=A popup title|caption=A 200px high image underneath|align=right or left or center or none|width=x200}}