Difference between revisions of "Template:Tall image"

From eRepublik Official Wiki
Jump to: navigation, search
m
 
m (removed extra line of space)
 
Line 7: Line 7:
 
<div class="thumbinner"><div class="overflowbugy" style="height:{{{3|500}}}px;overflow:auto;">[[Image:{{{1}}}|{{{2|250}}}px|alt={{{alt|}}}|Use the scrollbar to see the full image.]]
 
<div class="thumbinner"><div class="overflowbugy" style="height:{{{3|500}}}px;overflow:auto;">[[Image:{{{1}}}|{{{2|250}}}px|alt={{{alt|}}}|Use the scrollbar to see the full image.]]
 
</div>{{#if:{{{4|}}}|<div class="thumbcaption">{{Magnify|link=:File:{{{1}}} }}<!-- -->{{{4|}}}</div>}}
 
</div>{{#if:{{{4|}}}|<div class="thumbcaption">{{Magnify|link=:File:{{{1}}} }}<!-- -->{{{4|}}}</div>}}
</div></div></includeonly>
+
</div></div></includeonly><noinclude>
 
+
===Usage===
<noinclude>===Usage===
+
 
<pre>{{Tall image|name|image width|box height|alt=alt text|caption|alignment}}</pre>
 
<pre>{{Tall image|name|image width|box height|alt=alt text|caption|alignment}}</pre>
  

Latest revision as of 13:03, 24 January 2019

Usage

{{Tall image|name|image width|box height|alt=alt text|caption|alignment}}

The name is the name of the image without any preceding "File:" or "Image:".

The image width option is optional, but must be given in pixels without the "px". It will set the width of the image to that amount. Default is 250px.

The box height option is optional, but must be given in pixels without the "px". It will set the height of the box containing the image to that amount. Default is 500px.

The alt text describes the image to visually-impaired readers and should have little in common with any caption.

The caption option is optional, and an image frame will be used if a caption is supplied. If the caption contains an equal sign, use the parameter |3=caption in the place of |caption. If the caption supplied is exactly equal to image syntax such as thumb, the image's tooltip will no longer display the caption, but instead default to the name of the image.

The alignment option is also optional but requires box width to be defined. If given a value of right or left, it will align the entire wide image frame respectively. Default is right, use none for in-line.