Difference between revisions of "Template:MessageBox"

From Clogopedia, the Natural Selection 2 Wiki
Jump to: navigation, search
m (Test)
m (Test)
Line 5: Line 5:
  
 
<includeonly>
 
<includeonly>
 +
{| class="ns2table" style="text-align:{{#if:{{{align|}}}|{{{align}}}|left}}; height:70px; border-spacing: 2px; border: 1px solid darkgray;"
 +
| <span class="fa-3x fa-layers fa-fw"><span style="color:#d17e0a;"><i class="fas fa-circle" style="color:{{#var:color1}}"></i><i class="fa fa-question-circle" aria-hidden="true"></i></span></span>
 +
| {{#if:{{{title|}}}|'''{{{title}}}:'''|'''Message:'''}} {{{1|}}}
 +
|}
 
{{#vardefine:color1|{{#switch: {{{color1}}}
 
{{#vardefine:color1|{{#switch: {{{color1}}}
 
| red = #f00
 
| red = #f00
Line 14: Line 18:
 
}}
 
}}
 
}}
 
}}
 
+
</includeonly>
{| class="ns2table" style="text-align:{{#if:{{{align|}}}|{{{align}}}|left}}; height:70px; border-spacing: 2px; border: 1px solid darkgray;"
+
| <span class="fa-3x fa-layers fa-fw"><span style="color:#d17e0a;"><i class="fas fa-circle" style="color:{{#var:color1}}"></i><i class="fa fa-question-circle" aria-hidden="true"></i></span></span>
+
| {{#if:{{{title|}}}|'''{{{title}}}:'''|'''Message:'''}} {{{1|}}}
+
|}</includeonly>
+

Revision as of 18:06, 16 May 2019

Example

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