Difference between revisions of "Template:MessageBox"
From Clogopedia, the Natural Selection 2 Wiki
m (Test) |
m (Test) |
||
Line 9: | Line 9: | ||
<pre><nowiki>{{MessageBox|style=stats|title=This is the title|align=center|color=blue|This is some information}}</nowiki></pre> Produces: | <pre><nowiki>{{MessageBox|style=stats|title=This is the title|align=center|color=blue|This is some information}}</nowiki></pre> Produces: | ||
{{MessageBox|style=stats|title=This is the title|align=center|color=blue|This is some information}} | {{MessageBox|style=stats|title=This is the title|align=center|color=blue|This is some information}} | ||
+ | <pre><nowiki>{{MessageBox|style=time|title=This is the title|align=center|color=blue|This is some information}}</nowiki></pre> Produces: | ||
+ | {{MessageBox|style=time|title=This is the title|align=center|color=blue|This is some information}} | ||
+ | <pre><nowiki>{{MessageBox|style=steam|title=This is the title|align=center|color=blue|This is some information}}</nowiki></pre> Produces: | ||
+ | {{MessageBox|style=steam|title=This is the title|align=center|color=blue|This is some information}} | ||
</noinclude> | </noinclude> | ||
<includeonly> | <includeonly> | ||
− | {{#vardefine:style|{{#switch: {{{style|}}} | question = fa fa-question-circle | warning = fas fa-exclamation-circle | check = fas fa-check-circle | ban = fas fa-ban | user = fas fa-user-circle | + | {{#vardefine:style|{{#switch: {{{style|}}} | question = fa fa-question-circle | warning = fas fa-exclamation-circle | check = fas fa-check-circle | ban = fas fa-ban | user = fas fa-user-circle | time = fas fa-clock | crosshair = fas fa-crosshairs | steam = fab fa-steam | #default = fas fa-circle }} }}{{#vardefine:color|{{#switch: {{{color|}}} | red = #ad0f0f | yellow = #e8e814 | orange = #ff9B00 | green = #0fad0f | blue = #0f4ead | #default = #fff }} }} |
Revision as of 20:36, 16 May 2019
Example
{{MessageBox|style=question|title='''This is the title'''|align=left|color=orange|This is the message}}Produces:
This is the title This is the message |
{{MessageBox|style=check|title=''This is the title''|align=center|color=green|This is some information}}Produces:
This is the title This is some information |
{{MessageBox|style=ban|title=''This is the title''|align=right|color=red|This is some information}}Produces:
This is the title This is some information |
{{MessageBox|style=stats|title=This is the title|align=center|color=blue|This is some information}}Produces:
This is the title This is some information |
{{MessageBox|style=time|title=This is the title|align=center|color=blue|This is some information}}Produces:
This is the title This is some information |
{{MessageBox|style=steam|title=This is the title|align=center|color=blue|This is some information}}Produces:
This is the title This is some information |