Templat:Ombox: Perbedaan antara revisi

Konten dihapus Konten ditambahkan
ArdWar (bicara | kontrib)
kTidak ada ringkasan suntingan
Bennylin (bicara | kontrib)
mutakhirkan dari en.wiki
Baris 1:
{{#switchifeq:{{{typesmall|}}}|yes
<table class="noprint plainlinks" style="margin: 4px 10%; border-collapse: collapse; background: #f9f9f9;
| {{ombox/core
{{#switch:{{{type|}}}
| small = yes
| speedy = border: 2px solid #b22222; background: #fee;
| {{#switch:type = {{{type|}}}
| delete = border: 2px solid #b22222;
| image = {{#if:{{{smallimage|}}}| {{{smallimage}}} | {{{image|}}} }}
| content = border: 1px solid #f28500;
| imageright = {{#if:{{{smallimageright|}}} | {{{smallimageright}}} | {{{imageright|}}} }}
| style = border: 1px solid #f4c430;
}} | style = {{{style|}}}">
| move = border: 1px solid #9932cc;
| textstyle = {{{textstyle|}}}
| protection = border: 2px solid #bba;
| text = {{#if:{{{smalltext|}}}| {{{smalltext}}} | {{{text}}} }}
| notice <!-- notice = default -->
}}
| #default = border: 1px solid #aaa;
| {{ombox/core
}} {{{style|}}}">
| type = {{{type|}}}
<tr>
{{#ifeq: | image = {{{image|}}}|none
{{#if: | imageright = {{{imageright|}}}
| <!-- No image. Cell with some width or padding necessary for text cell to have 100% width. --><td style="border: none; padding: 1px;"></td>
| style = {{{style|}}}
| <td style="border: none; padding: 2px 0px 2px 0.9em; text-align: center;">
| textstyle = {{#if:{{{imagetextstyle|}}}
| text = {{{imagetext}}}
}}
| {{#switch:{{{type|}}}
</table>}}<noinclude>
| speedy = [[Berkas:Imbox speedy deletion.png|Hapus segera|40x40px|link=]]
| delete = [[Berkas:Imbox deletion.png|Hapus|40x40px|link=]]
| content = [[Berkas:Imbox content.png|Isi|40x40px|link=]]
| style = [[Berkas:Imbox style.png|Gaya|40x40px|link=]]
| move = [[Berkas:Imbox move.png|Pindahkan|40x40px|link=]]
| protection = [[Berkas:Imbox protection.png|Lindungi|40x40px|link=]]
| notice <!-- notice = default -->
| #default = [[Berkas:Imbox notice.png|Perhatian|40x40px|link=]]
}}
}}</td>
}}
<td style="border: none; padding: 0.25em 0.9em; width: 100%; {{{textstyle|}}}"> {{{text}}} </td>
{{#if:{{{imageright|}}}
| <td style="border: none; padding: 2px 0.9em 2px 0px; text-align: center;"> {{{imageright}}} </td>
}}
</tr>
</table><noinclude>
----
Ini adalah templat dasar untuk '''kotak info non-artikel''' seperti templat-templat yang digunakan di ruang nama Halaman Pengguna, Templat, Wikipedia, Bantuan, Portal dll. ''Jangan'' menggunakan templat-meta ini untuk artikel (gunakan {{tl|ambox}}), halaman pembicaraan (gunakan {{tl|tmbox}}), berkas (gunakan {{tl|imbox}}), kategori (gunakan {{tl|cmbox}}). Cara penggunaannya sama persis dengan {{tl|ambox}}.