"ढाँचा:Dmbox" का संशोधनहरू बिचको अन्तर
Content deleted Content added
Made so it prints an error message if it is fed an invalid "type" parameter. And changed the template-space detection code to instead use {{template other}}. |
Making it so it categorises disambig and set index pages separately. Per discussion on the talk page and request by user JaGa. Also adding standard "category=" suppression. Tested in /sandbox. |
||
पङ्क्ति ३०:
| 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 -->
}}<!-- Categorisation:
}}{{template other▼
-->{{{category|{{
| <!-- Do not categorise on template pages. -->▼
#switch:{{{type|}}}
| [[Category:All disambiguation pages]]▼
| setindex =
}}{{main other▼
{{main other
| [[Category:All article disambiguation pages]]▼
| [[Category:All set index articles]]
| <!-- Do not categorise when on non article pages. -->▼
| <!-- Do not categorise when not in main (article) space. -->
}}<noinclude>▼
}}
| disambig <!-- disambig = default -->
| #default =
▲ | <!-- Do not categorise on template pages. -->
▲ | [[Category:All disambiguation pages]]
▲ }}{{main other
▲ | [[Category:All article disambiguation pages]]
▲ | <!-- Do not categorise when on non article pages. -->
}}
▲ }} }}}<noinclude>
{{pp-template|small=yes}}
|