Difference between revisions of "Template:Mbox"
From Veloopti Help
(Planned fixes: Using new CSS class names (deployed for 30 days now). Fixing the empty "image=" parameter bug and the padding for the image=none case. And some other cleanup. (Tested in sandbox.)) |
(template moved) |
||
Line 1: | Line 1: | ||
− | + | {{ | |
− | {{ | + | {{namespace detect |
− | | | + | | demospace = {{{demospace|}}} |
− | + | | main = ambox | |
− | | | + | <!-- | talk = tmbox --> |
− | | | + | | image = imbox |
− | | | + | | category = cmbox |
− | + | | other = ombox | |
− | + | }} | |
− | + | <!-- These if-cases soon unnecessary since all but ambox and dmbox can take empty parameters, and ambox and dmbox will be fixed. This code means we are feeding several empty numbered parameters but that doesn't matter since the mboxes don't use numbered parameters. --> | |
− | + | | {{#if:{{{type|}}}| type={{{type|}}} }} | |
− | | # | + | | {{#if:{{{image|}}}| image={{{image|}}} }} |
− | }} | + | | {{#if:{{{imageright|}}}| imageright={{{imageright|}}} }} |
− | + | | {{#if:{{{style|}}}| style={{{style|}}} }} | |
− | {{# | + | | {{#if:{{{textstyle|}}}| textstyle={{{textstyle|}}} }} |
− | + | | {{#if:{{{text|}}}| text={{{text|}}} }} | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | {{#if:{{{ | ||
− | | | ||
− | }} | ||
− | |||
− | |||
− | {{pp-template|small=yes}} | + | }}<noinclude> |
+ | |||
+ | <!-- {{pp-template|small=yes}} --> | ||
{{Documentation}} | {{Documentation}} | ||
<!-- Add categories and interwikis to the /doc subpage, not here! --> | <!-- Add categories and interwikis to the /doc subpage, not here! --> | ||
</noinclude> | </noinclude> |
Revision as of 05:28, 27 May 2008
{{
Template:Namespace detect
| | | | | |
}}
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |