|
|
| Рядок 1: |
Рядок 1: |
| − | <includeonly><table class="metadata plainlinks noprint" style="{{{style|width:90%; margin:0px auto; background:#f8fcff; border:1px solid #aaa;}}} border-left:10px solid {{#switch:{{{type|}}}
| + | {{ {{#switch:{{NAMESPACE}} |
| − | | warning = #b22222
| + | |{{ns:0}}=ambox |
| − | | serious = #b22222
| + | |{{ns:Image}}=imbox |
| − | | content = #f28500
| + | |{{ns:Category}}=cmbox |
| − | | style = #f4c430
| + | |#default=ambox |
| − | | merge = #9932cc
| + | }} |
| − | | move = #9932cc
| + | |{{#if:{{{type|}}}|type|}}={{{type|}}} |
| − | | notice = #1e90ff
| + | |{{#if:{{{image|}}}|image|}}={{{image|}}} |
| − | | growth = #228b22
| + | |{{#if:{{{style|}}}|style|}}={{{style|}}} |
| − | | idea = yellow
| + | |{{#if:{{{textstyle|}}}|textstyle|}}={{{textstyle|}}} |
| − | | query = #ffb734
| + | |{{#if:{{{text|}}}|text|}}={{{text|}}} |
| − | |#default = #1e90ff
| + | }} |
| − | }};"> | + | |
| − | <tr>{{#ifeq:{{{image|yes}}}|none
| + | |
| − | |<!-- no image cell -->
| + | |
| − | |<td style="width:52px; padding:2px 0px 2px 0.5em; text-align:center;">
| + | |
| − | {{#if:{{{image|}}}|[[Image:{{{image}}}|40x40px]]|{{#switch:{{{type|}}} | + | |
| − | | warning = [[Image:Stop hand nuvola.svg|40x40px]]
| + | |
| − | | serious = [[Image:Stop hand nuvola.svg|40x40px]]
| + | |
| − | | content = [[Image:Book important.svg|40x40px]]
| + | |
| − | | style = [[Image:Applications-office.svg|40x40px]]
| + | |
| − | | merge = [[Image:Merge-split-transwiki default.svg|40x40px]]
| + | |
| − | | move = [[Image:Merge-split-transwiki default.svg|40x40px]]
| + | |
| − | | notice = [[Image:Book notice.svg|40x40px]]
| + | |
| − | | growth = [[Image:Nuvola apps bookcase.svg|40x40px]]
| + | |
| − | | idea = [[Image:Ktip.svg|40x40px]]
| + | |
| − | | query = [[Image:Torchlight help yellow.png|40x40px]]
| + | |
| − | | blank = <!-- empty image cell -->
| + | |
| − | |#default = [[Image:Book notice.svg|40x40px]]}}}}</td>}}
| + | |
| − | <td style="color:black;">
| + | |
| − | {{{1|{{{msg|{{{text|''Enter Text''}}}}}}}}} | + | |
| − | </td>
| + | |
| − | {{#if:{{{imageright|}}}|<td>{{{imageright}}}</td>}} | + | |
| − | </tr></table></includeonly><noinclude>
| + | |
| − | == Usage == | + | |
| − | | + | |
| − | This template is used to create other templates with a consistent visual style. Messages will be color coded to demonstrate their type and severity. The types of message are described as:
| + | |
| − | | + | |
| − | <nowiki>{{mbox|type=<TYPE>|text=<TEXT>}}</nowiki>
| + | |
| − | | + | |
| − | Where <TYPE> can be one of the following:
| + | |
| − | | + | |
| − | {{msg:mbox|type=warning|text=warning or serious}} | + | |
| − | {{msg:mbox|type=content|text=content}} | + | |
| − | {{msg:mbox|type=style|text=style}}
| + | |
| − | {{msg:mbox|type=merge|text=merge or move}} | + | |
| − | {{msg:mbox|type=notice|text=notice}} | + | |
| − | {{msg:mbox|type=growth|text=growth}}
| + | |
| − | {{msg:mbox|type=idea|text=idea}}
| + | |
| − | {{msg:mbox|type=query|text=query}}
| + | |
| − | | + | |
| − | the default images can be suppressed by specifying "image=none", or "image=<IMAGE>", where <IMAGE> is a replacement image link. Examples of how this template is used are located on [[Wikibooks:Template messages]].
| + | |
| − | </noinclude>
| + | |