Jump to content

Template:Main page image: Difference between revisions

From Worldpedia, the free encyclopedia
Lose one div
Don't emit empty styles
Line 2: Line 2:
<div class="thumbinner" style="background:none; border:none; max-width:{{str number/trim|{{{width|115}}}}}px;">
<div class="thumbinner" style="background:none; border:none; max-width:{{str number/trim|{{{width|115}}}}}px;">
[[File:{{Remove file prefix|{{{image<noinclude>|Example.svg</noinclude>}}}}}|{{{border|none}}}|{{#ifeq: {{str endswith|{{{width|115}}} | px}} | yes | {{#ifexpr: {{str find0|{{{width|115}}} | px }} > -1 | {{str left|{{{width|115}}}|{{str find0|{{{width|115}}}}}}} | {{{width|115}}} }}px |{{{caption<noinclude>|Caption goes here.</noinclude>}}}]]
[[File:{{Remove file prefix|{{{image<noinclude>|Example.svg</noinclude>}}}}}|{{{border|none}}}|{{#ifeq: {{str endswith|{{{width|115}}} | px}} | yes | {{#ifexpr: {{str find0|{{{width|115}}} | px }} > -1 | {{str left|{{{width|115}}}|{{str find0|{{{width|115}}}}}}} | {{{width|115}}} }}px |{{{caption<noinclude>|Caption goes here.</noinclude>}}}]]
<div class="thumbcaption" style="{{#if: {{{caption align|}}} | text-align: {{{caption align}}}; | }}">{{{caption<noinclude>|Caption goes here.</noinclude>}}}</div></div></div>
<div class="thumbcaption" {{#if: {{{caption align|}}} | style="text-align: {{{caption align}}};"}}>{{{caption<noinclude>|Caption goes here.</noinclude>}}}</div></div></div>

Revision as of 16:40, 12 July 2015

[[File:Template:Remove file prefix|none|{{#ifeq: Template:Str endswith | yes | Expression error: Unrecognized punctuation character "[".px |Caption goes here.]]

Caption goes here.