Difference between revisions of "Template:MessageBox/doc"

From Cantr II Wiki
Jump to: navigation, search
m (Images)
Line 24: Line 24:
  
 
== Images ==
 
== Images ==
{|
+
 
| [[Image:Info.png]] || Default image
+
[[Image:Info.png]] - Default image
|-
+
 
| [[Image:Tools.png]] || Tools.png
+
[[Image:Tools.png]] - Tools.png
|-
+
 
| [[Image:Right.png]] || Right.png
+
[[Image:Right.png]] - Right.png
|-
+
 
| [[Image:Cancel.png]] || Cancel.png
+
[[Image:Cancel.png]] - Cancel.png
|}
 
  
 
<noinclude>[[Category:Documentation|{{PAGENAME}}]]
 
<noinclude>[[Category:Documentation|{{PAGENAME}}]]
 
</noinclude>
 
</noinclude>

Revision as of 20:05, 2 May 2010

{{MessageBox}} is a meta-template, ie a template for creating templates.

Usage

Put the following code in the template being designed.

{{MessageBox
| image = 
| desc  = 
| info  = 
}}

Parameters

  • 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