Template:Namespace detect: Difference between revisions

From IndicWiki Sandbox
imported>Dinesh900157
 
https://sandbox.indicwiki.org/index.php/>रोहित साव27
Dinesh900157 के सम्पादनों को हटाया (Bill william compton के पिछले संस्करण को पुनः स्थापित किया।)
Line 1: Line 1:
{{#switch:
{{#switch:
   {{lc:              <!--Lower case the result-->
   {{lc:              <!--Lower case the result-->
     <!--If no or empty "Dinesh900157" parameter then detect namespace-->
     <!--If no or empty "demospace" parameter then detect namespace-->
     {{#if:{{{Dinesh900157|}}}  
     {{#if:{{{demospace|}}}  
     | {{{Dinesh900157}}}
     | {{{demospace}}}
     | {{#if:{{{page|}}}  
     | {{#if:{{{page|}}}  
       | <!--Detect the namespace in the "page" parameter-->
       | <!--Detect the namespace in the "page" parameter-->
         {{#ifeq:{{Dinesh900157:{{{page}}} }}|{{TALKSPACE:{{{page}}} }}
         {{#ifeq:{{NAMESPACE:{{{page}}} }}|{{TALKSPACE:{{{page}}} }}
         | talk
         | talk
         | {{SUBJECTSPACE:{{{page}}} }}  
         | {{SUBJECTSPACE:{{{page}}} }}  
Line 23: Line 23:
|          = {{{main| {{{other|}}} }}}
|          = {{{main| {{{other|}}} }}}
| talk      = {{{talk| {{{other|}}} }}}
| talk      = {{{talk| {{{other|}}} }}}
| user      = {{{Dinesh900157| {{{other|}}} }}}
| user      = {{{user| {{{other|}}} }}}
| wikipedia = {{{wikipedia| {{{other|}}} }}}
| wikipedia = {{{wikipedia| {{{other|}}} }}}
| file
| file
Line 30: Line 30:
| template  = {{{template| {{{other|}}} }}}
| template  = {{{template| {{{other|}}} }}}
| help      = {{{help| {{{other|}}} }}}
| help      = {{{help| {{{other|}}} }}}
| category  = {{{education| {{{other|}}} }}}
| category  = {{{category| {{{other|}}} }}}
| portal    = {{{portal| {{{other|}}} }}}
| portal    = {{{portal| {{{other|}}} }}}
| book      = {{{| {{{other|}}} }}}
| book      = {{{book| {{{other|}}} }}}
| other
| other
| #default  = {{{other|}}}  <!--"demospace=other" or a new namespace-->
| #default  = {{{other|}}}  <!--"demospace=other" or a new namespace-->

Revision as of 08:32, 28 June 2022