Template:Image label begin: Difference between revisions

From IxWiki
Jump to navigation Jump to search
(Created page with "<div role="img" class="{{#switch:{{{float|}}}|left=floatleft|right=floatright}} noresize" <!-- noresize disables the img from being limited to the width of the viewport size (...")
Tag: 2017 source edit
 
m (1 revision imported)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
<div role="img" class="{{#switch:{{{float|}}}|left=floatleft|right=floatright}} noresize" <!-- noresize disables the img from being limited to the width of the viewport size (as on mobile) -->
<div role="img" class="{{#switch:{{{float|}}}|left=floatleft|right=floatright}} noresize" <!-- noresize disables the img from being limited to the width of the viewport size (as on mobile) -->
     style="width: {{#if:{{{thumb|}}}|{{#expr:{{#if:{{{width|}}}|{{{width}}}|400}}+16}}|{{#if:{{{border2|}}}|{{#expr:{{#if:{{{width|}}}|{{{width}}}|400}}+2}}|{{#if:{{{width|}}}|{{{width}}}|400}}}}}}px;
     style="width: {{#if:{{{thumb|}}}|{{#expr:{{#if:{{{width|}}}|{{{width}}}|400}}+16}}|{{#if:{{{border2|}}}|{{#expr:{{#if:{{{width|}}}|{{{width}}}|400}}+2}}|{{#if:{{{width|}}}|{{{width}}}|400}}}}}}px; {{#switch:{{{float|}}}|center|centre=margin-left:auto; margin-right:auto;}}
             {{#if:{{{margin|}}}|margin: {{{margin}}};}}
             {{#if:{{{margin|}}}|margin: {{{margin}}};}}
             {{#if:{{{padding|}}}|padding: {{{padding}}};}}
             {{#if:{{{padding|}}}|padding: {{{padding}}};}}
Line 16: Line 16:
     }}<noinclude>
     }}<noinclude>
</div>
</div>
{{Documentation}}
{{documentation}}
</noinclude>
</noinclude>

Latest revision as of 12:12, 24 September 2023