Difference between revisions of "Template:Dmbox"
From Self-sufficiency
m (1 revision) |
(Starting out this "disambigbox" meta-template.) |
||
(25 intermediate revisions by 6 users not shown) | |||
Line 3: | Line 3: | ||
| setindex = setindexbox | | setindex = setindexbox | ||
| disambig <!-- disambig = default --> | | disambig <!-- disambig = default --> | ||
− | | #default = | + | | #default = disambig |
− | }}" class="metadata plainlinks | + | }}" class="metadata plainlinks disambigbox |
{{#switch:{{{type|}}} | {{#switch:{{{type|}}} | ||
− | | setindex = | + | | setindex = disambigbox-setindex |
| disambig <!-- disambig = default --> | | disambig <!-- disambig = default --> | ||
− | | #default = | + | | #default = disambigbox-disambig |
− | }}" style="{{{style|}}}"> | + | }}" style="clear: both; margin: 0.5em 1em; border-top: 1px solid #ccc; border-bottom: 1px solid #ccc; background: transparent; {{{style|}}}"> |
<tr> | <tr> | ||
{{#ifeq:{{{image|}}}|none | {{#ifeq:{{{image|}}}|none | ||
− | | <!-- No image. Cell with some width or padding necessary for text cell to have 100% width. --><td | + | | <!-- 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 | + | | <td class="mbox-image"> |
{{#if:{{{image|}}} | {{#if:{{{image|}}} | ||
| {{{image}}} | | {{{image}}} | ||
− | | | + | | [[Image:Disambig gray.svg|30px]] |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
}}</td> | }}</td> | ||
}} | }} | ||
− | <td class="mbox-text" style=" | + | <td class="mbox-text" style="{{{textstyle|}}}"> {{{text}}} </td> |
{{#if:{{{imageright|}}} | {{#if:{{{imageright|}}} | ||
− | | <td class="mbox-imageright | + | | <td class="mbox-imageright"> {{{imageright}}} </td> |
}} | }} | ||
</tr> | </tr> | ||
− | </table><!-- | + | {{#if:{{{below|}}} |
− | + | | <tr><td colspan={{#if:{{{imageright|}}}|3|2}} class="mbox-text" style="{{{textstyle|}}}"> {{{below}}} </td></tr> | |
+ | }} | ||
+ | </table><!-- Detect and report usage with faulty "type" parameter: | ||
-->{{#switch:{{{type|}}} | -->{{#switch:{{{type|}}} | ||
| <!-- No type fed, is also valid input --> | | <!-- No type fed, is also valid input --> | ||
| disambig | | disambig | ||
| setindex = <!-- Do nothing, valid "type" --> | | setindex = <!-- Do nothing, valid "type" --> | ||
− | | #default = <div style="text-align: center;">This message box is using an invalid "type={{{type|}}}" parameter and needs fixing.</div>[[Category:Wikipedia message box parameter needs fixing|{{main other|Main:}}{{FULLPAGENAME}}]]<!-- Sort on namespace --> | + | | #default = <div style="text-align: center;">This message box is using an invalid "type={{{type|}}}" parameter and needs fixing. ([[:Category:Wikipedia message box parameter needs fixing|learn more]])</div>[[Category:Wikipedia message box parameter needs fixing|{{main other|Main:}}{{FULLPAGENAME}}]]<!-- Sort on namespace --> |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
}}<noinclude> | }}<noinclude> | ||
− | {{pp-template}} | + | <!-- {{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 09:34, 8 October 2008
30px | {{{text}}} |
[edit]
Documentation