Template:Dmbox: Difference between revisions
From WikiMD's Wellness Encyclopedia
CSV import |
en>RMCD bot Removing notice of move discussion |
||
| Line 1: | Line 1: | ||
<templatestyles src="Dmbox/styles.css" /> | <templatestyles src="Dmbox/styles.css" /> | ||
< | <div role="note" id=" | ||
{{#switch:{{{type|}}} | {{#switch:{{{type|}}} | ||
| setindex = setindexbox | | setindex = setindexbox | ||
| Line 10: | Line 10: | ||
| disambig | | disambig | ||
| #default = dmbox-disambig | | #default = dmbox-disambig | ||
}} {{{class|}}} | }} {{{class|}}}">{{#ifeq:{{{image|}}}|none| | ||
| {{#if:{{{image|}}} | |||
{{#ifeq:{{{image|}}}|none | | <div>{{{image}}}</div> | ||
| | |||
| | |||
| {{{image}}} | |||
| [[File:{{#switch:{{{type|}}} | | [[File:{{#switch:{{{type|}}} | ||
| setindex = DAB list gray.svg | | setindex = DAB list gray.svg | ||
| Line 21: | Line 18: | ||
| #default = Disambig gray.svg | | #default = Disambig gray.svg | ||
}}|30px|alt=Disambiguation icon]] | }}|30px|alt=Disambiguation icon]] | ||
}} | }} | ||
}} | }}<div class="dmbox-body" {{#if:{{{textstyle|}}}|style="{{{textstyle}}}"}}>{{{text}}}</div>{{#if:{{{imageright|}}}|<div>{{{imageright}}}</div>}} | ||
< | </div><!-- | ||
{{#if:{{{imageright|}}} | |||
| < | |||
}} | |||
</ | |||
Detect and report usage with faulty "type" parameter: | Detect and report usage with faulty "type" parameter: | ||
-->{{#switch:{{{type|}}} | -->{{#switch:{{{type|}}} | ||
| Line 34: | Line 26: | ||
| disambig | | disambig | ||
| setindex = <!-- Do nothing, valid "type" --> | | setindex = <!-- Do nothing, valid "type" --> | ||
| #default = <div | | #default = <div class="dmbox-invalid-type">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 --> | ||
}}<!-- | }}<!-- | ||
Magic word for disambiguation pages: | Magic word for disambiguation pages: | ||
| Line 59: | Line 51: | ||
<!-- Add categories to the /doc subpage and interwikis to Wikidata, not here! --> | <!-- Add categories to the /doc subpage and interwikis to Wikidata, not here! --> | ||
</noinclude> | </noinclude> | ||
Revision as of 11:58, 4 March 2025