Difference between revisions of "Template:Message"

From Mario Fan Games Galaxy Wiki
Line 1: Line 1:
{| class="transbar" align=center width=60% id=toc style='border-collapse: collapse; border: {{{border|2px solid #0A2372}}};'
+
{| class='transbar' align=center width=60% id=toc style='background-color: {{{color2|{{{c2|{{{colour2|#125}}}}}}}}}; border-collapse: collapse; border: {{{border|2px solid {{{color3|{{{c3|{{{border|{{{colour3|{{{color1|{{{c1|{{{color|{{{colour1|{{{colour|#248}}}}}}}}}}}}}}}}}}}}}}}}}}}}}};'
 
|-
 
|-
| style='background-color: {{{colour|{{{color|#ddd}}}}}}; width: 10px;' |
+
| style='background-color: {{{color1|{{{c1|{{{color|{{{colour1|{{{colour|#248}}}}}}}}}}}}}}}; width: 3%;' |
| class="messageImage" align=left valign="middle" style='width: 42px;'| [[{{{image|File:Standardwikimessagebox.png}}}]]
+
| class="messageImage" align=left valign="middle" style='width: 42px;'| [[{{{image|{{{img|Image:Standardwikimessagebox.png}}}}}}]]
 
| class="messageBody" align=center style="padding: 1px; font-size: 90%;" | '''{{{title|Title text}}}'''
 
| class="messageBody" align=center style="padding: 1px; font-size: 90%;" | '''{{{title|Title text}}}'''
 
{{{description|{{{desc|Description text}}}}}}
 
{{{description|{{{desc|Description text}}}}}}
|}<includeonly>{{{category|}}}</includeonly><noinclude>
+
|}<includeonly><includeonly>{{{category|{{{cat|}}}}}}</includeonly></includeonly><noinclude>
 
'' ''
 
'' ''
 
== Usage ==
 
== Usage ==
Line 21: Line 21:
 
}}</nowiki>
 
}}</nowiki>
  
: '''|color''' or '''|colour''': Colored block on the left. Default: #ddd
+
: '''|color''', '''|colour''', '''|color1''', '''|colour1''', '''|c1''', : Border and left block. Default: #248
: '''|border''': Properties of border. Default: 1px solid #aaa
+
: '''|color2''', '''|colour2''', '''|c2''': Background color. Default: #125
: '''|image''': The image to display on the left. Default: [[File:Standardwikimessagebox.png]]
+
: '''|color3''', '''|colour3''', '''|c3''', '''|border''': Border. Default: Same as c1
 +
: '''|image''', '''|img''': The image to display on the left, sans brackets.
 
: '''|title''': Text in bold.
 
: '''|title''': Text in bold.
: '''|desc''': Text under the title; in child templates, the reason for including the template (see [[Template:Deleteme]]).
+
: '''|desc''': Text under the title, e.g. the reason for including the template (see [[Template:Deleteme]]).
: '''|category''': The category to sort a page into; for child templates, contain the categories within &lt;includeonly&gt; to prevent categorizing of the child template.
+
: '''|category''', '''|cat''': The category / categories to sort a page into. Will only work when using a child template.
 
[[Category:Messages]]</noinclude>
 
[[Category:Messages]]</noinclude>

Revision as of 05:39, 2 January 2011

 Standardwikimessagebox.png Title text

Description text

</includeonly>

Usage

This is a parent template, used to create other templates that all look like this one. If you are looking for a specific message, such as Template:Deleteme, they are contained in Category: Messages.

This template should be used directly only for basic messages and very special or individual cases.

{{Message
|color = ..
|border = ..
|image = ..
|title = ..
|desc = ..
|category = ..
}}
|color, |colour, |color1, |colour1, |c1, : Border and left block. Default: #248
|color2, |colour2, |c2: Background color. Default: #125
|color3, |colour3, |c3, |border: Border. Default: Same as c1
|image, |img: The image to display on the left, sans brackets.
|title: Text in bold.
|desc: Text under the title, e.g. the reason for including the template (see Template:Deleteme).
|category, |cat: The category / categories to sort a page into. Will only work when using a child template.