http://en.wikisage.org/w/index.php?title=Template:Namespace_detect&feed=atom&action=history
Template:Namespace detect - Revision history
2024-03-28T22:01:57Z
Revision history for this page on the wiki
MediaWiki 1.41.0
http://en.wikisage.org/w/index.php?title=Template:Namespace_detect&diff=863&oldid=prev
Rodejong: http://en.wikipedia.org/w/index.php?title=Template:Namespace_detect&oldid=388733912
2012-01-24T22:59:36Z
<p>http://en.wikipedia.org/w/index.php?title=Template:Namespace_detect&oldid=388733912</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--></div>
Rodejong