Difference between revisions of "Template:Message"

From Organic Design wiki
m
m
 
(7 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{|class="message"
+
{|class="od-code od-message" style="width: 100%;margin: 15px 0 0 0;padding: 3px;border: 1px solid #ccc;background: #f4f4f4;text-align: left;vertical-align: top;"
 
|-
 
|-
 
|
 
|
{|style="background:none;border:none;margin:0;padding:0;vertical-align:middle;"
+
{|style="width:100%;background:none;border:none;margin:0;padding:0;vertical-align:middle;"
|{{{icon}}}
+
|style="width:50px"|{{{icon|}}}
 
|{{{text}}}
 
|{{{text}}}
 
|}
 
|}
|}
+
|}<noinclude>
<noinclude>
+
The ''message'' template, is used to format other templates such as [[Template:Info]] and [[Template:Stub]].
The ''message'' template, is used to format other templates. it uses the class=''message'' css tag within [[MediaWiki:Wikiskin.css]]
+
==Usage==
[[Category:Templates]]</noinclude>
+
<nowiki>{{Message|icon=[[Image:Info.svg|50px]]|text=This is a test}}</nowiki>
 +
 
 +
Creates;
 +
{{Message|icon=[[Image:Info.svg|50px]]|text=This is a test}}
 +
[[Category:Formatting templates]]</noinclude>

Latest revision as of 17:34, 4 November 2015

{{{text}}}

The message template, is used to format other templates such as Template:Info and Template:Stub.

Usage

{{Message|icon=[[Image:Info.svg|50px]]|text=This is a test}}

Creates;

Info.svg This is a test