Template:ImageWithCaptionRight: Difference between revisions
From Proteopedia
Jump to navigationJump to search
documenting |
documenting |
||
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
Positions to the right an image with its caption below it, both surrounded with a line, and text outside flowing around. | Positions to the right an image with its caption below it, both surrounded with a line, and text outside flowing around. Backgorund of the box is black to prevent things showing through, like lines attached to section titles. | ||
1st parameter: image filename in the wiki. | 1st parameter: image filename in the wiki. | ||
2nd parameter: width (size) in pixels. | 2nd parameter: width (size) in pixels. | ||
3rd parameter: the caption text. | 3rd parameter: the caption text. | ||
Use: | |||
<nowiki>{{ImageWithCaptionRight|SomeImage.jpg|300|Some caption.}}</nowiki> | |||
See also: [[Template:ImageWithCaption]] for centered images. | |||
</noinclude> | </noinclude> | ||
<div style="text-align:center; border:1px solid gray; display:table; float:right; margin-left:1em; padding:2px 8px; width:calc({{{2}}}px + 2px); background:white;"> | <div style="text-align:center; border:1px solid gray; display:table; float:right; margin-left:1em; padding:2px 8px; width:calc({{{2}}}px + 2px); background:white;"> | ||
Latest revision as of 20:06, 4 December 2024
Positions to the right an image with its caption below it, both surrounded with a line, and text outside flowing around. Backgorund of the box is black to prevent things showing through, like lines attached to section titles. 1st parameter: image filename in the wiki. 2nd parameter: width (size) in pixels. 3rd parameter: the caption text.
Use:
{{ImageWithCaptionRight|SomeImage.jpg|300|Some caption.}}
See also: Template:ImageWithCaption for centered images.
[[Image:{{{1}}}|{{{2}}}px]]
{{{3}}}