Difference between revisions of "Template:Message"

From Mario Fan Games Galaxy Wiki
m
(Cleaning up page and placing aliases / flexibility in parent template)
Line 1: Line 1:
{| class="darklink" align=center width=60% id=toc style='border-collapse: collapse; border: 1px solid #aaa;'
+
{| class="darklink" align=center width=60% id=toc style='border-collapse: collapse; border: {{{border|1px solid #aaa}}};'
| style='background-color: {{{colour}}}; width: 10px;' |
+
 
 +
|-
 +
| style='background-color: {{{colour|{{{color|#ddd}}}}}}; width: 10px;' |
 
| align=left valign="middle" style='width: 42px; background-color:#FFFFFF;'| [[{{{image|File:Standardwikimessagebox.png}}}]]
 
| align=left valign="middle" style='width: 42px; background-color:#FFFFFF;'| [[{{{image|File:Standardwikimessagebox.png}}}]]
| align=center style='padding: 1px; font-size: 90%; color:#000000; background-color:#FFFFFF;' | '''{{{title}}}'''
+
| align=center style='padding: 1px; font-size: 90%; color:#000000; background-color:#FFFFFF;' | '''{{{title|Title text}}}'''
{{{description}}}
+
{{{description|{{{desc|Description text}}}}}}
|}<includeonly>{{{category}}}</includeonly><noinclude>[[Category:Messages]]MESSAGE TEMPLATE
+
|}<includeonly>{{{category|}}}</includeonly><noinclude>
<pre>{{Message
+
 
|colour=
+
'' ''
|image=
+
== Usage ==
|title=
+
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]].
|description=
+
 
|category=
+
This template should be used directly only for basic messages and very special or individual cases.
}}
+
 
</pre>
+
<nowiki>{{Message
where
+
|color = ..
__NOTOC__
+
|border = ..
====Colour====
+
|image = ..
is a hex code, e.g. #FF0000 or #4730FA
+
|title = ..
====Image====
+
|desc = ..
is an image uploaded on this wiki. e.g. <nowiki>[[File:Hotdog.png]]</nowiki>
+
|category = ..
====Title====
+
}}</nowiki>
is the title, i.e. the bit in bold
 
====Description====
 
is the description, i.e. the bit not in bold
 
====Category====
 
is the category that each page using this template will be stored in, e.g. <nowiki>[[Category:Ducks on wheels]]</nowiki>. In theory you can put in as many categories as you like.
 
  
You'll also have to add a <nowiki>"<includeonly>[[Category:Messages]]</includeonly>"</nowiki> to categorise the template.
+
: '''|color''' or '''|colour''': Colored block on the left. Default: #ddd
 +
: '''|border''': Properties of border. Default: 1px solid #aaa
 +
: '''|image''': The image to display on the left. Default: [[File:Standardwikimessagebox.png]]
 +
: '''|title''': Text in bold.
 +
: '''|desc''': Text under the title; in child templates, 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.
  
this is for sysop benefits and is the underlying structure of message templates. Normal users should just use the templates found in [[:Category:Messages]] (apart from this one).
+
[[Category:Messages]]</noinclude>
</noinclude>
 

Revision as of 11:40, 26 February 2010

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 or |colour: Colored block on the left. Default: #ddd
|border: Properties of border. Default: 1px solid #aaa
|image: The image to display on the left. Default: Standardwikimessagebox.png
|title: Text in bold.
|desc: Text under the title; in child templates, the reason for including the template (see Template:Deleteme).
|category: The category to sort a page into; for child templates, contain the categories within <includeonly> to prevent categorizing of the child template.