Difference between revisions of "Template:MessageBox"
From Clogopedia, the Natural Selection 2 Wiki
m (Test) |
m (Test) |
||
Line 6: | Line 6: | ||
<includeonly>{{#vardefine:color1|{{#switch: {{{color}}}| red = #f00 | yellow = #ff0 | orange = #ff9B00 | green = #0f0 | blue = #00f | #default = #fff }}}} | <includeonly>{{#vardefine:color1|{{#switch: {{{color}}}| red = #f00 | yellow = #ff0 | orange = #ff9B00 | green = #0f0 | blue = #00f | #default = #fff }}}} | ||
{| class="ns2table" style="text-align:{{#if:{{{align|}}}|{{{align}}}|left}}; height:70px; border-spacing: 2px; border: 1px solid darkgray;" | {| 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:{{#var: | + | | <span class="fa-3x fa-layers fa-fw"><span style="color:{{#var:color}}"><i class="fas fa-circle" style="color:#fff"></i><i class="fa fa-question-circle" aria-hidden="true"></i></span></span> |
| {{#if:{{{title|}}}|'''{{{title}}}:'''|'''Message:'''}} {{{1|}}} | | {{#if:{{{title|}}}|'''{{{title}}}:'''|'''Message:'''}} {{{1|}}} | ||
|}</includeonly> | |}</includeonly> |
Revision as of 18:08, 16 May 2019
Example
{{MessageBox|title=ABCD|align=left|color=red|This is some information}}Produces:
ABCD This is some information |