Template:ImageWithCaption

From Proteopedia

(Difference between revisions)
Jump to: navigation, search
Current revision (20:05, 4 December 2024) (edit) (undo)
(documenting)
 
(7 intermediate revisions not shown.)
Line 1: Line 1:
-
<div style="text-align:center; border:1px solid gray; width:520px; display:table; margin:0 auto;">
+
<noinclude>
-
[[Image:{{{1}}}|{{{2}}}]]
+
Positions to the center an image with its caption below it, both surrounded with a line; text outside does not flow around.
 +
1st parameter: image filename in the wiki.
 +
2nd parameter: width (size) in pixels.
 +
3rd parameter: the caption text.
 +
 
 +
Use:
 +
<nowiki>{{ImageWithCaption|SomeImage.jpg|400|Some caption.}}</nowiki>
 +
 
 +
See also: [[Template:ImageWithCaptionRight]]
 +
</noinclude>
 +
<div style="text-align:center; border:1px solid gray; display:table; margin:0 auto; padding:2px 8px; width:calc({{{2}}}px + 2px);">
 +
[[Image:{{{1}}}|{{{2}}}px]]
{{{3}}}
{{{3}}}
</div>
</div>

Current revision

Positions to the center an image with its caption below it, both surrounded with a line; text outside does not flow around. 1st parameter: image filename in the wiki. 2nd parameter: width (size) in pixels. 3rd parameter: the caption text.

Use:

{{ImageWithCaption|SomeImage.jpg|400|Some caption.}}

See also: Template:ImageWithCaptionRight

[[Image:{{{1}}}|{{{2}}}px]]

{{{3}}}

Proteopedia Page Contributors and Editors (what is this?)

Angel Herraez

Personal tools