Template: DisambigImgBox

From Trekipedia
Jump to: navigation, search
m
m
Line 2: Line 2:
 
<div class="HeaderRow ButtonTop GreenBG" style="text-align:center;font-variant:small-caps;font-size:1.5em;color:#000;margin-bottom:.1em;">{{{timeline}}}</div>
 
<div class="HeaderRow ButtonTop GreenBG" style="text-align:center;font-variant:small-caps;font-size:1.5em;color:#000;margin-bottom:.1em;">{{{timeline}}}</div>
 
<div class="BoxOutline ButtonBottom" style="width:{{{imgboxwidth|260px}}};{{{imgboxother}}}">
 
<div class="BoxOutline ButtonBottom" style="width:{{{imgboxwidth|260px}}};{{{imgboxother}}}">
<div style="text-align:center;margin:5px;">[[File:{{{imgname}}}.jpg|{{{size|250x250px}}}|link={{{link}}}|{{{caption}}}]]<br/>[[{{{link}}}|{{{caption}}}]]</div>
+
<div style="text-align:center;margin:5px;">[[File:{{{imgname}}}.jpg|{{{size|250x250px}}}|border={{{border|1}}}px|link={{{link}}}|{{{caption}}}]]<br/>[[{{{link}}}|{{{caption}}}]]</div>
 
</div>
 
</div>
 
</div><noinclude>
 
</div><noinclude>
Line 17: Line 17:
 
* imgname
 
* imgname
 
* size (default 250x250px)
 
* size (default 250x250px)
 +
* border (in pixels; default 1)
 
* link
 
* link
 
* caption
 
* caption

Revision as of 19:28, 28 April 2020

{{{timeline}}}
[[File:{{{imgname}}}.jpg|250x250px|border=1px|link={{{link}}}|{{{caption}}}]]
[[{{{link}}}|{{{caption}}}]]

{ {DisambigImgBox|boxwidth=|float=|boxother=|timeline=|imgboxwidth=|imgboxother=|imgname=|size=|link=|caption=} }

Variables:

  • boxwidth (default 280px)
  • float (right/left/center) (default left)
  • boxother (misc CSS elements)
  • timeline
  • imgboxwidth (default 260px)
  • imgboxother (misc CSS elements)
  • imgname
  • size (default 250x250px)
  • border (in pixels; default 1)
  • link
  • caption