Template:Img: Difference between revisions

From Ragnafied Wiki
No edit summary
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
[[File:{{{file|}}}|thumb|{{#if:{{{width|}}}|{{{width}}}px|300px}}|{{#if:{{{align|}}}|{{{align}}}|center}}|{{{caption|}}}]]
{{Img
|file=MountFuji.jpg
|width=400
|caption=Beautiful Mount Fuji in spring
|align=right
}}
<div style="text-align:{{{align|center}}}; margin:10px;">
<div style="text-align:{{{align|center}}}; margin:10px;">
   [[File:{{{file|}}}|{{#if:{{{width|}}}|{{{width}}}px|300px}}|class=img-thumbnail]]
   {{#if:{{{file|}}}
  <div style="font-size:smaller; font-style:italic;">{{{caption|}}}</div>
  | <img src="{{{file}}}" style="max-width:{{{width|300}}}px;" />
  }}
  {{#if:{{{caption|}}}
  | <div style="font-size:smaller; font-style:italic;">{{{caption}}}</div>
  }}
</div>
</div>

Latest revision as of 19:51, 10 June 2025