Template:Figure: Difference between revisions
Content deleted Content added
Created page with "<div class="thumb t{{{float|right}}}"><div class="thumbinner">{{#if:{{{2|}}}|<div>{{{1}}}</div>}}<div class="thumbcaption">{{#if:{{{2|}}}|{{{2}}}|{{{1}}}}}</div></div></div><noinclude> ==Documentation== ===Template data=== <templatedata> { "params": { "1": { "label": "Main content", "type": "content", "required": true }, "2": { "label": "Caption", "type": "content", "suggested": true }, "float": { "label": "Float", "description": "Used..." |
No edit summary |
||
Line 1: | Line 1: | ||
<div style="background-color:#f8f9fa;border:1px solid #c8ccd1;clear:{{{float|right}}};float:{{{float|right}}};margin-block:0.5em 1.3em;margin-inline:{{#switch:{{{float|right}}}|left=0 1.4em|1.4em 0}};"> |
|||
<div class="thumb t{{{float|right}}}"><div class="thumbinner">{{#if:{{{2|}}}|<div>{{{1}}}</div>}}<div class="thumbcaption">{{#if:{{{2|}}}|{{{2}}}|{{{1}}}}}</div></div></div><noinclude> |
|||
<div class="thumbinner"> |
|||
{{#if:{{{2|}}}|<div style="margin-inline:6px;margin-top:6px;">{{{1}}}</div>}} |
|||
<div class="thumbcaption" style="{{#if:{{{2|}}}|margin-bottom:6px;margin-inline:6px;|margin:6px;}}">{{#if:{{{2|}}}|{{{2}}}|{{{1}}}}}</div> |
|||
</div> |
|||
</div><noinclude> |
|||
==Documentation== |
==Documentation== |
Latest revision as of 21:12, 26 February 2024
{{{1}}}
Documentation[edit source]
Template data[edit source]
Allows content to be presented in the same figure layout as an image thumbnail
Parameter | Description | Type | Status | |
---|---|---|---|---|
Main content | 1 | no description | Content | required |
Caption | 2 | no description | Content | suggested |
Float | float | Used to float the figure to the left
| String | optional |