Templat:Imbox: Perbedaan antara revisi

Konten dihapus Konten ditambahkan
mutakhirkan dari en.wiki
Farras (bicara | kontrib)
update
Baris 1:
<table class="{{#if:{{yesno|{{{plainlinks|yes}}}}}|plainlinks}} imbox
{{#switch:{{{type|}}}
| speedy = imbox-speedy
Baris 11:
| notice <!-- notice = default -->
| #default = imbox-notice
}} {{{class|}}}" style="{{{style|}}}">
<tr>
{{#ifeq:{{{image|}}}|none
Baris 19:
| {{{image}}}
| {{#switch:{{{type|}}}
| speedy = [[Image:Imbox speedy deletion.png|40x40px|alt=|link=]]
| delete = [[Image:Imbox deletion.png|40x40px|alt=|link=]]
| content = [[Image:Imbox content.png|40x40px|alt=|link=]]
| style = [[Image:Imbox styleEdit-clear.pngsvg|40x40px|link=|alt=]]
| move = [[Image:Imbox move.png|40x40px|alt=|link=]]
| protection = [[Image:Imbox protection.png|40x40px|alt=|link=]]
| license = [[Image:Imbox license.png|40x40px|alt=|link=]]
| featured = [[Image:Imbox featured.png|40x40px]]
| notice <!-- notice = default -->
| #default = [[Image:Imbox notice.png|40x40px|alt=|link=]]
}}
}}</td>
Baris 53:
| notice = <!-- Do nothing, valid "type" -->
| #default = <div style="text-align: center;">This message box is using an invalid "type={{{type|}}}" parameter and needs fixing.</div>[[Category:Wikipedia message box parameter needs fixing|{{main other|Main:}}{{FULLPAGENAME}}]]<!-- Sort on namespace -->
}}<noinclude>!--
 
--><includeonly>{{#ifeq:{{BASEPAGENAME}}|{{SUBPAGENAME}}|{{#ifeq:{{NAMESPACE}}|Template|[[Category:File message boxes]]}}}}</includeonly><!--
 
--><noinclude>
----
Ini adalah templat dasar untuk '''kotak info berkas''' seperti {{tl|DU}} dll. Cara penggunaannya sama persis dengan {{tl|ambox}}.