Template:Figure: Difference between revisions

From OpenTreeID Help
Imported from the SquidWeb wiki
 
OpenTreeID version: ot- styles and OpenTreeID examples
 
Line 1: Line 1:
<div class="sq-figure" style="max-width:{{{width|455}}}px;">[[File:{{{file}}}|{{{width|455}}}px|link={{{link|File:{{{file}}}}}}|alt={{{alt|{{{caption|}}}}}}]]<div class="sq-figure__caption">{{{caption|}}}</div></div><noinclude>
<div class="ot-figure" style="max-width:{{{width|455}}}px;">[[File:{{{file}}}|{{{width|455}}}px|link={{{link|File:{{{file}}}}}}|alt={{{alt|{{{caption|}}}}}}]]<div class="ot-figure__caption">{{{caption|}}}</div></div><noinclude>
Screenshot card: bordered image with an caption strip. Put several inside [[Template:FigureRow]] to show them side by side.
Screenshot card: bordered image with a caption strip. Put several inside [[Template:FigureRow]] to show them side by side.


<pre>{{Figure|file=Octopodi-01-footer-bubble.jpg|width=455|caption=The octopus button in the footer bar}}</pre>
<pre>{{Figure|file=OTID-Trees-01-list.png|width=455|caption=The Trees list with its filters}}</pre>
 
Screenshot file names follow <code>OTID-&lt;Module&gt;-&lt;nn&gt;-&lt;what&gt;.png</code>, for example <code>OTID-Certificates-03-design-dialog.png</code>.
{| class="wikitable"
{| class="wikitable"
! Parameter !! Meaning
! Parameter !! Meaning

Latest revision as of 12:24, 23 October 2026

[[File:{{{file}}}|455px|link=File:{{{file}}}|alt=]]

Screenshot card: bordered image with a caption strip. Put several inside Template:FigureRow to show them side by side.

{{Figure|file=OTID-Trees-01-list.png|width=455|caption=The Trees list with its filters}}

Screenshot file names follow OTID-<Module>-<nn>-<what>.png, for example OTID-Certificates-03-design-dialog.png.

Parameter Meaning
file File name without the File: prefix.
caption Caption strip under the image. Required — pass a short description.
width Width in px. Default 455.
link Page the image links to. Default: the file page.
alt Alt text. Default: the caption.