Difference between revisions of "Template:Message"

From Mario Fan Games Galaxy Wiki
(don't use percentage widths - some of us have big monitors)
 
(27 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{| align=center width=60% id=toc style='border-collapse: collapse; border: 1px solid #aaa;'
+
{|{{#if: {{{trans|}}}| class='transbar'|}} align=center width=60% id=toc style='color: {{{c4|#B6CAFF}}}; 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}}}; width: 10px;' |
+
|-
| align=center style='width: 32px;' |[[{{{image|File:Standardwikimessagebox.png}}}]]
+
| style='background-color: {{{color1|{{{c1|{{{color|{{{colour1|{{{colour|#248}}}}}}}}}}}}}}}; width: 8px;' |
| align=center style='padding: 1px; font-size: 90%;' | '''{{{title}}}'''
+
| class="messageImage" align=left valign="middle" style='width: 42px;'| [[{{{image|{{{img|Image:Standardwikimessagebox.png}}}}}}]]
{{{description}}}
+
| class="messageBody" align=center style="padding: 1px; font-size: 90%;" | '''{{{title|Title text}}}'''
|}<includeonly>{{{category}}}</includeonly><noinclude>[[Category:Messages]]MESSAGE TEMPLATE
+
{{{description|{{{desc|Description text}}}}}}
<pre>{{Message
+
|}<noinclude>
|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=
 
}}
 
</pre>
 
where
 
__NOTOC__
 
====Colour====
 
is a hex code, e.g. #FF0000 or #4730FA
 
====Image====
 
is an image uploaded on this wiki. e.g. <nowiki>[[File:Hotdog.png]]</nowiki>
 
====Title====
 
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:Messages]]</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.
+
This template should be used directly only for basic messages and very special or individual cases.
  
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).
+
<nowiki>{{Message
</noinclude>
+
|trans = ..
 +
|c1 = ..
 +
|c2 = ..
 +
|c3 = ..
 +
|c4 = Text color
 +
|img = ..
 +
|title = ..
 +
|desc = ..
 +
|cat = ..
 +
}}</nowiki>
 +
 
 +
*'''|trans''': Pass anything under this, e.g. |trans = y, for c2 to be a gradient moving from black on the left to the given color on the right.
 +
** Default: off
 +
*'''|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
 +
*'''|c4''': Text color.
 +
** Default: #B6CAFF
 +
*'''|image''', '''|img''': The image to display on the left, sans brackets.
 +
** Default: Image:Standardwikimessagebox.png
 +
*'''|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. In a child template, add another few &lt;includeonly&gt; tags.
 +
[[Category:Messages]]</noinclude>
 +
 
 +
<includeonly>{{{category|{{{cat|}}}}}}</includeonly>

Latest revision as of 20:52, 2 January 2011

 Standardwikimessagebox.png Title text

Description text

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
|trans = ..
|c1 = ..
|c2 = ..
|c3 = ..
|c4 = Text color
|img = ..
|title = ..
|desc = ..
|cat = ..
}}
  • |trans: Pass anything under this, e.g. |trans = y, for c2 to be a gradient moving from black on the left to the given color on the right.
    • Default: off
  • |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
  • |c4: Text color.
    • Default: #B6CAFF
  • |image, |img: The image to display on the left, sans brackets.
    • Default: Image:Standardwikimessagebox.png
  • |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. In a child template, add another few <includeonly> tags.