Template: ImgLink

From Trekipedia
Jump to: navigation, search
m (Admin moved page Template:DisambigImg to Template:ImgLink)
m
 
(3 intermediate revisions by the same user not shown)
Line 2: Line 2:
 
Variables:
 
Variables:
 
* imgname
 
* imgname
* size (default x250px)
 
 
* link
 
* link
 
* caption
 
* caption
 +
* width (default 23%)
 +
* other
 
[[Category:Templates]]
 
[[Category:Templates]]
 
[[Category:Layout Templates]]
 
[[Category:Layout Templates]]
 
</noinclude>
 
</noinclude>
<div style="text-align:center;float:left;margin-right:0.5em;">
+
<div style="text-align:center;float:left;margin-right:0.5em;width:{{{width|23%}}};{{{other}}}">
[[File:{{{imgname}}}.jpg|{{{size|x250px}}}|link={{{link}}}|{{{caption}}}]]<br/>{{{caption}}}
+
[[File:{{{imgname}}}.jpg|link={{{link}}}|{{{caption}}}|class=img-responsive]]<br/>{{{caption}}}
 
</div>
 
</div>

Latest revision as of 06:26, 14 April 2021

Variables:

  • imgname
  • link
  • caption
  • width (default 23%)
  • other

[[File:{{{imgname}}}.jpg|link={{{link}}}|{{{caption}}}|class=img-responsive]]
{{{caption}}}