Difference between revisions of "Template:Dmbox"

From Moegirlpedia
Jump to: navigation, search
(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>

Latest revision as of 03:12, 28 August 2019

Template-info.svg Template Documentation  [Create] [Refresh]