Template: ImageBox2

From Trekipedia
Jump to: navigation, search
m
Line 1: Line 1:
{{BoxOutline|width={{{width|30%}}}|float={{{float|right}}}|other={{{other}}} }}
+
{{BoxOutline|width={{{width|350px}}}|float={{{float|right}}}|other={{{other}}} }}
<div class="res-img" style="text-align:center;">
+
<div class="banner-image {{#ifeq: {{{align|}}}|left| banner-image-left|}}{{#ifeq: {{{align|}}}|none| banner-image-none|}}{{#ifeq: {{{align|}}}|center| banner-image-center|}}" style="max-width:{{{width|350px}}};{{#ifeq: {{{padding|}}}|no|| padding-left:1.5em;}}">
[[File:{{{imgname}}}|frameless|upright=0.85|{{{caption}}}]]<br/>{{{caption}}}
+
[[File:{{{file|Federation-Historical-Society.png}}}|{{{width|350px}}}|{{#ifeq:{{{border|}}}|yes|border{{!}}}}alt={{{caption|}}}|{{#if:{{{link|}}}|link={{{link|}}}}}]]{{#if: {{{caption|}}}|
</div></div>
+
<p style="font-size: 90%;">
 +
{{{caption}}}
 +
</p>}}
 +
</div>
 +
 
 +
</div>
 
<noinclude>
 
<noinclude>
 
Variables:
 
Variables:
* width (default=30%)
+
* width (default=350px)
 
* float (default=right)
 
* float (default=right)
 
* other (e.g. clear:right;)
 
* other (e.g. clear:right;)
* imgname
+
* align
* imgwidth
+
* padding
 +
* file
 +
* border
 
* caption
 
* caption
 +
* link
 
[[Category:Templates]]
 
[[Category:Templates]]
 
[[Category:Layout Templates]]
 
[[Category:Layout Templates]]
 
</noinclude>
 
</noinclude>

Revision as of 04:30, 7 May 2020

Variables:

  • width (default=350px)
  • float (default=right)
  • other (e.g. clear:right;)
  • align
  • padding
  • file
  • border
  • caption
  • link