Template: ImageBox

From Trekipedia
Jump to: navigation, search
m
m
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{BoxOutline|width=360px|float={{{float|right}}} }}
+
{{BoxOutline|width={{{width|360px}}}|float={{{float|right}}}|other={{{other}}} }}
 
<div style="text-align:center;">
 
<div style="text-align:center;">
[[File:{{{imgname}}}.jpg|350x350px|{{{caption}}}]]<br/>{{{caption}}}
+
[[File:{{{imgname}}}.jpg|{{{imgwidth|350x350px}}}|{{{caption}}}]]<br/>{{{caption}}}
 
</div>
 
</div>
 
</div>
 
</div>
 
<noinclude>
 
<noinclude>
 
Variables:
 
Variables:
 +
* width (default=360px)
 
* float (default=right)
 
* float (default=right)
 +
* other (e.g. clear:right;)
 
* imgname
 
* imgname
 +
* imgwidth (default=350x350px)
 
* caption
 
* caption
 
[[Category:Templates]]
 
[[Category:Templates]]
 +
[[Category:Layout Templates]]
 
</noinclude>
 
</noinclude>

Latest revision as of 18:01, 29 August 2019

[[File:{{{imgname}}}.jpg|350x350px|{{{caption}}}]]
{{{caption}}}

Variables:

  • width (default=360px)
  • float (default=right)
  • other (e.g. clear:right;)
  • imgname
  • imgwidth (default=350x350px)
  • caption