Template: ImgLink

From Trekipedia
Jump to: navigation, search
m
m
Line 10: Line 10:
 
[[Category:Layout Templates]]
 
[[Category:Layout Templates]]
 
</noinclude>
 
</noinclude>
<div style="text-align:center;float:left;margin-right:0.5em;{{{width|250px}}};{{{other}}}">
+
<div style="text-align:center;float:left;margin-right:0.5em;width:{{{width|250px}}};{{{other}}}">
 
[[File:{{{imgname}}}.jpg|{{{size|x250px}}}|link={{{link}}}|{{{caption}}}]]<br/>{{{caption}}}
 
[[File:{{{imgname}}}.jpg|{{{size|x250px}}}|link={{{link}}}|{{{caption}}}]]<br/>{{{caption}}}
 
</div>
 
</div>

Revision as of 18:41, 5 October 2020

Variables:

  • imgname
  • size (default x250px)
  • link
  • caption
  • width (default 250px)
  • other

[[File:{{{imgname}}}.jpg|x250px|link={{{link}}}|{{{caption}}}]]
{{{caption}}}