Template:CaptionedImage
(How to set the height. (Bad hack workaround)) |
m (Add proper height parameter) |
||
Line 2: | Line 2: | ||
== Usage == | == Usage == | ||
<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|width=pixels}} | ||
</pre> | </pre> | ||
If unspecified, the width is limited to 187px, and the height to 800px. | |||
</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}}}x{{{height|800}}}px|{{{title|}}}]]<div class="caption">{{{caption|}}}</div></div></includeonly> |
Revision as of 20:20, 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|width=pixels}}
If unspecified, the width is limited to 187px, and the height to 800px.