Difference between revisions of "Template:Mbox"
From Twinsuniverse
J McKalling (Talk | contribs) m |
J McKalling (Talk | contribs) |
||
| Line 1: | Line 1: | ||
| − | <includeonly>{| class= | + | <includeonly><table class="mbox {{ |
| − | + | #switch: {{lc:{{{class|}}}}} | |
| − | + | | cleanup | |
| − | This template may be used to display a | + | | content |
| + | | move | ||
| + | | notice = {{lc:{{{class}}}}} | ||
| + | | #default = | ||
| + | }}" border="0" cellpadding="0" cellspacing="0"> | ||
| + | <tr> | ||
| + | <td>&snbp;</td> | ||
| + | <td>{{{1|<nowiki> </nowiki>}}}</td> | ||
| + | </tr> | ||
| + | </table></includeonly><noinclude> | ||
| + | This template may be used to display a message above an article, which text can be customized. | ||
==Parameters== | ==Parameters== | ||
| − | # The | + | # The message text (case sensitive, defaults to empty message) |
| + | * '''class''': The type of the message, may be any of these values (case insensitive): | ||
| + | ** ''cleanup'' | ||
| + | ** ''content'' | ||
| + | ** ''move'' | ||
| + | ** ''notice'' | ||
| + | ** any other value would result in the default message type (no special styles) | ||
==Syntax== | ==Syntax== | ||
| − | <nowiki>{{ | + | <nowiki>{{mbox|class=value|message}}</nowiki> |
==Example== | ==Example== | ||
| − | <nowiki>{{ | + | <nowiki>{{mbox|class=content|warning, this article is having a content warning message!}}</nowiki> |
| − | {| class="mbox | + | {| class="mbox content" border="0" cellpadding="0" cellspacing="0" |
| − | | | + | | <nowiki> </nowiki> || warning, this article is having a content warning message! |
|} | |} | ||
[[Category:System Templates]] | [[Category:System Templates]] | ||
</noinclude> | </noinclude> | ||
Revision as of 23:18, 7 December 2012
This template may be used to display a message above an article, which text can be customized.
Parameters
- The message text (case sensitive, defaults to empty message)
- class: The type of the message, may be any of these values (case insensitive):
- cleanup
- content
- move
- notice
- any other value would result in the default message type (no special styles)
Syntax
{{mbox|class=value|message}}
Example
{{mbox|class=content|warning, this article is having a content warning message!}}
| warning, this article is having a content warning message! |