<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.limswiki.org/index.php?action=history&amp;feed=atom&amp;title=Module%3ANamespace_detect%2Fdoc</id>
	<title>Module:Namespace detect/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.limswiki.org/index.php?action=history&amp;feed=atom&amp;title=Module%3ANamespace_detect%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://www.limswiki.org/index.php?title=Module:Namespace_detect/doc&amp;action=history"/>
	<updated>2026-04-04T20:50:25Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.36.1</generator>
	<entry>
		<id>https://www.limswiki.org/index.php?title=Module:Namespace_detect/doc&amp;diff=13175&amp;oldid=prev</id>
		<title>Shawndouglas: Internal link.</title>
		<link rel="alternate" type="text/html" href="https://www.limswiki.org/index.php?title=Module:Namespace_detect/doc&amp;diff=13175&amp;oldid=prev"/>
		<updated>2013-10-31T00:09:53Z</updated>

		<summary type="html">&lt;p&gt;Internal link.&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&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 class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 00:09, 31 October 2013&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-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; 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;This module allows you to output different text depending on the [[&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;LIMSWiki&lt;/del&gt;:Namespaces|namespace]] that a given page is in. It is a Lua implementation of the {{tl|namespace detect}} template, with a few improvements: all namespaces and all namespace aliases are supported, and namespace names are detected automatically for the local wiki.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; 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;This module allows you to output different text depending on the [[&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Help&lt;/ins&gt;:Namespaces|namespace]] that a given page is in. It is a Lua implementation of the {{tl|namespace detect}} template, with a few improvements: all namespaces and all namespace aliases are supported, and namespace names are detected automatically for the local wiki.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Usage ==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Usage ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Shawndouglas</name></author>
	</entry>
	<entry>
		<id>https://www.limswiki.org/index.php?title=Module:Namespace_detect/doc&amp;diff=13171&amp;oldid=prev</id>
		<title>Shawndouglas: Created as needed.</title>
		<link rel="alternate" type="text/html" href="https://www.limswiki.org/index.php?title=Module:Namespace_detect/doc&amp;diff=13171&amp;oldid=prev"/>
		<updated>2013-10-30T23:59:28Z</updated>

		<summary type="html">&lt;p&gt;Created as needed.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;This module allows you to output different text depending on the [[LIMSWiki:Namespaces|namespace]] that a given page is in. It is a Lua implementation of the {{tl|namespace detect}} template, with a few improvements: all namespaces and all namespace aliases are supported, and namespace names are detected automatically for the local wiki.&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{{#invoke: Namespace detect | main&lt;br /&gt;
| page              = &amp;lt;!-- page to detect namespace for, if not the current page --&amp;gt;&lt;br /&gt;
| main              = &amp;lt;!-- text to return for the main namespace --&amp;gt;&lt;br /&gt;
| talk              = &amp;lt;!-- text to return for talk namespaces --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- text to return for specific subject namespaces --&amp;gt;&lt;br /&gt;
| portal            = &lt;br /&gt;
| category          = &lt;br /&gt;
| user 	            = &lt;br /&gt;
| wikipedia         = &lt;br /&gt;
| wp                = &lt;br /&gt;
| education program = &lt;br /&gt;
| mediawiki         = &lt;br /&gt;
| book              = &lt;br /&gt;
| timedtext         = &lt;br /&gt;
| template          = &lt;br /&gt;
| special           = &lt;br /&gt;
| media             = &lt;br /&gt;
| file              = &lt;br /&gt;
| image             = &lt;br /&gt;
| help 	            = &lt;br /&gt;
| module            = &lt;br /&gt;
&lt;br /&gt;
| other             = &amp;lt;!-- text to return for unspecified namespaces --&amp;gt;&lt;br /&gt;
| demospace         = &amp;lt;!-- namespace to display text for --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
| subjectns         = &amp;lt;!-- set to &amp;quot;yes&amp;quot; to treat talk pages as the corresponding subject page --&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
&lt;br /&gt;
* '''main''' - text to return if the page is in the main namespace.&lt;br /&gt;
* '''talk''' - text to return if the page is in a talk namespace. This can be any talk namespace - it will match any of &amp;quot;Talk:&amp;quot;, &amp;quot;LIMSWiki talk:&amp;quot;, &amp;quot;User talk:&amp;quot;, etc.&lt;br /&gt;
* Subject namespace parameters, e.g. '''limswiki''', '''user''', '''file'''... - the text to return if the page is in the corresponding namespace. This module accepts all subject namespaces as parameters, including namespace aliases and virtual namespaces. See below for a list of supported values.&lt;br /&gt;
* '''other''' - text to return if no parameters for the page's namespace were specified. This text is also returned if {{para|demospace}} is set to an invalid namespace value.&lt;br /&gt;
* '''subjectns''' - if on a talk page, use the corresponding subject page. Can be set with values of &amp;quot;yes&amp;quot;, &amp;quot;y&amp;quot;, &amp;quot;true&amp;quot; or &amp;quot;1&amp;quot;.&lt;br /&gt;
* '''page''' - specifies a page to detect the namespace of. If not specified, and if the {{para|demospace}} parameter is not set, then the module uses the current page.&lt;br /&gt;
* '''demospace''' - force the module to behave as if the page was in the specified namespace. Often used for demonstrations. &lt;br /&gt;
&lt;br /&gt;
=== Namespace parameters ===&lt;br /&gt;
&lt;br /&gt;
Possible values for subject namespace parameters are as follows:&lt;br /&gt;
&lt;br /&gt;
{{#invoke:Namespace detect|table}}&lt;br /&gt;
&lt;br /&gt;
== Table function ==&lt;br /&gt;
&lt;br /&gt;
Use the following to display a table with the different possible namespace parameters:&lt;br /&gt;
&lt;br /&gt;
 &amp;amp;#123;&amp;amp;#123;#invoke:Namespace detect|table|talk=''yes''&amp;amp;#125;&amp;amp;#125;&lt;br /&gt;
&lt;br /&gt;
To include the parameter for talk namespaces, use {{para|talk|yes}}.&lt;br /&gt;
&lt;br /&gt;
== Porting to different wikis ==&lt;br /&gt;
&lt;br /&gt;
This module is designed to be portable. To use it on a different wiki, all you need to do is to change the values in the &amp;quot;cfg&amp;quot; table.&lt;/div&gt;</summary>
		<author><name>Shawndouglas</name></author>
	</entry>
</feed>