Difference between revisions of "Template:MessageBox"

From Clogopedia, the Natural Selection 2 Wiki
Jump to: navigation, search
m (Test)
m (Test)
Line 66: Line 66:
 
{| 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:color}}"><i class="fas fa-circle" style="color:#fff"></i><i class="{{#var:style}}" aria-hidden="true"></i></span></span>
 
| <span class="fa-3x fa-layers fa-fw"><span style="color:{{#var:color}}"><i class="fas fa-circle" style="color:#fff"></i><i class="{{#var:style}}" aria-hidden="true"></i></span></span>
| {{#ifeq:{{{title|}}} | false |   | {{{title}}} }} {{{1|}}}
+
| {{#if:{{{title|}}} | {{{title}}} }} {{{1|}}}
 
|}</includeonly>
 
|}</includeonly>

Revision as of 21:14, 16 May 2019

Examples

Code Result
{{MessageBox
|style=question
|title=''Question:''
|align=left
|color=orange
|This is the message
}}
Question: This is a question
{{MessageBox
|style=check
|title='''Tip:'''
|align=left
|color=green
|This is a useful tip.
}}
Tip: This is a useful tip.
{{MessageBox
|style=ban
|title='''Stop!'''
|align=right
|color=red
|This is a warning or advisory.}}
Stop! This is a warning or advisory.
{{MessageBox
|style=info
|title=Information:
|align=center
|color=blue
|This is some general information. This template is flexible and can support a paragraph of information if required.}}
Information: This is some general information. This template is flexible and can support a paragraph of information if required.
{{MessageBox
|style=time
|title=Information:
|align=right
|color=yellow
|This is some general information. This template is flexible and can support a paragraph of information if required.}}
Information: This is some general information. This template is flexible and can support a paragraph of information if required.
{{MessageBox
|style=steam
|title=false
|align=left
|color=blue
|This is some information}}
false This is a link to Steam.