
<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://zoophilia.wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=107.77.80.78</id>
	<title>Zoophilia Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://zoophilia.wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=107.77.80.78"/>
	<link rel="alternate" type="text/html" href="https://zoophilia.wiki/index.php?title=Special:Contributions/107.77.80.78"/>
	<updated>2026-06-23T04:48:52Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.45.3</generator>
	<entry>
		<id>https://zoophilia.wiki/index.php?title=Template:Namespace_detect/doc&amp;diff=114936</id>
		<title>Template:Namespace detect/doc</title>
		<link rel="alternate" type="text/html" href="https://zoophilia.wiki/index.php?title=Template:Namespace_detect/doc&amp;diff=114936"/>
		<updated>2015-05-23T23:53:06Z</updated>

		<summary type="html">&lt;p&gt;107.77.80.78: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Documentation subpage}}&lt;br /&gt;
{{High-use|75,000+}}&lt;br /&gt;
{{Lua|Module:Namespace detect}}&lt;br /&gt;
&amp;lt;!--Categories where indicated at the bottom of this page, please; interwikis at Wikidata (see [[Wikipedia:Wikidata]])--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This is the {{tl|Namespace detect}} meta-template.  It helps other templates detect what type of page they are on.&lt;br /&gt;
&lt;br /&gt;
It detects and groups all the different [[Wikipedia:Namespace#Enumeration|namespaces]] used on Wikipedia into several types:&lt;br /&gt;
&lt;br /&gt;
; main : Main (i.e. article) space, where normal Wikipedia articles are kept.&lt;br /&gt;
; talk : Any talk space, including page names that start with &amp;quot;Talk:&amp;quot;, &amp;quot;User talk:&amp;quot;, &amp;quot;File talk:&amp;quot;, etc.&lt;br /&gt;
&#039;&#039;&#039;{{hlist|user|wikipedia|file|mediawiki|template|help|category|portal|book}}&#039;&#039;&#039;&lt;br /&gt;
: The remaining namespaces.&lt;br /&gt;
; other : Any namespaces that were not specified as a parameter to the template (see explanation below).{Namespace detect&lt;br /&gt;
 | file     = File page text&lt;br /&gt;
 | category = Category page text&lt;br /&gt;
 | other    =&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
On any pages other than file and category pages the code above will render nothing.&lt;br /&gt;
&amp;lt;!-- Do not remove this one. It is supposed to render nothing, but we have it here for testing purposes. --&amp;gt;&lt;br /&gt;
: {{Namespace detect&lt;br /&gt;
   | file     = File page text&lt;br /&gt;
   | category = Category page text&lt;br /&gt;
   | other    =&lt;br /&gt;
  }}&lt;br /&gt;
&lt;br /&gt;
By using an empty parameter, you can make it so the template doesn&#039;t render anything for some specific page type. Like this:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{{Namespace detect&lt;br /&gt;
 | main  = &lt;br /&gt;
 | other = Other pages text&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The code above will render nothing when on mainspace (article) pages, but will return this when on other pages:&lt;br /&gt;
: {{Namespace detect&lt;br /&gt;
   | main  = &lt;br /&gt;
   | other = Other pages text&lt;br /&gt;
  }}&lt;br /&gt;
&lt;br /&gt;
== Demospace and page ==&lt;br /&gt;
&lt;br /&gt;
For testing and demonstration purposes, this template can take two parameters named &#039;&#039;&#039;demospace&#039;&#039;&#039; and &#039;&#039;&#039;page&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;demospace&#039;&#039;&#039; understands any of the page type names used by this template, including the &#039;&#039;&#039;other&#039;&#039;&#039; type. It tells the template to behave like it is on some specific type of page. Like this:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{{Namespace detect&lt;br /&gt;
 | main  = Article text&lt;br /&gt;
 | other = Other pages text&lt;br /&gt;
 | demospace = main&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
No matter on what kind of page the code above is used, it will return this:&lt;br /&gt;
: {{Namespace detect&lt;br /&gt;
   | main  = Article text&lt;br /&gt;
   | other = Other pages text&lt;br /&gt;
   | demospace = main&lt;br /&gt;
  }}&lt;br /&gt;
&lt;br /&gt;
The &#039;&#039;&#039;page&#039;&#039;&#039; parameter instead takes a normal pagename, making this template behave exactly as if on that page. The pagename doesn&#039;t have to be an existing page. Like this:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{{Namespace detect&lt;br /&gt;
 | user  = User page text&lt;br /&gt;
 | other = Other pages text&lt;br /&gt;
 | page  = User:Example&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
No matter on what kind of page the code above is used, it will return this:&lt;br /&gt;
: {{Namespace detect&lt;br /&gt;
   | user  = User page text&lt;br /&gt;
   | other = Other pages text&lt;br /&gt;
   | page  = User:Example&lt;br /&gt;
  }}&lt;br /&gt;
&lt;br /&gt;
It can be convenient to let your template understand the &#039;&#039;&#039;demospace&#039;&#039;&#039; and/or &#039;&#039;&#039;page&#039;&#039;&#039; parameter and send it on to the {{tl|Namespace detect}} template. Like this:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{{Namespace detect&lt;br /&gt;
 | main  = Article text&lt;br /&gt;
 | other = Other pages text&lt;br /&gt;
 | demospace = {{{demospace|}}}&lt;br /&gt;
 | page  = {{{page|}}}&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If both the &#039;&#039;&#039;demospace&#039;&#039;&#039; and &#039;&#039;&#039;page&#039;&#039;&#039; parameters are empty or undefined, the template will detect page types as usual.&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
&lt;br /&gt;
List of all parameters:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{{Namespace detect&lt;br /&gt;
| main  = &lt;br /&gt;
...&lt;br /&gt;
| other =&lt;br /&gt;
| demospace = {{{demospace|}}} / main / talk / user /&lt;br /&gt;
              wikipedia / file / mediawiki / template /&lt;br /&gt;
              help / category / portal / book / other&lt;br /&gt;
| page  = {{{page|}}} / User:Example&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note: Empty values to the &amp;quot;main&amp;quot; ... &amp;quot;book&amp;quot; parameters have special meaning.&lt;br /&gt;
&lt;br /&gt;
== Technical details ==&lt;br /&gt;
&lt;br /&gt;
Namespace &amp;quot;Image&amp;quot; was renamed to &amp;quot;File&amp;quot; on 11 December 2008. This template was updated to understand both names well before that, thus it still works fine. For backwards compatibility it still understands &amp;quot;image&amp;quot; both as a parameter name, such as &amp;quot;image&amp;amp;nbsp;= File page text&amp;quot;, and as a value &amp;quot;demospace&amp;amp;nbsp;= image&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Namespace &amp;quot;Book&amp;quot; was added to the English Wikipedia on 28 December 2009. This template has been updated so it detects the &amp;quot;Book:&amp;quot; namespace as type &#039;&#039;&#039;book&#039;&#039;&#039;. It already automatically detected &amp;quot;Book talk:&amp;quot; as type &#039;&#039;&#039;talk&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
If you intend to feed tables as content to the numbered parameters of this template, you need to know this:&lt;br /&gt;
&lt;br /&gt;
[[Help:Template|Templates]] have a problem handling parameter data that contains pipes &amp;quot;&amp;lt;code&amp;gt;|&amp;lt;/code&amp;gt;&amp;quot; unless the pipe is inside another template &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{name|param1}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; or inside a piped link &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;[[Help:Template|help]]&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;. Thus templates can not handle [[Help:Table|wikitables]] as input unless you escape them by using the {{tn|!}} template. This makes it hard to use wikitables as parameters to templates. Instead, the usual solution is to use &amp;quot;[[Help:HTML in wikitext|HTML wikimarkup]]&amp;quot; for the table code, which is more robust.&lt;br /&gt;
&lt;br /&gt;
For more technical details, e.g. about copying this template to other projects and CSS-based namespace detection, see {{tl|Main talk other}} and its talk page.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
{{Namespace and pagename-detecting templates}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;{{#ifeq:{{SUBPAGENAME}}|sandbox |&lt;br /&gt;
| &amp;lt;!--Categories below this line, please; interwikis at Wikidata--&amp;gt;&lt;br /&gt;
[[Category:Namespace manipulation templates]]&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>107.77.80.78</name></author>
	</entry>
</feed>