Difference between revisions of "Template:Message"

From Organic Design wiki
(Imported from work.organicdesign.co.nz by sync-wikiorg.pl)
Line 1: Line 1:
{|class="message"{{#if:{{{bg|}}}|bgcolor="{{{bg}}}"}}
+
{|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="background:none;border:none;margin:0;padding:0;vertical-align:middle;"
|{{{icon}}}
+
|{{{icon|}}}
|<div style=width:100%>{{{text}}}</div>
+
|{{{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. it uses the class=''message'' css tag within [[MediaWiki:Common.css]]
+
==Usage==
[[Category:Templates]]</noinclude>
+
<nowiki>{{Message|icon=[[Image:Info_Icon.png|50px]]|text=This is a test}}</nowiki>
 +
 
 +
Creates;
 +
{{Message|icon=[[Image:Info_Icon.png|50px]]|text=This is a test}}
 +
[[Category:Formatting templates]]</noinclude>

Revision as of 04:28, 23 July 2010

{{{text}}}

The message template, is used to format other templates. It uses the class=message css tag within MediaWiki:Common.css

Usage

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

Creates;

50px This is a test