Template:Template other: Difference between revisions

From Greyhawk Wiki
Jump to navigation Jump to search
Creating this namespace detecting template. Based on my code from {{category other}} and {{main other}} etc.
 
m 1 revision imported: Import from Wikipedia
 
(8 intermediate revisions by 6 users not shown)
Line 1: Line 1:
{{#switch:
{{#switch:
   <!--If no or empty "demospace" parameter then detect namespace-->
   <!--If no or empty "demospace" parameter then detect namespace-->
   {{#if:{{{demospace|}}}  
   {{#if:{{{demospace|}}}
   | {{lc: {{{demospace}}} }}    <!--Use lower case "demospace"-->
   | {{lc: {{{demospace}}} }}    <!--Use lower case "demospace"-->
   | {{#ifeq:{{NAMESPACE}}|Template
   | {{#ifeq:{{NAMESPACE}}|{{ns:Template}}
     | template
     | template
     | other
     | other
     }}  
     }}
   }}
   }}
| template = {{{1|}}}
| template = {{{1|}}}
Line 13: Line 13:
}}<!--End switch--><noinclude>
}}<!--End switch--><noinclude>


{{pp-template|small=yes}}
{{documentation}}
{{Documentation}}
<!-- Add categories to the /doc subpage and interwikis to Wikidata, not here! -->
<!-- Add categories and interwikis to the /doc subpage, not here! -->
</noinclude>
</noinclude>

Latest revision as of 13:21, 3 May 2024


Template documentation follows
Note: the template above may sometimes be partially or fully invisible.
ViewEditHistory
This template is not yet documented. Please create documentation here: Template:Template other/doc