Difference between pages "Dependencies List" and "Template:Cmbox"
(Difference between pages)
Jump to navigation
Jump to search
sc4e>JoeST m (added unofficial list) |
sc4e>Freedo50 (New page: <table class="plainlinks cmbox {{#switch:{{{type|}}} | speedy = cmbox-speedy | delete = cmbox-delete | content = cmbox-content | style = cmbox-style | move = cmbox-m...) |
||
Line 1: | Line 1: | ||
− | + | <table class="plainlinks cmbox | |
+ | {{#switch:{{{type|}}} | ||
+ | | speedy = cmbox-speedy | ||
+ | | delete = cmbox-delete | ||
+ | | content = cmbox-content | ||
+ | | style = cmbox-style | ||
+ | | move = cmbox-move | ||
+ | | protection = cmbox-protection | ||
+ | | notice <!-- notice = default --> | ||
+ | | #default = cmbox-notice | ||
+ | }}" style="{{{style|}}}"> | ||
+ | <tr> | ||
+ | {{#ifeq:{{{image|}}}|none | ||
+ | | <!-- No image. Cell with some width or padding necessary for text cell to have 100% width. --><td style="border: none; padding: 0px; width: 1px;"></td> | ||
+ | | <td class="mbox-image"> | ||
+ | {{#if:{{{image|}}} | ||
+ | | {{{image}}} | ||
+ | | {{#switch:{{{type|}}} | ||
+ | | speedy = [[Image:Wiki_warning.png|40x40px]] | ||
+ | | delete = [[Image:Wiki_warning.png|40x40px]] | ||
+ | | content = [[Image:Wiki_warning_amber.png|40x40px]] | ||
+ | | style = [[Image:Wiki_clean.png|40x40px]] | ||
+ | | move = [[Image:Wiki_move.png|40x40px]] | ||
+ | | protection = [[Image:Padlock.png|40x40px]] | ||
+ | | notice <!-- notice = default --> | ||
+ | | #default = [[Image:Imbox_notice.png|40x40px]] | ||
+ | }} | ||
+ | }}</td> | ||
+ | }} | ||
+ | <td class="mbox-text" style="{{{textstyle|}}}"> {{{text}}} </td> | ||
+ | {{#if:{{{imageright|}}} | ||
+ | | <td class="mbox-imageright"> {{{imageright}}} </td> | ||
+ | }} | ||
+ | </tr> | ||
+ | </table><!-- Detect and report usage with faulty "type" parameter: | ||
+ | -->{{#switch:{{{type|}}} | ||
+ | | <!-- No type fed, is also valid input --> | ||
+ | | speedy | ||
+ | | delete | ||
+ | | content | ||
+ | | style | ||
+ | | move | ||
+ | | protection | ||
+ | | notice = <!-- Do nothing, valid "type" --> | ||
+ | | #default = [[Category:Wikipedia message box parameter needs fixing|{{main other|Main:}}{{FULLPAGENAME}}]]<!-- Sort on namespace --> | ||
+ | }}<noinclude>{{pp-template}} | ||
− | + | This template is used for message boxes on category pages, it will be automatically transcluded by {{[[Template:Mbox|Mbox]]}}. | |
− | + | ==Example== | |
− | {{ | + | {{cmbox}} |
+ | </noinclude> |
Revision as of 08:04, 27 December 2008
{{{text}}} |
This high-risk template has been protected from editing to prevent vandalism. See the protection policy and protection log for more details. Please discuss any changes on the talk page; you may ask an editor or a moderator to make the edit if it is supported by consensus. You may also request that this page be unprotected. |
This template is used for message boxes on category pages, it will be automatically transcluded by {{Mbox}}.
Example
{{{text}}} |