Zum Inhalt springen

Vorlage:Dmbox: Unterschied zwischen den Versionen

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.
imported>Davidgothberg
(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}}.)
imported>Davidgothberg
(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.)
Zeile 30: Zeile 30:
| 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:Wikipedia message box parameter 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:Wikipedia message box parameter needs fixing|{{main other|Main:}}{{FULLPAGENAME}}]]<!-- Sort on namespace -->
}}{{template other
}}<!-- Categorisation:
| <!-- Do not categorise on template pages. -->
-->{{{category|{{
| [[Category:All disambiguation pages]]
  #switch:{{{type|}}}
}}{{main other
  | setindex =
| [[Category:All article disambiguation pages]]
    {{main other
| <!-- Do not categorise when on non article pages. -->
    | [[Category:All set index articles]]
}}<noinclude>
    | <!-- Do not categorise when not in main (article) space. -->
    }}
  | disambig      <!-- disambig = default -->
  | #default =
    {{template other
    | <!-- 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}}
{{pp-template|small=yes}}
Anonymer Benutzer