Difference between revisions of "Template:Tmbox/core"
Jump to navigation
Jump to search
m (1 revision) |
m (1 revision) |
||
Line 1: | Line 1: | ||
{{ | <table class="plainlinks tmbox {{#ifeq:{{{small}}}|yes|mbox-small}} {{#switch:{{{type|}}} | ||
| speedy = tmbox-speedy | |||
| delete = tmbox-delete | |||
| content = tmbox-content | |||
| style = tmbox-style | |||
| move = tmbox-move | |||
| protection = tmbox-protection | |||
{{ | | notice <!-- notice = default --> | ||
| #default = tmbox-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}}} | ||
| [[Image:{{#switch:{{{type|}}} | |||
| speedy = Imbox speedy deletion.png | |||
| delete = Imbox deletion.png | |||
| content = Imbox content.png | |||
| style = Imbox style.png | |||
| move = Imbox move.png | |||
| protection = Imbox protection.png | |||
{{ | | notice <!-- notice = default --> | ||
| #default = Imbox notice.png | |||
}} | {{#ifeq:{{{small|}}}|yes|30x30px|40x40px}} ]] | |||
}}</td> | |||
}} | |||
| | |||
| | |||
| | |||
| style = | |||
| | |||
| | |||
| | |||
-- | |||
{{ | |||
| | |||
} | |||
}} | |||
{{ | |||
{ | |||
{{ | |||
}} | |||
| | |||
| image | |||
{{ | |||
{{ | |||
{ | |||
| | |||
} | |||
| | |||
{ | |||
{{ | |||
} | |||
}} | |||
| | |||
{{ | |||
{ | |||
{{ | |||
} | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
}} | |||
| | |||
{{ | |||
{{ | |||
{ | |||
| | |||
}} | |||
} | |||
}} | |||
}} | |||
}} | }} | ||
<td class="mbox-text" style="{{{textstyle|}}}"> {{{text}}} </td> | |||
{{ | {{#if:{{{imageright|}}} | ||
| image | | {{#ifeq:{{{imageright|}}}|none | ||
| | | <!-- No image. --> | ||
| <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|small=yes}} | ||
{{documentation}} | |||
<!-- Add categories and interwikis to the /doc subpage, not here! --> | |||
</noinclude> | |||
| small = yes | |||
}} | |||
{{ | |||
}} | |||
Revision as of 15:01, 3 February 2009
{{{text}}} |
[edit] Template documentation
This template is used on 500,000+ pages. To avoid any disruptions and to save some server load, any changes should first be tested in this template's /sandbox or /testcases subpage, or in your own user space. The tested changes can then be added in one single edit to this template. As a courtesy to other users, please discuss any changes at the talk page before implementing them. |
This is the {{tmbox/core}} helper meta-template.
Do not use this template directly, use {{tmbox}} instead.
This template is called from {{tmbox}}. It holds most of the code for {{tmbox}}, while {{tmbox}} does parameter preprocessing. Thus simplifying the code in {{tmbox/core}}.
For more documentation see {{tmbox}}.
no:mal:Tmbox/core
Categories:
- Protected templates
- Wikipedia metatemplates