Difference between revisions of "Template:MessageBox/doc"
From Cantr II Wiki
m (→Images) |
|||
(3 intermediate revisions by the same user not shown) | |||
Line 7: | Line 7: | ||
<pre> | <pre> | ||
{{MessageBox | {{MessageBox | ||
+ | | color = | ||
| image = | | image = | ||
| desc = | | desc = | ||
Line 14: | Line 15: | ||
== Parameters == | == Parameters == | ||
+ | * <tt>color</tt> - This parameter is not mandatory. It specifies the color of the left margin. The color code must be specified in hexadecimal. The default is "7D9BDF". | ||
+ | ** Example: <tt>color = FF0000</tt> (= Red) | ||
+ | |||
* <tt>image</tt> - This parameter is not mandatory. It specifies the message image. If this parameter is not specified, an image is displayed by default. | * <tt>image</tt> - This parameter is not mandatory. It specifies the message image. If this parameter is not specified, an image is displayed by default. | ||
** Example: <tt>image = Cancel.png</tt> | ** Example: <tt>image = Cancel.png</tt> | ||
Line 22: | Line 26: | ||
* <tt>info</tt> - Specific information of the message. This information should vary according to the need of each page. Therefore, you must complete it with a parameter. | * <tt>info</tt> - Specific information of the message. This information should vary according to the need of each page. Therefore, you must complete it with a parameter. | ||
** Example: <tt>info = {{{parameter}}}</tt> | ** Example: <tt>info = {{{parameter}}}</tt> | ||
+ | |||
+ | == Images == | ||
+ | |||
+ | [[Image:Info.png]] - Default image | ||
+ | |||
+ | [[Image:Tools.png]] - Tools.png | ||
+ | |||
+ | [[Image:Right.png]] - Right.png | ||
+ | |||
+ | [[Image:Cancel.png]] - Cancel.png | ||
+ | |||
+ | [[Image:Hand.png]] - Hand.png | ||
<noinclude>[[Category:Documentation|{{PAGENAME}}]] | <noinclude>[[Category:Documentation|{{PAGENAME}}]] | ||
</noinclude> | </noinclude> |
Latest revision as of 23:11, 25 May 2010
{{MessageBox}} is a meta-template, ie a template for creating templates.
Usage
Put the following code in the template being designed.
{{MessageBox | color = | image = | desc = | info = }}
Parameters
- color - This parameter is not mandatory. It specifies the color of the left margin. The color code must be specified in hexadecimal. The default is "7D9BDF".
- Example: color = FF0000 (= Red)
- image - This parameter is not mandatory. It specifies the message image. If this parameter is not specified, an image is displayed by default.
- Example: image = Cancel.png
- desc - Describe the type of message. This description should be equal for all the messages of the same type.
- Example: desc = This page is under construction.
- info - Specific information of the message. This information should vary according to the need of each page. Therefore, you must complete it with a parameter.
- Example: info = {{{parameter}}}