Difference between revisions of "Template:MessageBox"

From Clogopedia, the Natural Selection 2 Wiki
Jump to: navigation, search
m (Test)
m (Test)
Line 2: Line 2:
 
== Example ==
 
== Example ==
 
<pre><nowiki>{{MessageBox|title=ABCD|align=left|color=red|This is some information}}</nowiki></pre> Produces:
 
<pre><nowiki>{{MessageBox|title=ABCD|align=left|color=red|This is some information}}</nowiki></pre> Produces:
{{MessageBox|title=ABCD|align=center|color1=red|This is some information}}</noinclude>
+
{{MessageBox|title=ABCD|align=center|color=red|This is some information}}</noinclude>
  
 
<includeonly>{{#vardefine:color|{{#switch: {{{color|}}}| red = #ff0000 | yellow = #ffff00 | orange = #ff9B00 | green = #00ff00 | blue = #0000ff | #default = #fff }} }}
 
<includeonly>{{#vardefine:color|{{#switch: {{{color|}}}| red = #ff0000 | yellow = #ffff00 | orange = #ff9B00 | green = #00ff00 | blue = #0000ff | #default = #fff }} }}

Revision as of 18:26, 16 May 2019

Example

{{MessageBox|title=ABCD|align=left|color=red|This is some information}}
Produces:
ABCD This is some information