Відмінності між версіями «Шаблон:Mbox»
Матеріал з Аероскан Сервіс
(make msg and first numerical argument alternatives to text) |
|||
| Рядок 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|}}} |
| − | ---- | + | | warning = #b22222 |
| − | + | | serious = #b22222 | |
| + | | content = #f28500 | ||
| + | | style = #f4c430 | ||
| + | | merge = #9932cc | ||
| + | | notice = #1e90ff | ||
| + | | growth = #228b22 | ||
| + | | idea = yellow | ||
| + | | #default = #1e90ff | ||
| + | }};"> | ||
| + | <tr><td style="width: 52px; padding: 2px 0px 2px 0.5em; text-align: center;"> | ||
| + | {{#if:{{{image|}}} | ||
| + | | [[Image:{{{image}}}|40px]] | ||
| + | | [[Image:{{#switch:{{{type|}}} | ||
| + | | warning = Stop hand nuvola.svg | ||
| + | | serious = Stop hand nuvola.svg | ||
| + | | content = Emblem-important.svg | ||
| + | | style = Applications-office.svg | ||
| + | | merge = Merge-split-transwiki default.svg | ||
| + | | notice = Information icon.svg | ||
| + | | growth = Nuvola Green Plus.svg | ||
| + | | idea = Ktip.svg | ||
| + | | blank = <!-- empty image cell --> | ||
| + | | #default = <!-- empty image cell --> | ||
| + | }}|40px]] | ||
| + | }} | ||
| + | </td><td style="color: #000000;"> | ||
| + | {{{1|{{{msg|{{{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> | ||
Версія за 14:07, 19 вересня 2007
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:
{{mbox|type=<TYPE>|text=<TEXT>}}
Where <TYPE> can be one of the following:
| 40x40px | warning |
This message box is using an invalid "type=warning" parameter and needs fixing.
| 40x40px | content |
| 40x40px | style |
| 40x40px | merge |
This message box is using an invalid "type=merge" parameter and needs fixing.
| 40x40px | notice |
| 40x40px | growth |
This message box is using an invalid "type=growth" parameter and needs fixing.
| 40x40px | idea |
This message box is using an invalid "type=idea" parameter and needs fixing.
the default images can be suppressed by specifying "image=blank", or "image=<IMAGE>", where <IMAGE> is a replacement image link.