Difference between revisions of "Template:MessageBox"

From Cantr II Wiki
Jump to: navigation, search
m
m
Line 1: Line 1:
 
<table class="toccolours" align="center" style="width:80%;"><tr><td style="width:1px;">[[Image:{{if|test={{{image|}}}|then={{{image}}}|else=Info.png}}|32px]]</td><td style="padding:0px 0px 0px 5px">{{{desc}}}{{if|test={{{info|}}}|then=<br>
 
<table class="toccolours" align="center" style="width:80%;"><tr><td style="width:1px;">[[Image:{{if|test={{{image|}}}|then={{{image}}}|else=Info.png}}|32px]]</td><td style="padding:0px 0px 0px 5px">{{{desc}}}{{if|test={{{info|}}}|then=<br>
 
----
 
----
{{{info}}}|else=}}</td></tr></table><noinclude>{{Doc}}[[Category:Meta-Templates|{{PAGENAME}}]]</noinclude>
+
{{{info}}}|else=}}</td></tr></table><noinclude>{{Doc}}[[Category:Meta-Templates|!{{PAGENAME}}]]</noinclude>

Revision as of 11:00, 7 May 2010

Info.png{{{desc}}}
Template documentation[ view ] [ discuss ] [edit]

{{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}}}

Images

Info.png - Default image

Tools.png - Tools.png

Right.png - Right.png

Cancel.png - Cancel.png

Hand.png - Hand.png