Template: DisambigImgBox

From Trekipedia
Jump to: navigation, search
m
m
 
(13 intermediate revisions by the same user not shown)
Line 1: Line 1:
<div style="width:{{{boxwidth|280px}}};float:{{{float|left}}};{{{boxother}}}">
+
<div style="width:{{{boxwidth|30%}}};margin-right:0.2em;float:{{{float|left}}};{{{boxother}}}">
<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-left,margin-right:auto;margin-bottom:.1em;">{{{timeline}}}</div>
<div class="BoxOutline ButtonBottom" style="width:{{{imgboxwidth|260px}}};{{{imgboxother}}}">
+
<div class="BoxOutline ButtonBottom" style="width:100%;{{{imgboxother}}}">
<div style="text-align:center;margin:5px;">[[File:{{{imgname}}}.jpg|{{{size|250x250px}}}|link={{{link}}}|{{{caption}}}]]<br/>{{{caption}}}</div>
+
<div style="text-align:center;margin:auto;margin-top:5px;">[[File:{{{imgname|trekipedia-16x9.jpg}}}|link={{{link}}}|{{{caption}}}|class=img-responsive]]<br/>[[{{{link}}}|{{{caption}}}]]</div>
 
</div>
 
</div>
 
</div><noinclude>
 
</div><noinclude>
 
{{Clear}}
 
{{Clear}}
{ {DisambigImgBox|boxwidth=|float=|boxother=|timeline=|imgboxwidth=|imgboxother=|imgname=|size=|link=|caption=} }
+
&#123;&#123;DisambigImgBox|boxwidth=|float=|boxother=|timeline=|imgboxother=|imgname=|size=|link=|caption=&#125;&#125;
  
 
Variables:
 
Variables:
* boxwidth (default 280px)
+
* boxwidth (default 30%)
 
* float (right/left/center) (default left)
 
* float (right/left/center) (default left)
 
* boxother (misc CSS elements)
 
* boxother (misc CSS elements)
 
* timeline
 
* timeline
* imgboxwidth (default 260px)
+
* imgboxwidth (default 100%)
 
* imgboxother (misc CSS elements)
 
* imgboxother (misc CSS elements)
* imgname
+
* imgname (default Trekipedia logo)
* size (default 250x250px)
+
* border (in pixels; default 1)
 
* link
 
* link
 
* caption
 
* caption

Latest revision as of 16:25, 23 March 2023

{{{timeline}}}
{{{caption}}}
[[{{{link}}}|{{{caption}}}]]

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

Variables:

  • boxwidth (default 30%)
  • float (right/left/center) (default left)
  • boxother (misc CSS elements)
  • timeline
  • imgboxwidth (default 100%)
  • imgboxother (misc CSS elements)
  • imgname (default Trekipedia logo)
  • border (in pixels; default 1)
  • link
  • caption