Difference between revisions of "Template:Msgbox"
Jump to navigation
Jump to search
m |
|||
| (2 intermediate revisions by the same user not shown) | |||
| Line 28: | Line 28: | ||
</tr> | </tr> | ||
</table> | </table> | ||
| − | }}<noinclude> | + | }}<noinclude>{{doc2}}</noinclude> |
Latest revision as of 18:47, 16 April 2018
| {{{text}}} |
[edit] Documentation
Usage
I copied 3 of Wikipedia's message boxes from here, and the styles from here. Wikipedia uses these particular styles on Category pages, but I think they're cute enough to use on Article pages too. Wikipedia's messageboxes for Article pages are here.
To use:
{{Msgbox
| type = protection | content | style | notice (default)
| text = This is a '''Container category'''. Due to its scope, it should contain ''only'' subcategories.
}}
Example Message Usage
| Protection: This template is currently protected from editing. |
| Content: Major warnings eg. "PoV" and "Categorization of people disputed". |
| Style: Minor warnings and problems such as "Underpopulated category". |
| Notice: Notices and messages of any kind, both permanent and temporary. |
Wikipedia's styles for these messageboxes: table class="plainlinks cmbox cmbox-notice" cmbox: margin:3px 10%; border-collapse:collapse; border: 1px solid #a2a9b1; background:#dfe8ff; cmbox-protection: background:#efefe1; cmbox-content: background:#ffe7ce; cmbox-style: background:#fff9db; cmbox-notice: background:#d8e8ff; td class="mbox-image": border:none; padding:2px 0 2px 0.9em; text-align:center; td class="mbox-text": border:none; padding:0.25em0.9em; width:100%;
Nb: got the idea about how to use "switch" in the template from here: Templates Wiki