Template:Image label begin: Difference between revisions

From TEPwiki, Urth's Encyclopedia
Jump to navigation Jump to search
Content added Content deleted
(Underlined links undesireable for map labels. Hope this doesn't break anything.)
(ugh)
 
(75 intermediate revisions by 42 users 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 class="nounderlines" style="float: {{{float|none}}}; clear: {{{float|none}}}; ">
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;}}
<div style="position: relative;">
{{#if:{{{margin|}}}|margin: {{{margin}}};}}
[[Image:{{{image|Example.png}}}|{{{width|400}}}px]]<noinclude>
{{#if:{{{padding|}}}|padding: {{{padding}}};}}
{{#if:{{{border|}}}|border: {{{border}}};}}
{{#if:{{{font-size|}}}|font-size: {{{font-size}}};}}
line-height: 1;
text-align: {{{text-align|center}}};
background-color: {{{svg-background-color|{{{background-color|#ffffff}}}}}};
position: relative;
{{#if:{{{overflow-x|}}}|max-width: 100%; <!-- deals with large images on mobile overflowing -->
overflow-x: {{{overflow-x|auto}}};}}"><!--
-->{{#if:{{{fullimage|}}}
|{{{fullimage}}}
|[[File:{{{image|Bad Title Example.png}}}{{#if:{{{border2|}}}|{{!}}border}}{{#if:{{{thumb|}}}|{{!}}thumb{{!}}none}}|{{#if:{{{width|}}}|{{{width}}}|400}}px{{#ifeq:{{{link|File:}}}|File:||{{!}}link={{{link|}}}}}|alt={{{alt|}}}|{{{caption|}}}]]
}}<noinclude>
</div>
</div>
{{documentation}}
</div>
[[da:Skabelon:Image label begin]]
[[it:Template:Image label begin]]
[[ml:Template:Image label begin]]
{{User:Zondor/Labelled_Map_Documentation}}
</noinclude>
</noinclude>

Latest revision as of 14:36, 6 July 2022