Difference between revisions of "Template:Dmbox"
m |
m (includeonly) |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 9: | Line 9: | ||
| disambig <!-- disambig = default --> | | disambig <!-- disambig = default --> | ||
| #default = dmbox-disambig | | #default = dmbox-disambig | ||
− | }} {{{class|}}}" style="{{{style|}}} | + | }} {{{class|}}}" style="{{{style|}}}"> |
<tr> | <tr> | ||
{{#ifeq:{{{image|}}}|none | {{#ifeq:{{{image|}}}|none | ||
Line 16: | Line 16: | ||
| {{{image}}} | | {{{image}}} | ||
| [[File:{{#switch:{{{type|}}} | | [[File:{{#switch:{{{type|}}} | ||
− | | setindex = | + | | setindex = List gray.svg |
| disambig <!-- disambig = default --> | | disambig <!-- disambig = default --> | ||
| #default = Disambig gray.svg | | #default = Disambig gray.svg | ||
Line 30: | Line 30: | ||
Detect and report usage with faulty "type" parameter: | Detect and report usage with faulty "type" parameter: | ||
-->{{#switch:{{{type|}}} | -->{{#switch:{{{type|}}} | ||
− | | <!-- No type | + | | <!-- "No type" is also a 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: | + | | #default = <div style="text-align: center;">This message box is using an invalid "type={{{type|}}}" parameter and needs fixing.</div>[[Category:Message box that needs fixing|{{main other|Main:}}{{FULLPAGENAME}}]]<!-- Sort on namespace --> |
− | }}<!-- | + | }}<!-- |
− | Magic word for disambiguation pages | + | Magic word for disambiguation pages seems to be not working, commenting out |
− | + | {{#ifeq:{{{type|}}}|disambig|__DISAMBIG__|}}--><!-- | |
− | Categorization | + | Categorization |
− | -->{{#switch:{{{type|}}} | + | --><includeonly>{{#switch:{{{type|}}} |
| setindex = | | setindex = | ||
− | {{ | + | {{IncludeAt |
| main = [[Category:All set index articles]] | | main = [[Category:All set index articles]] | ||
− | | | + | | noinclude = {{{nocat|}}} <!--So "nocat=true" works--> |
| page = {{{page|}}} <!--For testing--> | | page = {{{page|}}} <!--For testing--> | ||
+ | <!--No categories for any other cases--> | ||
}} | }} | ||
| disambig <!-- disambig = default --> | | disambig <!-- disambig = default --> | ||
| #default = | | #default = | ||
− | {{ | + | {{IncludeAt |
− | | | + | | anytalk = <!-- Don't categorize on talk pages; talk pages are unlikely to need disambiguation --> |
− | | template = <!-- Don't categorize on template pages | + | | user = [[Category:User page with potential template misuse]]<!-- Don't categorize on user pages. --> |
+ | | main = [[Category:Full-page disambiguation pages]] | ||
+ | | template = <!-- Don't categorize on template pages --> | ||
+ | | help = [[Category:All disambiguation pages]] | ||
+ | | category = [[Category:Disambiguation categories]] | ||
| other = [[Category:All disambiguation pages]] | | other = [[Category:All disambiguation pages]] | ||
− | | | + | <!--| pagename = {{{pagename|}}} |
− | | | + | | page = {{{page|}}} Not sure what the original function is, commenting out--> |
+ | | noinclude = {{{nocat|}}} <!--So "nocat=true" works--> | ||
}} | }} | ||
− | }}<noinclude> | + | }}</includeonly> |
+ | <noinclude> | ||
{{documentation}} | {{documentation}} | ||
+ | <!-- Add categories and interwikis to the /doc subpage, not here! --> | ||
</noinclude> | </noinclude> |