টেমপ্লেট:Main page image: সংশোধিত সংস্করণের মধ্যে পার্থক্য
try 120px |
In case a word does exceed the width |
||
১ নং লাইন: | ১ নং লাইন: | ||
<div class="thumbinner" style="background:none; border:none; max-width:{{str number/trim|{{{width|120}}}}}px;"> | <div class="thumbinner" style="background:none; border:none; max-width:{{str number/trim|{{{width|120}}}}}px;"> | ||
[[File:{{Remove file prefix|{{{image<noinclude>|Example.svg</noinclude>}}}}}|{{{border|none}}}|{{#ifeq: {{str endswith|{{{width|120}}} | px}} | yes | {{#ifexpr: {{str find0|{{{width|120}}} | px }} > -1 | {{str left|{{{width|120}}}|{{str find0|{{{width|120}}}}}}} | {{{width|120}}} }}px |{{{caption<noinclude>|Caption goes here.</noinclude>}}}]] | [[File:{{Remove file prefix|{{{image<noinclude>|Example.svg</noinclude>}}}}}|{{{border|none}}}|{{#ifeq: {{str endswith|{{{width|120}}} | px}} | yes | {{#ifexpr: {{str find0|{{{width|120}}} | px }} > -1 | {{str left|{{{width|120}}}|{{str find0|{{{width|120}}}}}}} | {{{width|120}}} }}px |{{{caption<noinclude>|Caption goes here.</noinclude>}}}]] | ||
<div class="thumbcaption" {{#if: {{{caption align|}}} | style="text-align: {{{caption align}}};"}}>{{{caption<noinclude>|Caption goes here.</noinclude>}}}</div></div> | <div class="thumbcaption" {{#if: {{{caption align|}}} | style="text-align: {{{caption align}}}; word-wrap: break-word;"}}>{{{caption<noinclude>|Caption goes here.</noinclude>}}}</div></div> |