Template:ImageWithCaptionRight

From Proteopedia

(Difference between revisions)
Jump to: navigation, search
(a template to float an image to the right with a caption below, all inside a frame)
(documenting)
Line 1: Line 1:
 +
<noinclude>
 +
Positions to the right an image with its caption below it, both surrounded with a line, and text outside flowing around.
 +
1st parameter: image filename in the wiki.
 +
2nd parameter: width (size) in pixels.
 +
3rd parameter: the caption text.
 +
</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;">
[[Image:{{{1}}}|{{{2}}}px]]
[[Image:{{{1}}}|{{{2}}}px]]

Revision as of 19:58, 4 December 2024

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

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

{{{3}}}

Proteopedia Page Contributors and Editors (what is this?)

Angel Herraez

Personal tools