Templat:Tmbox: Perbedaan antara revisi
Konten dihapus Konten ditambahkan
←Membuat halaman berisi '{{#ifeq:{{{small|}}}|yes | {{tmbox/core | small = yes | type = {{{type|}}} | image = {{#if:{{{smallimage|}}}| {{{smallimage}}} | {{{image|}}} }} | imageright = {…' |
Migrasi templat ke modul menggunakan bahasa pemrograman Lua. |
||
(6 revisi perantara oleh 2 pengguna tidak ditampilkan) | |||
Baris 1: | Baris 1: | ||
{{#invoke:Message box|tmbox}}<noinclude> |
|||
{{#ifeq:{{{small|}}}|yes |
|||
| {{tmbox/core |
|||
| small = yes |
|||
| type = {{{type|}}} |
|||
| image = {{#if:{{{smallimage|}}}| {{{smallimage}}} | {{{image|}}} }} |
|||
| imageright = {{#if:{{{smallimageright|}}} | {{{smallimageright}}} | {{{imageright|}}} }} |
|||
| style = {{{style|}}} |
|||
| class = {{{class|}}} |
|||
| textstyle = {{{textstyle|}}} |
|||
| text = {{#if:{{{smalltext|}}}| {{{smalltext}}} | {{{text}}} }} |
|||
}} |
|||
| {{tmbox/core |
|||
| type = {{{type|}}} |
|||
| image = {{{image|}}} |
|||
| imageright = {{{imageright|}}} |
|||
| style = {{{style|}}} |
|||
| class = {{{class|}}} |
|||
| textstyle = {{{textstyle|}}} |
|||
| text = {{{text}}} |
|||
}} |
|||
}}<noinclude> |
|||
{{pp-template|small=yes}} |
|||
{{documentation}} |
{{documentation}} |
||
<!-- |
<!-- Categories go on the /doc subpage, and interwikis go on Wikidata. --> |
||
</noinclude> |
</noinclude> |
Revisi terkini sejak 2 April 2018 17.00
Ini adalah templat meta {{Tmbox}} ([T] alk page [m] essage [box]). Templat ini seharusnya hanya digunakan di halaman pembicaraan.
Penggunaan
Penggunaan sederhana
{{tmbox | text = Some text.}}
Some text. |
- Contoh kompleks
{{tmbox | type = style | image = [[File:Emblem-question-yellow.svg|40px|link=|alt=]] | style = width: 400px; | textstyle = color: red; font-weight: bold; font-style: italic; | text = The message body text. }}
The message body text. |
Kotak pesan pembicaraan
type=speedy – Speedy deletion templates. |
type=delete – Deletion templates. |
type=content – Major warnings and problems. |
type=style – Minor warnings and problems. |
type=notice – Notices and messages of any kind, both permanent and temporary. |
type=move – Merge, split, rename and transwiki messages and proposals. |
type=protection – Protection templates. |
Penggunaan Khusus
No type and no image given (default) |
No type and image=none – No image is used and the text uses the whole message box area. |
image = [[File:Gnome globe current event.svg|42px]] imageright = [[File:Nuvola apps bookcase.svg|40px]] |
Parameter lengkap
{{tmbox | name = name of the template | type = speedy / delete / content / style / notice / move / protection | image = none / [[File:Some image.svg|40px]] | imageright = [[File:Some image.svg|40px]] | style = CSS values | textstyle = CSS values | plainlinks = no | text = The message body text. | small = {{{small|}}} / yes | smallimage = none / [[File:Some image.svg|30px]] | smallimageright = none / [[File:Some image.svg|30px]] | smalltext = A shorter message body text. }}