Templat:Ombox: Perbedaan antara revisi

Dari Wikipedia bahasa Indonesia, ensiklopedia bebas
Konten dihapus Konten ditambahkan
←Membuat halaman berisi '<table class="plainlinks" style="margin: 4px 10%; border-collapse: collapse; background: #f9f9f9; {{#switch:{{{type|}}} | speedy = border: 2px solid #b22222; backgrou...'
 
Migrasi templat ke modul menggunakan bahasa pemrograman Lua.
 
(9 revisi perantara oleh 3 pengguna tidak ditampilkan)
Baris 1: Baris 1:
{{#invoke:Message box|ombox}}<noinclude>
<table class="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;
</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 = [[Image:Imbox speedy deletion.png|40x40px]]
| delete = [[Image:Imbox deletion.png|40x40px]]
| content = [[Image:Imbox content.png|40x40px]]
| style = [[Image:Imbox style.png|40x40px]]
| move = [[Image:Imbox move.png|40x40px]]
| protection = [[Image:Imbox protection.png|40x40px]]
| notice <!-- notice = default -->
| #default = [[Image:Imbox notice.png|40x40px]]
}}
}}</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>

Revisi terkini sejak 2 April 2018 16.55