|
|
| (не показаны 102 промежуточные версии 13 участников) |
| Строка 1: |
Строка 1: |
| − | <includeonly><table class="metadata plainlinks" style="{{{style|width: 80%; margin: 0 auto; border-collapse: collapse; background: #f8fcff; border: 1px solid #aaa;}}} border-left: 10px solid {{#switch:{{{type|}}} | + | <includeonly>{{ |
| − | | warning = #b22222 | + | {{namespace detect |
| − | | serious = #b22222 | + | | demospace = {{{demospace|}}} |
| − | | content = #f28500 | + | | main = ambox |
| − | | style = #f4c430 | + | | wikijunior = ambox |
| − | | merge = #9932cc | + | | cookbook = ambox |
| − | | notice = #1e90ff | + | | talk = tmbox |
| − | | growth = #228b22 | + | | file = imbox |
| − | | idea = yellow
| + | | category = cmbox |
| − | | #default = #1e90ff | + | | other = ombox |
| − | }};"> | + | }} |
| − | <tr>
| + | | type = {{{type|}}} |
| − | {{#ifeq:{{{image}}}|none | + | | image = {{{image|}}} |
| − | | <!-- no image cell -->
| + | | imageright = {{{imageright|}}} |
| − | | <td style="width: 52px; padding: 2px 0px 2px 0.5em; text-align: center;">{{#switch:{{{image|{{{type|}}}}}}
| + | | style = {{{style|}}} |
| − | | warning = [[Image:Stop hand nuvola.svg|40px]]
| + | | textstyle = {{{textstyle|}}} |
| − | | serious = [[Image:Stop hand nuvola.svg|40px]]
| + | | text = {{{text|{{{msg|}}}}}} |
| − | | content = [[Image:Emblem-important.svg|40px]]
| + | | small = {{{small|}}} |
| − | | style = [[Image:Applications-office.svg|40px]]
| + | | smallimage = {{{smallimage|}}} |
| − | | merge = [[Image:Merge-split-transwiki default.svg|40px]]
| + | | smallimageright = {{{smallimageright|}}} |
| − | | notice = [[Image:Information icon.svg|40px]]
| + | | smalltext = {{{smalltext|}}} |
| − | | growth = [[Image:Nuvola Green Plus.svg|40px]]
| + | }}</includeonly><noinclude> |
| − | | idea = [[Image:Ktip.svg|40px]]
| + | {{documentation}} |
| − | | blank = <!-- empty image cell -->
| + | <!-- Add categories and interwikis to the /doc subpage, not here! --> |
| − | | #default = {{{image|[[Image:Information icon.svg|40px]]}}}
| + | |
| − | }}</td>
| + | |
| − | }}
| + | |
| − | <td style="color: #000000;">
| + | |
| − | {{{text|''Enter Text''}}} | + | |
| − | </td style="padding: 0.25em 0.5em;">
| + | |
| − | {{#if:{{{imageright|}}}| | + | |
| − | <td class="ambox-imageright"> {{{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}} | + | |
| − | {{msg:mbox|type=content|text=content}}
| + | |
| − | {{msg:mbox|type=style|text=style}} | + | |
| − | {{msg:mbox|type=merge|text=merge}}
| + | |
| − | {{msg:mbox|type=notice|text=notice}} | + | |
| − | {{msg:mbox|type=growth|text=growth}}
| + | |
| − | {{msg:mbox|type=idea|text=idea}} | + | |
| − | | + | |
| − | the default images can be suppressed by specifying "image=blank", or "image=<IMAGE>", where <IMAGE> is a replacement image link. | + | |
| − | | + | |
| | </noinclude> | | </noinclude> |