Difference between revisions of "Template:Dmbox"
(attempt to implement functions of "category handler" with "includeAt".) |
m (includeonly) |
||
(One intermediate revision by the same user not shown) | |||
Line 35: | Line 35: | ||
| #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 --> | | #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__|}}<!-- | + | {{#ifeq:{{{type|}}}|disambig|__DISAMBIG__|}}--><!-- |
− | Categorization --> | + | Categorization |
− | {{#switch:{{{type|}}} | + | --><includeonly>{{#switch:{{{type|}}} |
| setindex = | | setindex = | ||
{{IncludeAt | {{IncludeAt | ||
Line 60: | Line 60: | ||
| noinclude = {{{nocat|}}} <!--So "nocat=true" works--> | | noinclude = {{{nocat|}}} <!--So "nocat=true" works--> | ||
}} | }} | ||
− | }} | + | }}</includeonly> |
+ | <noinclude> | ||
{{documentation}} | {{documentation}} | ||
<!-- Add categories and interwikis to the /doc subpage, not here! --> | <!-- Add categories and interwikis to the /doc subpage, not here! --> | ||
</noinclude> | </noinclude> |