<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://horizonffxi.wiki/w/index.php?action=history&amp;feed=atom&amp;title=Template%3ANamespace%2Fdoc</id>
	<title>Template:Namespace/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://horizonffxi.wiki/w/index.php?action=history&amp;feed=atom&amp;title=Template%3ANamespace%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://horizonffxi.wiki/w/index.php?title=Template:Namespace/doc&amp;action=history"/>
	<updated>2026-04-04T09:28:44Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.10</generator>
	<entry>
		<id>https://horizonffxi.wiki/w/index.php?title=Template:Namespace/doc&amp;diff=67&amp;oldid=prev</id>
		<title>FANDOM (Fandom) at 20:44, 22 June 2022</title>
		<link rel="alternate" type="text/html" href="https://horizonffxi.wiki/w/index.php?title=Template:Namespace/doc&amp;diff=67&amp;oldid=prev"/>
		<updated>2022-06-22T20:44:24Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;This is the {{t|Namespace}} 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 Fandom into several types:&lt;br /&gt;
&lt;br /&gt;
; main : Main (i.e. article) space, where normal 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;
;user&lt;br /&gt;
;file&lt;br /&gt;
;mediawiki&lt;br /&gt;
;template&lt;br /&gt;
;help&lt;br /&gt;
;category&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).&lt;br /&gt;
&lt;br /&gt;
For backwards compatibility, this template handles &amp;#039;&amp;#039;&amp;#039;image&amp;#039;&amp;#039;&amp;#039; as if &amp;#039;&amp;#039;&amp;#039;file&amp;#039;&amp;#039;&amp;#039;. &amp;#039;&amp;#039;&amp;#039;image&amp;#039;&amp;#039;&amp;#039; (&amp;lt;nowiki&amp;gt;[[Image:...]]&amp;lt;/nowiki&amp;gt;) is now deprecated.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Note:&amp;#039;&amp;#039;&amp;#039; For most cases it may be better to use the simpler namespace detection templates (see the [[#See also|see also]] section below). This template is more prone to human errors such as misspelling parameter names.&lt;br /&gt;
&lt;br /&gt;
This template uses the [[w:Help:Lua|Lua templating language]], and more information can be found [[w:c:dev:Global_Lua_Modules/Namespace_detect|on the Global Lua Module page]]. &amp;#039;&amp;#039;&amp;#039;For a traditional wikitext version of this template, see [[w:c:templates:Template:Namespace_detect|Namespace_detect on Templates Wiki]]&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
&lt;br /&gt;
This template takes one or more parameters named after the different page types as listed above. Like this:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{{Namespace&lt;br /&gt;
 | main  = Article text&lt;br /&gt;
 | talk  = Talk page text&lt;br /&gt;
 | other = Other pages text&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If the template is on a main (article) page, it will return this:&lt;br /&gt;
: {{Namespace |demospace=main&lt;br /&gt;
   | main  = Article text&lt;br /&gt;
   | talk  = Talk page text&lt;br /&gt;
   | other = Other pages text&lt;br /&gt;
  }}&lt;br /&gt;
&lt;br /&gt;
If the template is on any other page than an article or a talk page, it will return this:&lt;br /&gt;
: {{Namespace&lt;br /&gt;
   | main  = Article text&lt;br /&gt;
   | talk  = Talk page text&lt;br /&gt;
   | other = Other pages text&lt;br /&gt;
  }}&lt;br /&gt;
&lt;br /&gt;
The example above made the template return something for all page types. But if we don&amp;#039;t use the &amp;#039;&amp;#039;&amp;#039;other&amp;#039;&amp;#039;&amp;#039; parameter or leave it empty, it will not return anything for the other page types. Like this:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{{Namespace&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&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&amp;#039;t render anything for some specific page type. Like this:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{{Namespace&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&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 &amp;#039;&amp;#039;&amp;#039;demospace&amp;#039;&amp;#039;&amp;#039; and &amp;#039;&amp;#039;&amp;#039;page&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;demospace&amp;#039;&amp;#039;&amp;#039; understands any of the page type names used by this template, including the &amp;#039;&amp;#039;&amp;#039;other&amp;#039;&amp;#039;&amp;#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&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&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 &amp;#039;&amp;#039;&amp;#039;page&amp;#039;&amp;#039;&amp;#039; parameter instead takes a normal pagename, making this template behave exactly as if on that page. The pagename doesn&amp;#039;t have to be an existing page. Like this:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{{Namespace&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&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 &amp;#039;&amp;#039;&amp;#039;demospace&amp;#039;&amp;#039;&amp;#039; and/or &amp;#039;&amp;#039;&amp;#039;page&amp;#039;&amp;#039;&amp;#039; parameter and send it on to the {{T|Namespace}} template. Like this:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{{Namespace&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 &amp;#039;&amp;#039;&amp;#039;demospace&amp;#039;&amp;#039;&amp;#039; and &amp;#039;&amp;#039;&amp;#039;page&amp;#039;&amp;#039;&amp;#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&lt;br /&gt;
| main  = &lt;br /&gt;
...&lt;br /&gt;
| other =&lt;br /&gt;
| demospace = {{{demospace|}}} / main / talk / user /&lt;br /&gt;
              file / mediawiki / template /&lt;br /&gt;
              help / category / 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;
== Technical details ==&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;
[[w: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;[[w:Help:Template|help]]&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;. Thus templates can not handle [[w:Help:Table|wikitables]] as input unless you escape them by using the &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{!}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; [[w:Help:Magic words|magic word]]. This makes it hard to use wikitables as parameters to templates. Instead, the usual solution is to use HTML wikimarkup for the table code, which is more robust.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;[[Category:General wiki templates]]{{#ifeq:{{SUBPAGENAME}}|sandbox|[[Category:Namespace manipulation templates]]}}&amp;lt;/includeonly&amp;gt;&amp;lt;noinclude&amp;gt;[[Category:Template documentation]]&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>FANDOM (Fandom)</name></author>
	</entry>
</feed>