Template:Msgbox: Difference between revisions
Mastergalen (talk | contribs) m (1 revision) |
(No difference)
|
Revision as of 06:01, 27 December 2012
Contents
Basic usage
{{msgbox | title = This is a normal message box | text = With helpful and descriptive subtext }}
Will result in:
This is a normal message box With helpful and descriptive subtext
|
Types
To change a message boxes's connotation use the type
parameter.
Warning
| type = warning
{{msgbox | type = warning | title = This is a warning message box | text = With helpful and descriptive subtext }}
Will result in:
This is a warning message box With helpful and descriptive subtext
|
Error or danger
| type = error
{{msgbox | type = error | title = This is an error message box | text = With helpful and descriptive subtext }}
Will result in:
This is an error message box With helpful and descriptive subtext
|
Success
| type = success
{{msgbox | type = success | title = This is a green message box | text = With helpful and descriptive subtext }}
Will result in:
This is a green message box With helpful and descriptive subtext
|
Information
Leaving out the type
parameter will give you the default information alert.
{{msgbox | title = This is a normal message box | text = With helpful and descriptive subtext }}
Will result in:
This is a normal message box With helpful and descriptive subtext
|
Mini usage
{{msgbox | mini = 1 | icon = icon-upload | text = This is a mini message box with an information icon using [[Help:Icons|Icons]] }}
Will result in:
This is a mini message box with an information icon using Icons |
Advanced CSS usage
{{msgbox | type = success | title = This is a green message box | text = It has a discuss link and some custom CSS. | discuss = 1 | css = -moz-box-shadow: 0px 0px 6px #888; -webkit-box-shadow: 0px 0px 6px #888; }}
Will result in:
This is a green message box Discuss It has a discuss link and some custom CSS.
|
{{msgbox | type = success | title = This is a green message box | text = It has a discuss link, some custom CSS and a custom image | discuss = 1 | css = -moz-box-shadow: 0px 0px 6px #888; -webkit-box-shadow: 0px 0px 6px #888; }}
Will result in:
This is a green message box Discuss It has a discuss link, some custom CSS and a custom image
|
The above documentation is transcluded from Template:Msgbox/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories and interwikis to the /doc subpage. Subpages of this template. |
Retrieved from ‘http://www.voltzwiki.com/w/index.php?title=Template:Msgbox&oldid=249’
Cookies help us deliver our services. By using our services, you agree to our use of cookies.