Difference between revisions of "Template:Message"

From Organic Design wiki
(Imported from work.organicdesign.co.nz by sync-wikiorg.pl)
m
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
{|style="width: 100%;margin: 15px 0 0 0;padding: 3px;border: 1px solid #ccc;background: #f4f4f4;text-align: left;vertical-align: top;"
+
{|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. It uses the class=''message'' css tag within [[MediaWiki:Common.css]]
+
The ''message'' template, is used to format other templates such as [[Template:Info]] and [[Template:Stub]].
 
==Usage==
 
==Usage==
<nowiki>{{Message|icon=[[Image:Info_Icon.png|50px]]|text=This is a test}}</nowiki>
+
<nowiki>{{Message|icon=[[Image:Info.svg|50px]]|text=This is a test}}</nowiki>
  
 
Creates;
 
Creates;
{{Message|icon=[[Image:Info_Icon.png|50px]]|text=This is a test}}
+
{{Message|icon=[[Image:Info.svg|50px]]|text=This is a test}}
 
[[Category:Formatting templates]]</noinclude>
 
[[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