Difference between revisions of "Template:MessageBox"
From Clogopedia, the Natural Selection 2 Wiki
m (Test) |
m (Test) |
||
Line 61: | Line 61: | ||
|{{MessageBox|style=steam|title=false|align=left|color=blue|This is a link to [http://www.steampowered.com Steam].}} | |{{MessageBox|style=steam|title=false|align=left|color=blue|This is a link to [http://www.steampowered.com Steam].}} | ||
|} | |} | ||
− | + | </noinclude> | |
<includeonly> | <includeonly> | ||
{{#vardefine:style|{{#switch: {{{style|}}} | info = fas fa-info-circle |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 = #eed202 | orange = #ff9B00 | green = #0fad0f | blue = #0f4ead | #default = #fff }} }} | {{#vardefine:style|{{#switch: {{{style|}}} | info = fas fa-info-circle |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 = #eed202 | orange = #ff9B00 | green = #0fad0f | blue = #0f4ead | #default = #fff }} }} |
Revision as of 21:15, 16 May 2019
Examples
Code | Result | ||
---|---|---|---|
{{MessageBox |style=question |title=''Question:'' |align=left |color=orange |This is the message }} |
| ||
{{MessageBox |style=check |title='''Tip:''' |align=left |color=green |This is a useful tip. }} |
| ||
{{MessageBox |style=ban |title='''Stop!''' |align=right |color=red |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.}} |
| ||
{{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.}} |
| ||
{{MessageBox |style=steam |title=false |align=left |color=blue |This is some information}} |
|