Templat:Gambar halaman utama: Perbedaan antara revisi

Konten dihapus Konten ditambahkan
k Robot: Perubahan kosmetika
Tidak ada ringkasan suntingan
 
Baris 1:
<div class="thumbinner mp-thumb" style="background: transparent; border: none; padding: 0; max-width: {{#expr:{{str number/trim|{{if empty|{{{width|}}}|120}}}}{{#ifeq:{{{border|}}}|yes|+2}}}}px;">
<div class="thumbinner mp-
[[Berkas:<!--if {{{image}} begins with File:/Image: remove it-->{{Remove file prefix|{{{image|{{{1<noinclude>|ContohExample-serious.jpg</noinclude>}}}}}}}}|{{#ifeq:{{{border|}}}|yes|{{!}}border|}}|<!-- if {{{width}}} ends with "px" then remove it -->{{#ifeq: {{str endswith|{{if empty|{{{width|}}}|120}} | px}} | yes | <!--do the substring here-->{{str left|{{{width}}}|{{str find0|{{{width}}}|px}} }} | {{if empty|{{{width|}}}|120}} }}px <!-- 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:{{remove file prefix|{{{link}}}}}|{{remove file prefix|{{{image}}}}}| <!--do nothing if {{{link}}} and {{{image}}} are the same-->| {{!}} link=File:{{remove file prefix|{{{link}}}}} }}<!--end #ifeq for link/image comparison--> }}<!--end #if for link-->]]{{#if: {{{caption|{{{2|<noinclude>CaptionTakarir goestertampil heredisini.</noinclude>}}}}}}|<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>
thumb" style="background:transparent; border:none; padding:0; max-width:{{#expr:{{str number/trim|{{if empty|{{{width|}}}|120}}}}{{#ifeq:{{{border|}}}|yes|+2}}}}px;">
<div class="thumbcaption" style="padding: 0.25em 0; word-wrap: break-word; {{#if:{{{caption align|}}} | text-align: {{{caption align}}};}}">{{{caption|{{{2|<noinclude>Takarir tertampil disini.</noinclude>}}}}}}</div>}}</div>
[[Berkas:<!--if {{{image}} begins with File:/Image: remove it-->{{Remove file prefix|{{{image|{{{1<noinclude>|Contoh.jpg</noinclude>}}}}}}}}|{{#ifeq:{{{border|}}}|yes|border|}}|<!-- if {{{width}}} ends with "px" then remove it -->{{#ifeq: {{str endswith|{{if empty|{{{width|}}}|120}} |px}} | yes | <!--do the substring here-->{{str left|{{{width}}}|{{str find0|{{{width}}}|px}} }} | {{if empty|{{{width|}}}|120}} }}px <!-- 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:{{remove file prefix|{{{link}}}}}|{{remove file prefix|{{{image}}}}}| <!--do nothing if {{{link}}} and {{{image}}} are the same-->| {{!}} link=File:{{remove file prefix|{{{link}}}}} }}<!--end #ifeq for link/image comparison--> }}<!--end #if for link-->]]{{#if: {{{caption|{{{2|<noinclude>Caption goes here.</noinclude>}}}}}}|<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>
<noinclude>
{{dokumentasidocumentation}}
</noinclude>