Toggle search
Search
Toggle menu
Notifications
Toggle personal menu
Editing
Template:MessageBox/doc
(section)
Template page
Views
Read
Edit source
View history
associated-pages
Template
Discussion
More actions
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== Examples == === Basic MessageBox === <pre> {{MessageBox |header = Header text here |text = Normal text here |id = test1 }}</pre> Produces: {{#invoke:Mbox|main |header = Header text here |text = Normal text here |id = test1 }} === Using types === To use types, CSS variables must be added, such as: <syntaxhighlight lang="css"> :root { --type-important: rgba(200, 0, 0, 0.8); --type-moderate: rgba(233, 124, 47, 0.8); --type-minor: rgba(241, 197, 37, 0.8); } </syntaxhighlight> If added: <pre> {{MessageBox |header = Header text here |type = important |text = Normal text here |id = test2 }}</pre> Produces: {{#invoke:Mbox|main |header = Header text here |type = important |text = Normal text here |id = test2 }} Depending on your styling, there may not be a visual difference in the above example. === With an image === <pre> {{MessageBox |header = Header text here |text = Normal text here |image = Wiki.png |imagelink = Global Lua Modules |imagewidth = 50px |id = test3 }}</pre> Produces: {{#invoke:Mbox|main |header = Header text here |text = Normal text here |image = Wiki.png |imagelink = Global Lua Modules |imagewidth = 50px |id = test3 }} === With an aside === <pre> {{MessageBox |header = Header text here |type = important |text = Normal text here |aside = Aside text here |id = test4 }}</pre> Produces: {{#invoke:Mbox|main |header = Header text here |type = important |text = Normal text here |aside = Aside text here |id = test4 }} === Standard/default style === <pre> {{MessageBox |header = Header text here |text = Normal text here |comment = Comment text here |image = Wiki.png |aside = Aside text here |id = standard }}</pre> Produces: {{#invoke:Mbox|main|header=Header text here |text=Normal text here |comment=Comment text here |image=Wiki.png |aside=Aside text here |id=standard}} <includeonly>[[Category:Templates|{{PAGENAME}}]][[Category:Templates/Notice|{{PAGENAME}}]]</includeonly><noinclude>[[Category:Template documentation|{{PAGENAME}}]]</noinclude>
Summary:
Please note that all contributions to Snowpiercer Wiki are considered to be released under the Creative Commons Attribution-ShareAlike (see
Snowpiercer Wiki:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)