https://wiki.spiralknights.com/index.php?title=Template:Namespace_detect&feed=atom&action=history
Template:Namespace detect - Revision history
2024-03-29T10:36:27Z
Revision history for this page on the wiki
MediaWiki 1.23.15
https://wiki.spiralknights.com/index.php?title=Template:Namespace_detect&diff=953&oldid=prev
Cory: Created page with '{{#switch: {{lc: <!--Lower case the result--> <!--If no or empty "demospace" parameter then detect namespace--> {{#if:{{{demospace|}}} | {{{demospace…'
2010-10-20T04:08:27Z
<p>Created page with '{{#switch: {{lc: <!--Lower case the result--> <!--If no or empty "demospace" parameter then detect namespace--> {{#if:{{{demospace|}}} | {{{demospace…'</p>
<p><b>New page</b></p><div>{{#switch:<br />
{{lc: <!--Lower case the result--><br />
<!--If no or empty "demospace" parameter then detect namespace--><br />
{{#if:{{{demospace|}}} <br />
| {{{demospace}}}<br />
| {{#if:{{{page|}}} <br />
| <!--Detect the namespace in the "page" parameter--><br />
{{#ifeq:{{NAMESPACE:{{{page}}} }}|{{TALKSPACE:{{{page}}} }}<br />
| talk<br />
| {{SUBJECTSPACE:{{{page}}} }} <br />
}}<br />
| <!--No "demospace" or "page" parameters, so detect actual namespace--><br />
{{#ifeq:{{NAMESPACE}}|{{TALKSPACE}}<br />
| talk<br />
| {{SUBJECTSPACE}} <br />
}}<br />
}}<br />
}}<br />
}}<br />
<!-- Only one of the lines below will be executed --><br />
<!-- Respecting empty parameters on purpose --><br />
| main <!--"demospace=main" or {{SUBJECTSPACE}}={{ns:0}}=""--><br />
| = {{{main| {{{other|}}} }}}<br />
| talk = {{{talk| {{{other|}}} }}}<br />
| user = {{{user| {{{other|}}} }}}<br />
| wikipedia = {{{wikipedia| {{{other|}}} }}}<br />
| file<br />
| image = {{{file| {{{image| {{{other|}}} }}} }}}<br />
| mediawiki = {{{mediawiki| {{{other|}}} }}}<br />
| template = {{{template| {{{other|}}} }}}<br />
| help = {{{help| {{{other|}}} }}}<br />
| category = {{{category| {{{other|}}} }}}<br />
| portal = {{{portal| {{{other|}}} }}}<br />
| book = {{{book| {{{other|}}} }}}<br />
| other<br />
| #default = {{{other|}}} <!--"demospace=other" or a new namespace--><br />
<br />
}}<!--End switch--><noinclude><br />
<br />
{{documentation}}<br />
<!-- Add categories and interwikis to the /doc subpage, not here! --><br />
</noinclude></div>
Cory