Difference between revisions of "Template:Message"

From LGPedia
Jump to: navigation, search
m
m (Protected "Template:Message": Excessive vandalism ([edit=autoconfirmed] (indefinite) [move=autoconfirmed] (indefinite)))
 
(4 intermediate revisions by 3 users not shown)
Line 2: Line 2:
 
|- valign="top"
 
|- valign="top"
 
|style="margin-right: 0.8em;"|[[Image:{{{image|Crystal clear knotes.png}}}|64px]]
 
|style="margin-right: 0.8em;"|[[Image:{{{image|Crystal clear knotes.png}}}|64px]]
|<div style="text-align: center; font-size: large; letter-spacing: 0.05em; margin-right: 54px; display: {{#if: {{{title|}}}|block|none}};">{{{title}}}</div>{{{message|No message defined. Please edit this page and  [{{fullurl:{{FULLPAGENAME}}|action=edit}} set <code>message=</code> on Template:Message].}}}{{#if: {{{category|}}}|<includeonly>[[Category:{{{category}}}]]</includeonly>}}<noinclude>
+
|<div style="text-align: center; font-size: large; letter-spacing: 0.05em; margin-right: 54px; display: {{#if: {{{title|}}}|block|none}};">{{{title}}}</div>{{{message|No message defined. Please edit this page and  [{{fullurl:{{FULLPAGENAME}}|action=edit}} set <code>message=</code> on Template:Message].}}}
 +
|}{{#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==

Latest revision as of 00:36, 5 June 2011

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<includeonly>|category=CATEGORY</includeonly>}}

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.

Should you use this template directly on a content page to display a note, but still want to categorize the page, leave out the includeonly tags:

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