Difference between revisions of "Template:Msgbox"
Jump to navigation
Jump to search
| Line 1: | Line 1: | ||
| − | <table role="presentation" class=" | + | <!-- |
| + | See https://en.wikipedia.org/wiki/Template:Cmbox | ||
| + | and https://en.wikipedia.org/wiki/MediaWiki:Common.css | ||
| + | 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%; | ||
| + | --> | ||
| + | {{#switch:{{{type|}}} | ||
| + | | protection = | ||
| + | <table role="presentation" class="cmbox-protection" style="margin:3px 10%; border-collapse:collapse; border: 1px solid #a2a9b1; background:#efefe1;"> | ||
<tr> | <tr> | ||
| − | <td class="mbox-image | + | <td class="mbox-image">[[File:Padlock-silver-medium.svg|40x40px]]</td> |
| − | <td class="mbox-text" | + | <td class="mbox-text">Protection template: {{{text}}}</td> |
</tr> | </tr> | ||
</table> | </table> | ||
| + | | content = | ||
| + | <table role="presentation" class="cmbox-content" style="margin:3px 10%; border-collapse:collapse; border: 1px solid #a2a9b1; background:#ffe7ce;"> | ||
| + | <tr> | ||
| + | <td class="mbox-image">[[File:Ambox_important.svg|40x40px]]</td> | ||
| + | <td class="mbox-text">Major warnings and problems: {{{text}}}</td> | ||
| + | </tr> | ||
| + | </table> | ||
| + | | style = | ||
| + | <table role="presentation" class="cmbox-style" style="margin:3px 10%; border-collapse:collapse; border: 1px solid #a2a9b1; background:#fff9db;"> | ||
| + | <tr> | ||
| + | <td class="mbox-image" style="xx">[[File:Edit-clear.svg|40x40px]]</td> | ||
| + | <td class="mbox-text">Minor warnings, eg. "Underpopulated category": {{{text}}}</td> | ||
| + | </tr> | ||
| + | </table> | ||
| + | | #default = <!-- notice --> | ||
| + | <table role="presentation" style="margin:3px 10%; border-collapse:collapse; border:1px solid #a2a9b1; background:#d8e8ff;"> | ||
| + | <tr> | ||
| + | <td style="border:none; padding:2px 0 2px 0.9em; text-align:center;">[[File:Information icon4.svg|45x45px]]</td> | ||
| + | <td class="mbox-text" style="border: none; padding: 0.25em 0.9em; width: 100%;">{{{text}}}</td> | ||
| + | </tr> | ||
| + | </table> | ||
| + | }} | ||
<noinclude>Category:WikiPolitiks templates</noinclude> | <noinclude>Category:WikiPolitiks templates</noinclude> | ||