P (promoting core function of ombox to mbox) |
P (Copy from mediawiki Template:Ombox) |
||
1. rida: | 1. rida: | ||
{{#ifeq:{{{small|}}}|yes | |||
| {{mbox/core | |||
| small = yes | |||
| | | type = {{{type|}}} | ||
| image = {{#if:{{{smallimage|}}}| {{{smallimage}}} | {{{image|}}} }} | |||
| imageright = {{#if:{{{smallimageright|}}} | {{{smallimageright}}} | {{{imageright|}}} }} | |||
| class = {{{class|}}} | |||
| style = {{{style|}}} | |||
| textstyle = {{{textstyle|}}} | |||
| text = {{#if:{{{smalltext|}}}| {{{smalltext}}} | {{{text}}} }} | |||
| | |||
}} | |||
{{#if:{{{ | |||
| { | |||
}} | }} | ||
| {{mbox/core | |||
| type = {{{type|}}} | |||
| image = {{{image|}}} | |||
| imageright = {{{imageright|}}} | |||
| class = {{{class|}}} | |||
| | | style = {{{style|}}} | ||
| | | textstyle = {{{textstyle|}}} | ||
| | | text = {{{text}}} | ||
| | }} | ||
| | }}<noinclude>{{documentation}}<!-- Add categories and interwikis to the /doc subpage, not here! --></noinclude> | ||
| | |||
| style | |||
| | |||
| | |||
}}<noinclude> | |||
{{documentation}} | |||
<!-- Add categories and interwikis to the /doc subpage, not here! --> | |||
</noinclude> |
Redaktsioon: 16. november 2013, kell 23:13
{{{text}}} |
Näide
{{mbox | type = style | small = left | image = [[File:Emblem-question-yellow.png|40px|alt=Küsimärk]] | smallimage = [[File:Emblem-question-yellow.png|20px|alt=Küsimärk]] | textstyle = color: red; font-weight: bold; font-style: italic; | text = Text for a big box, for the top of articles. | smalltext = Text for the top of article sections. }}
Tüübid
type=critical |
type=warning |
type=important |
type=caution |
type=speculation |
type=cleanup |
type=construction |
type=neweditor |
type=mail |
type=forum |
type=notice |
type=(tühi) |
type=move |
type=protection |
type=license |
type=wiki |
type = content image = [[File:Unbalanced scales.png|40px|link=|alt=]] |
type = style image = [[File:Wikitext.png|50px|link=|alt=]] |
type = move image = [[File:Merge-arrows.png|50px|link=|alt=]] |
The above documentation is transcluded from Mall:Mbox/doc. Please add categories to the /doc subpage. Subpages of this template. |