Anonymous user
Template:Dmbox: Difference between revisions
remove invitations for custom styles that are coincidentally totally unused in template space, move invalid type to class
Richardpruen (talk | contribs) m (1 revision imported: Wikipedia article on Nicotine templates needed) |
imported>Izno (remove invitations for custom styles that are coincidentally totally unused in template space, move invalid type to class) |
||
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">{{{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: |