<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://wiki.cloudmodding.com/zgcn/Template:Namespace_detect/history?feed=atom</id>
		<title>Template:Namespace detect - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://wiki.cloudmodding.com/zgcn/Template:Namespace_detect/history?feed=atom"/>
		<link rel="alternate" type="text/html" href="https://wiki.cloudmodding.com/zgcn/Template:Namespace_detect/history"/>
		<updated>2026-05-20T10:08:52Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>https://wiki.cloudmodding.com/wzgcn/index.php?title=Template:Namespace_detect&amp;diff=54&amp;oldid=prev</id>
		<title>Gamma at 06:26, 10 November 2015</title>
		<link rel="alternate" type="text/html" href="https://wiki.cloudmodding.com/wzgcn/index.php?title=Template:Namespace_detect&amp;diff=54&amp;oldid=prev"/>
				<updated>2015-11-10T06:26:12Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr style=&quot;vertical-align: top;&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 06:26, 10 November 2015&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l47&quot; &gt;Line 47:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 47:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;}}&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;}}&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The results of this example should be roughly self-explanatory: if called on the main or help namespaces, the first two messages will appear, respectively. If called on ''any other namespace'', the &amp;quot;other&amp;quot; message will appear. To show nothing at all, parameters may be left out entirely.&amp;lt;/noinclude&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The results of this example should be roughly self-explanatory: if called on the main or help namespaces, the first two messages will appear, respectively. If called on ''any other namespace'', the &amp;quot;other&amp;quot; message will appear. To show nothing at all, parameters may be left out entirely.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;[[Category: Templates]]&lt;/ins&gt;&amp;lt;/noinclude&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Gamma</name></author>	</entry>

	<entry>
		<id>https://wiki.cloudmodding.com/wzgcn/index.php?title=Template:Namespace_detect&amp;diff=52&amp;oldid=prev</id>
		<title>Gamma: Created page with &quot;{{#switch:   {{lc:               &lt;!--Lower case the result--&gt;     &lt;!--If no or empty &quot;demospace&quot; parameter then detect namespace--&gt;     {{#if:{{{demospace|}}}      | {{{demosp...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.cloudmodding.com/wzgcn/index.php?title=Template:Namespace_detect&amp;diff=52&amp;oldid=prev"/>
				<updated>2015-11-10T06:21:15Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{#switch:   {{lc:               &amp;lt;!--Lower case the result--&amp;gt;     &amp;lt;!--If no or empty &amp;quot;demospace&amp;quot; parameter then detect namespace--&amp;gt;     {{#if:{{{demospace|}}}      | {{{demosp...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{#switch:&lt;br /&gt;
  {{lc:               &amp;lt;!--Lower case the result--&amp;gt;&lt;br /&gt;
    &amp;lt;!--If no or empty &amp;quot;demospace&amp;quot; parameter then detect namespace--&amp;gt;&lt;br /&gt;
    {{#if:{{{demospace|}}} &lt;br /&gt;
    | {{{demospace}}}&lt;br /&gt;
    | {{#if:{{{page|}}} &lt;br /&gt;
      | &amp;lt;!--Detect the namespace in the &amp;quot;page&amp;quot; parameter--&amp;gt;&lt;br /&gt;
        {{#ifeq:{{NAMESPACE:{{{page}}} }}|{{TALKSPACE:{{{page}}} }}&lt;br /&gt;
        | talk&lt;br /&gt;
        | {{SUBJECTSPACE:{{{page}}} }} &lt;br /&gt;
        }}&lt;br /&gt;
      | &amp;lt;!--No &amp;quot;demospace&amp;quot; or &amp;quot;page&amp;quot; parameters, so detect actual namespace--&amp;gt;&lt;br /&gt;
        {{#ifeq:{{NAMESPACE}}|{{TALKSPACE}}&lt;br /&gt;
        | talk&lt;br /&gt;
        | {{SUBJECTSPACE}} &lt;br /&gt;
        }}&lt;br /&gt;
      }}&lt;br /&gt;
    }}&lt;br /&gt;
  }}&lt;br /&gt;
&amp;lt;!-- Only one of the lines below will be executed --&amp;gt;&lt;br /&gt;
&amp;lt;!-- Respecting empty parameters on purpose --&amp;gt;&lt;br /&gt;
| main        &amp;lt;!--&amp;quot;demospace=main&amp;quot; or {{SUBJECTSPACE}}={{ns:0}}=&amp;quot;&amp;quot;--&amp;gt;&lt;br /&gt;
|           = {{{main| {{{other|}}} }}}&lt;br /&gt;
| talk      = {{{talk| {{{other|}}} }}}&lt;br /&gt;
| user      = {{{user| {{{other|}}} }}}&lt;br /&gt;
| project = {{{project| {{{other|}}} }}}&lt;br /&gt;
| file&lt;br /&gt;
| image     = {{{file| {{{image| {{{other|}}} }}} }}}&lt;br /&gt;
| mediawiki = {{{mediawiki| {{{other|}}} }}}&lt;br /&gt;
| template  = {{{template| {{{other|}}} }}}&lt;br /&gt;
| help      = {{{help| {{{other|}}} }}}&lt;br /&gt;
| category  = {{{category| {{{other|}}} }}}&lt;br /&gt;
| book      = {{{book| {{{other|}}} }}}&lt;br /&gt;
| other&lt;br /&gt;
| #default  = {{{other|}}}   &amp;lt;!--&amp;quot;demospace=other&amp;quot; or a new namespace--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
}}&amp;lt;!--End switch--&amp;gt;&amp;lt;noinclude&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This template, '''&amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;{{namespace detect}}&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;''', is intended for background usage, generally in other templates, so it's not really meant for end-users to worry about. It functions to identify the current namespace and return content tailored to that namespace. &lt;br /&gt;
&lt;br /&gt;
==Usage==&lt;br /&gt;
The template should be called with parameters for each namespace to be used, e.g.:&lt;br /&gt;
&amp;lt;pre&amp;gt;{{namespace detect&lt;br /&gt;
 | main=  Hello world!&lt;br /&gt;
 | help=  How's it going, world?&lt;br /&gt;
 | other= Goodbye, cruel world!&lt;br /&gt;
}}&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The results of this example should be roughly self-explanatory: if called on the main or help namespaces, the first two messages will appear, respectively. If called on ''any other namespace'', the &amp;quot;other&amp;quot; message will appear. To show nothing at all, parameters may be left out entirely.&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Gamma</name></author>	</entry>

	</feed>