Відмінності між версіями «Шаблон:Mbox»

Матеріал з Аероскан Сервіс
Перейти до: навігація, пошук
(make wider and left border optional too)
Рядок 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><table class="metadata plainlinks" style="{{{style|width:90%; margin:0px auto; border-collapse:collapse; background:#f8fcff; border: 1px solid #aaa; border-left: 10px solid {{#switch:{{{type|}}}
 
   | warning  = #b22222
 
   | warning  = #b22222
 
   | serious  = #b22222
 
   | serious  = #b22222
Рядок 10: Рядок 10:
 
   | idea    = yellow
 
   | idea    = yellow
 
   | #default = #1e90ff
 
   | #default = #1e90ff
}};">
+
}};}}}">
 
<tr><td style="width: 52px; padding: 2px 0px 2px 0.5em; text-align: center;">
 
<tr><td style="width: 52px; padding: 2px 0px 2px 0.5em; text-align: center;">
 
{{#if:{{{image|}}}
 
{{#if:{{{image|}}}

Версія за 17:03, 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:

This message box is using an invalid "type=warning" parameter and needs fixing.
This message box is using an invalid "type=merge" parameter and needs fixing.
This message box is using an invalid "type=growth" parameter and needs fixing.
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. Examples of how this template is used are located on Wikibooks:Template messages.