Template:Category other: Difference between revisions

From BitProjects
Jump to navigation Jump to search
Sources>Davidgothberg
Removing the "return 'category'/'other' when no parameter" function, since not used, not needed and causes problems in some situations.
m 13 revisions imported
 
(10 intermediate revisions by 6 users not shown)
Line 1: Line 1:
{{#switch:
{{safesubst:<noinclude/>#switch:
   <!--If no or empty "demospace" parameter then detect namespace-->
   <noinclude><!-- If no or empty "demospace" parameter then detect namespace --></noinclude>
   {{#if:{{{demospace|}}}  
   {{safesubst:<noinclude/>#if:{{{demospace|}}}
   | {{lc: {{{demospace}}} }}    <!--Use lower case "demospace"-->
   | {{safesubst:<noinclude/>lc: {{{demospace}}} }}    <noinclude><!-- Use lower case "demospace" --></noinclude>
   | {{#ifeq:{{NAMESPACE}}|Category
   | {{safesubst:<noinclude/>#ifeq:{{safesubst:<noinclude/>NAMESPACE}}|{{safesubst:<noinclude/>ns:Category}}
     | category
     | category
     | other
     | other
     }}  
     }}
   }}
   }}
| category = {{{1|}}}
| category = {{{1|}}}
| other
| other
| #default = {{{2|}}}
| #default = {{{2|}}}
}}<!--End switch--><noinclude>
}}<noinclude><!-- End switch -->


{{pp-template|small=yes}}
{{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 14:28, 27 September 2025