টেমপ্লেট:Main page image: সংশোধিত সংস্করণের মধ্যে পার্থক্য

সম্পাদনা সারাংশ নেই
45 revisions imported
ট্যাগ: মোবাইল সম্পাদনা মোবাইল ওয়েব সম্পাদনা
 
(৯ জন ব্যবহারকারী দ্বারা সম্পাদিত ৪১টি মধ্যবর্তী সংশোধন দেখানো হচ্ছে না)
১ নং লাইন: ১ নং লাইন:
<div class="{{#ifeq: {{{align|right}}} | right | floatright | {{#ifeq: {{{align|left}}} | left | floatleft | center}} }}">
<div class="thumbinner mp-thumb" style="background: transparent; color: inherit; border: none; padding: 0; max-width: {{#expr:{{str number/trim|{{if empty|{{{width|}}}|120}}}}{{#ifeq:{{{border|}}}|yes|+2}}}}px;">
<div class="thumbinner" style="background:none; border:none; min-width:85px; max-width:{{str number/trim|{{{width|115}}}}}px;">
[[File:<!--if {{{image}}} begins with File:/Image: remove it-->{{PAGENAME:{{{image|{{{1<noinclude>|Example-serious.jpg</noinclude>}}}}}}}}{{#ifeq:{{{border|}}}|yes|{{!}}border|}}|<!-- if {{{width}}} ends with "px" then remove it -->{{Str rep|{{#invoke:string|replace|{{#if:{{{width|}}}|{{{width}}}|120}}|px$||plain=false}}px|-nanpx|frameless}}<!-- title (use caption, alt text or non-default link target if not available) -->{{#if:{{{title|}}} | {{!}}{{{title}}} | {{#if:{{{caption|{{{2|}}}}}} | {{!}}{{{caption|{{{2|}}}}}} | {{!}}{{{alt|}}}}}}} <!-- alt text (use caption, title or image name if not available) --> {{#if:{{{alt|}}} | {{!}}alt={{{alt}}}}} <!--add link if exists-->{{#if:{{{link|}}} | {{#ifeq:{{PAGENAME:{{{link}}}}}|{{PAGENAME:{{{image}}}}}| <!--do nothing if {{{link}}} and {{{image}}} are the same-->| {{!}}link=File:{{PAGENAME:{{{link}}}}} }}<!--end #ifeq for link/image comparison--> }}<!--end #if for link-->{{#if:
[[File:{{Remove file prefix|{{{image<noinclude>|Example.svg</noinclude>}}}}}|{{{border|none}}}|{{#ifeq: {{str endswith|{{{width|115x115}}} | px}} | yes | {{#ifexpr: {{str find0|{{{width|115x115}}} | px }} > -1 | {{str left|{{{width|115x115}}}|{{str find0|{{{width|115}}}}}}} | {{{width|115x115}}} }}px |{{{caption<noinclude>|Caption goes here.</noinclude>}}}]]
{{{thumbtime|}}} | {{!}}thumbtime={{{thumbtime}}} }}]]{{#if: {{{caption|{{{2|<noinclude>Caption goes here.</noinclude>}}}}}}|
<div class="thumbcaption"><div style="{{#if: {{{caption align|}}} | text-align: {{{caption align}}}; | }}">{{{caption<noinclude>|Caption goes here.</noinclude>}}}</div></div>
<div class="thumbcaption" style="padding: 0.25em 0; word-wrap: break-word; {{#if:{{{caption align|}}} | text-align: {{{caption align}}};}}">{{{caption|{{{2|<noinclude>Caption goes here.</noinclude>}}}}}}</div>}}</div>
</div>
<noinclude>
</div>
{{documentation}}
</noinclude>