Zum Inhalt springen

Vorlage:Dmbox: Unterschied zwischen den Versionen

Updating the category handling by adding {{cat handler}}, so we get automatic category suppression in some places, and so we can use "nocat=true" when needed. No change in what categories used where.
imported>RockMFR
(changing id to disambigbox per talk page - hopefully this won't break too many things...)
imported>Davidgothberg
(Updating the category handling by adding {{cat handler}}, so we get automatic category suppression in some places, and so we can use "nocat=true" when needed. No change in what categories used where.)
Zeile 28: Zeile 28:
}}
}}
</tr>
</tr>
</table><!-- Detect and report usage with faulty "type" parameter:
</table><!--  
  Detect and report usage with faulty "type" parameter:
-->{{#switch:{{{type|}}}
-->{{#switch:{{{type|}}}
|  <!-- No type fed, is also valid input -->
|  <!-- No type fed, is also valid input -->
Zeile 34: Zeile 35:
| 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 -->
}}<!-- Categorisation:
}}<!--  
-->{{{category|{{
  Categorization:
  #switch:{{{type|}}}
-->{{#switch:{{{type|}}}
  | setindex =  
| setindex =  
    {{main other
  {{cat handler
    | [[Category:All set index articles]]
  | main = [[Category:All set index articles]]
    | <!-- Do not categorise when not in main (article) space. -->
  | nocat = {{{nocat|}}}  <!--So "nocat=true" works-->
    }}
  | page = {{{page|}}}   <!--For testing-->
   | disambig     <!-- disambig = default -->
   }}
  | #default =  
| disambig   <!-- disambig = default -->
    {{template other
| #default =  
    | <!-- Do not categorise on template pages. -->
  {{cat handler
    | [[Category:All disambiguation pages]]
  | main = [[Category:All article disambiguation pages]][[Category:All disambiguation pages]]
    }}{{main other
  | template =    <!-- Don't categorize on template pages. -->
    | [[Category:All article disambiguation pages]]
  | other = [[Category:All disambiguation pages]]
    | <!-- Do not categorise when on non article pages. -->
  | nocat = {{{nocat|}}}  <!--So "nocat=true" works-->
    }}
  | page = {{{page|}}}   <!--For testing-->
   }} }}}<!--
   }}
 
}}<!--  
--><includeonly>{{#ifeq:{{BASEPAGENAME}}|{{SUBPAGENAME}}|{{#ifeq:{{NAMESPACE}}|Template|[[Category:Disambiguation message boxes]]}}}}</includeonly><!--
  Categorize templates that use this meta-template:
 
--><includeonly>{{cat handler
--><noinclude>
| subpage = no  <!--Don't categorize on /doc, /sandbox, /testcases etc-->
| template = [[Category:Disambiguation message boxes]]
| nocat = {{{nocat|}}}   <!--So "nocat=true" works-->
| page = {{{page|}}}  <!--For testing-->
}}</includeonly><noinclude>


{{pp-template}}
{{pp-template}}
Anonymer Benutzer