Templat:Ombox: Perbedaan antara revisi

Konten dihapus Konten ditambahkan
kTidak ada ringkasan suntingan
Migrasi templat ke modul menggunakan bahasa pemrograman Lua.
 
(3 revisi perantara oleh 2 pengguna tidak ditampilkan)
Baris 1:
{{#invoke:Message box|ombox}}<noinclude>
<table class="noprint plainlinks" style="margin: 4px 10%; border-collapse: collapse; background: #f9f9f9;
{{documentation}}
{{#switch:{{{type|}}}
<!-- Categories go on the /doc subpage, and interwikis go on Wikidata. -->
| speedy = border: 2px solid #b22222; background: #fee;
</table><noinclude>
| delete = border: 2px solid #b22222;
| content = border: 1px solid #f28500;
| style = border: 1px solid #f4c430;
| move = border: 1px solid #9932cc;
| protection = border: 2px solid #bba;
| notice <!-- notice = default -->
| #default = border: 1px solid #aaa;
}} {{{style|}}}">
<tr>
{{#ifeq:{{{image|}}}|none
| <!-- No image. Cell with some width or padding necessary for text cell to have 100% width. --><td style="border: none; padding: 1px;"></td>
| <td style="border: none; padding: 2px 0px 2px 0.9em; text-align: center;">
{{#if:{{{image|}}}
| {{{image}}}
| {{#switch:{{{type|}}}
| 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}}.
 
{{Templat-templat kotak pesan}}
[[Kategori:Templat umum]]
[[Kategori:Templat meta Wikipedia]]
[[en:Template:Ombox]]</noinclude>