Difference between revisions of "Template:Message"

From LGPedia
Jump to: navigation, search
(Created.)
 
(Added category switch.)
Line 1: Line 1:
<div style="width: 95%; margin: 1em 1em 1em 1em; border: 1px solid #CECECE; background-color: #FBFBFB; padding: 0.3em 0.3em 0.3em 0.3em; height: 64px;"><div style="float: left; margin-right: 0.8em;">[[Image:{{{image|Crystal clear knotes.png}}}|64px]]</div> <div style="text-align: center; font-size: large; letter-spacing: 0.05em; margin-right: 54px; display: {{#if: {{{title|}}}|block|none}};">{{{title}}}</div>No message defined. Please edit this page and {{{message| [{{fullurl:{{FULLPAGENAMEE}}|action=edit}} set <code>message=</code> on Template:Message].}}}</div><includeonly>[[Category:Authoritative users on LGPedia|{{PAGENAME}}]]</includeonly><noinclude>
+
<div style="width: 95%; margin: 1em 1em 1em 1em; border: 1px solid #CECECE; background-color: #FBFBFB; padding: 0.3em 0.3em 0.3em 0.3em; height: 64px;"><div style="float: left; margin-right: 0.8em;">[[Image:{{{image|Crystal clear knotes.png}}}|64px]]</div> <div style="text-align: center; font-size: large; letter-spacing: 0.05em; margin-right: 54px; display: {{#if: {{{title|}}}|block|none}};">{{{title}}}</div>No message defined. Please edit this page and {{{message| [{{fullurl:{{FULLPAGENAMEE}}|action=edit}} set <code>message=</code> on Template:Message].}}}</div>{{#if: {{{category|}}}|<includeonly>[[Category:{{{category}}}]]</includeonly>}}<noinclude>
 
This template was designed to provide a common basis for specialized message templates like [[Template:Authoritative]] and [[Template:Cleanup]].
 
This template was designed to provide a common basis for specialized message templates like [[Template:Authoritative]] and [[Template:Cleanup]].
  
 
==Usage==
 
==Usage==
<pre>{{Message|image=IMAGE NAME|title=HEADLINE|message=MESSAGE}}</pre>
+
<pre>{{Message|image=IMAGE NAME|title=HEADLINE|message=MESSAGE|category=CATEGORY}}</pre>
IMAGE NAME is only the image name, no prefix, link syntax or other options. Image defaults to [[:Image:Crystal clear knotes.png]]. Title is optional and will not be displayed if undefined.
+
IMAGE NAME is only the image name, no prefix, link syntax or other options. <code>Image</code> defaults to [[:Image:Crystal clear knotes.png]]. <code>Title</code> is optional and will not be displayed if undefined. Same goes for <code>category</code>.
 
</noinclude>
 
</noinclude>

Revision as of 20:14, 2 December 2007

Crystal clear knotes.png
{{{title}}}
No message defined. Please edit this page and set message= on Template:Message.

This template was designed to provide a common basis for specialized message templates like Template:Authoritative and Template:Cleanup.

Usage

{{Message|image=IMAGE NAME|title=HEADLINE|message=MESSAGE|category=CATEGORY}}

IMAGE NAME is only the image name, no prefix, link syntax or other options. Image defaults to Image:Crystal clear knotes.png. Title is optional and will not be displayed if undefined. Same goes for category.