Difference between revisions of "Template talk:MessageBox"

From Amahi Wiki
Jump to: navigation, search
Line 10: Line 10:
 
{{MessageBox|
 
{{MessageBox|
 
backgroundcolor = red|
 
backgroundcolor = red|
image =Warning.gif‎|
+
image =Warning.png‎|
 
heading =WARNING|
 
heading =WARNING|
 
message = Using following code is extremely dangerous}}
 
message = Using following code is extremely dangerous}}
Line 19: Line 19:
 
{{MessageBox|
 
{{MessageBox|
 
backgroundcolor = red|
 
backgroundcolor = red|
image =Warning.gif‎|
+
image =Warning.png|
 
heading =WARNING|
 
heading =WARNING|
 
message = Using following code is extremely dangerous}}
 
message = Using following code is extremely dangerous}}

Revision as of 01:08, 14 February 2011

Include a message box

Message box has four named parameters

  • backgroundcolor
  • image
  • heading
  • message

you type

{{MessageBox|
backgroundcolor	= red|
image	=Warning.png‎|
heading	=WARNING|
message = Using following code is extremely dangerous}}

you get

Warning.png WARNING
Using following code is extremely dangerous



you type

{{Template:MessageBox|
backgroundcolor	= #F8E6E6|
image	=160px-Mediawiki.png‎|
heading	=WELCOME|
message = 1234567890}}

you get

50px WELCOME
1234567890