<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://moasspedia.org/w/index.php?action=history&amp;feed=atom&amp;title=Template%3AINDEX%2Fdoc</id>
	<title>Template:INDEX/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://moasspedia.org/w/index.php?action=history&amp;feed=atom&amp;title=Template%3AINDEX%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://moasspedia.org/w/index.php?title=Template:INDEX/doc&amp;action=history"/>
	<updated>2026-04-11T07:57:28Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.37.2</generator>
	<entry>
		<id>https://moasspedia.org/w/index.php?title=Template:INDEX/doc&amp;diff=18735&amp;oldid=prev</id>
		<title>Wikipedia&gt;Godsy: /* Optional parameters */ -cat</title>
		<link rel="alternate" type="text/html" href="https://moasspedia.org/w/index.php?title=Template:INDEX/doc&amp;diff=18735&amp;oldid=prev"/>
		<updated>2022-02-04T08:09:26Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Optional parameters: &lt;/span&gt; -cat&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Documentation subpage}}&lt;br /&gt;
&amp;lt;!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --&amp;gt;&lt;br /&gt;
== Usage ==&lt;br /&gt;
This template sets the &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;__INDEX__&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; behavior switch, a [[Help:Magic words|magic word]] which instructs search engines to index the page. The only difference between the template and the magic word is that the template may optionally display a message.&lt;br /&gt;
&lt;br /&gt;
On English Wikipedia, &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;__INDEX__&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{INDEX}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; should only be used on [[Wikipedia:User pages|User and User talk pages]], where they override the default, which is not to index these pages.&lt;br /&gt;
&lt;br /&gt;
===Optional parameters===&lt;br /&gt;
* &amp;lt;code&amp;gt;|visible = yes&amp;lt;/code&amp;gt; : makes the template display a line of plain text to inform editors that the page is included in search engine indexing, e.g. {{tlx|INDEX|2=visible = yes}} shows the message:&lt;br /&gt;
::{{#ifeq:{{{demo}}}|yes| __INDEX__{{#ifeq:yes|yes|This page has been added to search engine indexes.}}|{{#switch:{{NAMESPACENUMBER}}&lt;br /&gt;
|2&lt;br /&gt;
|3 = __INDEX__{{#ifeq:yes|yes|This page has been added to search engine indexes.}}&lt;br /&gt;
|#default = &amp;lt;span class=&amp;quot;error&amp;quot;&amp;gt;Please use {{tl|INDEX}} only within the User and User talk: namespaces, as those are the only two in which it has an effect.&amp;lt;/span&amp;gt;&lt;br /&gt;
}}}}&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;|demo = yes&amp;lt;/code&amp;gt; : makes {{tl|INDEX}} work even if it is placed in the wrong namespace so that &amp;#039;&amp;#039;examples&amp;#039;&amp;#039; of the template can function, e.g. on this doc page – {{tlx|INDEX|2=visible = yes|3=demo = yes}} renders as:&lt;br /&gt;
::{{INDEX|visible=yes|demo = yes}}&lt;br /&gt;
&lt;br /&gt;
==Technical details==&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;__INDEX__&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; overrides [[mw:Manual:$wgNamespaceRobotPolicies|$wgNamespaceRobotPolicies]], but not &amp;lt;code&amp;gt;robots.txt&amp;lt;/code&amp;gt;. It obeys the [[mw:Manual:$wgExemptFromUserRobotsControl|$wgExemptFromUserRobotsControl]] variable. On English Wikipedia, [[MediaWiki:Robots.txt]] is used in lieu of [[mw:Manual:$wgArticleRobotPolicies|$wgArticleRobotPolicies]].&lt;br /&gt;
&lt;br /&gt;
On English Wikipedia, the default robot policy for the entire wiki is to index all pages. This default has been overridden in these namespaces:&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;User talk&amp;#039;&amp;#039;&amp;#039; is not indexed, as of September 2008&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;[[Wikipedia:Drafts|Draft]]&amp;#039;&amp;#039;&amp;#039; and &amp;#039;&amp;#039;&amp;#039;Draft talk&amp;#039;&amp;#039;&amp;#039; are not indexed, as of December 2013&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;User&amp;#039;&amp;#039;&amp;#039; is not indexed, as of November 2015&lt;br /&gt;
Additionally certain selected pages, primarily in &amp;#039;&amp;#039;&amp;#039;Wikipedia&amp;#039;&amp;#039;&amp;#039; and &amp;#039;&amp;#039;&amp;#039;Wikipedia talk&amp;#039;&amp;#039;&amp;#039;, are not indexed, as defined in [[MediaWiki:Robots.txt]].&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;[[Wikipedia:Mainspace|Mainspace]]&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;Draft&amp;#039;&amp;#039;&amp;#039; and &amp;#039;&amp;#039;&amp;#039;Draft talk&amp;#039;&amp;#039;&amp;#039; are exempt from user control, so &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;__INDEX__&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; is disabled in these namespaces; such use is not tracked (see below), and this template consequently has no effect there.&lt;br /&gt;
&lt;br /&gt;
As all other namespaces are indexed by default, and robots.txt cannot be overridden by &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;__INDEX__&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;, the only namespaces where it overrides the default are &amp;#039;&amp;#039;&amp;#039;User&amp;#039;&amp;#039;&amp;#039; and &amp;#039;&amp;#039;&amp;#039;User talk&amp;#039;&amp;#039;&amp;#039;; however use in other namespaces is tracked.&lt;br /&gt;
&lt;br /&gt;
===Usage tracking===&lt;br /&gt;
This template was originally used as a tracking mechanism for &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;__INDEX__&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; usage; valid uses are now tracked by [[:Category:Indexed pages]].&lt;br /&gt;
&lt;br /&gt;
===History===&lt;br /&gt;
* Added [[mw:Manual:$wgNamespaceRobotPolicies|$wgNamespaceRobotPolicies]] to allow customisation of robot policies on a per-namespace basis ([https://phabricator.wikimedia.org/rSVN14559 June 4, 2006])&lt;br /&gt;
* Added [[mw:Manual:$wgContentNamespaces|$wgContentNamespaces]], which allows for articles to exist in namespaces other than the main namespace, and still be counted as valid content in the site statistics ([https://phabricator.wikimedia.org/rSVN14738 June 12, 2006])&lt;br /&gt;
* Added [[mw:Manual:$wgArticleRobotPolicies|$wgArticleRobotPolicies]] ([https://phabricator.wikimedia.org/rSVN22615 May 31, 2007])&lt;br /&gt;
*:These override the per-namespace robot policies; en.wiki uses [[MediaWiki:Robots.txt]] in lieu of this configuration setting&lt;br /&gt;
* The default robot policy for the entire wiki is now configurable via the [[mw:Manual:$wgDefaultRobotPolicy|$wgDefaultRobotPolicy]] setting ([https://phabricator.wikimedia.org/rSVN30602 February 6, 2008])&lt;br /&gt;
*:The default policy is to encourage indexing and following of links: &amp;lt;code&amp;gt;$wgDefaultRobotPolicy = &amp;#039;index,follow&amp;#039;;&amp;lt;/code&amp;gt;&lt;br /&gt;
* [http://blog.wikimedia.org/2008/04/29/robotstxt/ Wikimedia blog: robots.txt] (April 29, 2008)&lt;br /&gt;
* {{section link|Wikipedia:Village pump (proposals)/Archive 25|Stopping search engines from indexing the user talk namespace?}} (April 29–30, 2008)&lt;br /&gt;
* {{phab|T15890}}: add user talk namespace of En.Wikipedia to Robots.txt (April 30, 2008)&lt;br /&gt;
* Added [[mw:Manual:$wgExemptFromUserRobotsControl|$wgExemptFromUserRobotsControl]] ([https://phabricator.wikimedia.org/rSVN37973 July 23, 2008])&lt;br /&gt;
*: [[Wikipedia:Wikipedia Signpost/2008-07-28/Technology report|New magic words &amp;lt;nowiki&amp;gt;__INDEX__&amp;lt;/nowiki&amp;gt; and &amp;lt;nowiki&amp;gt;__NOINDEX__&amp;lt;/nowiki&amp;gt; control whether a page can be indexed by search engines]], &amp;#039;&amp;#039;Wikipedia Signpost&amp;#039;&amp;#039;, July 28, 2008&lt;br /&gt;
* [[Template:NOINDEX]] is created on August 9, 2008‎&lt;br /&gt;
* [[Template:INDEX]] is created on August 30, 2008‎&lt;br /&gt;
* [[Wikipedia:Administrators&amp;#039; noticeboard/Archive168#Search engine indexing updates|Search engine indexing updates]] (Sept 13, 2008)&lt;br /&gt;
*#Control [https://en.wikipedia.org/robots.txt en.wiki&amp;#039;s robots.txt file] from the wiki at [[MediaWiki:Robots.txt]]&lt;br /&gt;
*#Update [https://noc.wikimedia.org/conf/highlight.php?file=InitialiseSettings.php InitialiseSettings.php]: &amp;lt;code&amp;gt;&amp;#039;wgNamespaceRobotPolicies&amp;#039; =&amp;gt; array(&amp;#039;enwiki&amp;#039; =&amp;gt; array(NS_USER_TALK =&amp;gt; &amp;#039;noindex,follow&amp;#039;,))&amp;lt;/code&amp;gt;, implementing {{phab|T15890}}&lt;br /&gt;
* [[Wikipedia:Search engine indexing]], a January 2009 proposal which failed to achieve consensus&lt;br /&gt;
* {{phab|T18979}}: Tracking category for the NOINDEX and INDEX behavior switches (Jan. 11, 2009)&lt;br /&gt;
* On [[Special:Diff/272591874|February 22, 2009]], {{tl|NOINDEX}} begins populating [[:Category:Wikipedia noindex pages]]. {{tl|INDEX}} does not populate any categories&lt;br /&gt;
* {{section link|Wikipedia:Village pump (proposals)/Archive 44|Require use of NOINDEX template instead of directly using magic word}} (Feb. 27–March 5, 2009)&lt;br /&gt;
* [https://phabricator.wikimedia.org/rSVN56688 Add tracking categories for &amp;lt;nowiki&amp;gt;__INDEX__&amp;lt;/nowiki&amp;gt; and &amp;lt;nowiki&amp;gt;__NOINDEX__&amp;lt;/nowiki&amp;gt;] • [https://www.mediawiki.org/wiki/Special:Code/MediaWiki/56688 code review] (Sept. 20, 2009)&lt;br /&gt;
* [[:Category:Noindexed pages]] is created on October 7, 2009; concurrent with [[User talk:Happy-melon/Archive 11#Category:Noindexed pages?|this discussion]]. See also: {{section link|Wikipedia:Village pump (technical)/Archive 66|Noindex categories}}&lt;br /&gt;
* [[:Category:Indexed pages]] is created on October 9, 2009&lt;br /&gt;
* Per {{section link|Wikipedia:Categories for discussion/Log/2010 June 15|Noindexed pages}}, [[:Category:Wikipedia noindex pages]] is deleted on July 18, 2010&lt;br /&gt;
* [https://phabricator.wikimedia.org/rOMWCa6b09501a502249a549e0b71c887c655f86ada67 Create &amp;quot;Draft&amp;quot; namespace on the English Wikipedia] (Dec 17, 2013)&lt;br /&gt;
* {{phab|T104797}}: prevent search engines from indexing userspace on enwiki (July 5, 2015)&lt;br /&gt;
* [https://phabricator.wikimedia.org/rOMWC47413794ba09cd4496c11a6db30e79d3e4a5842d noindex user namespace on en.wikipedia.org] (Nov 23, 2015)&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
* [https://en.wikipedia.org/w/index.php?title=Special:Search&amp;amp;profile=advanced&amp;amp;search=insource:/__INDEX_/&amp;amp;fulltext=Search&amp;amp;ns0=1&amp;amp;profile=advanced Articles using the INDEX magic word]&lt;br /&gt;
* [https://en.wikipedia.org/w/index.php?title=Special%3ASearch&amp;amp;profile=advanced&amp;amp;search=insource%3A%2F__INDEX_%2F&amp;amp;fulltext=Search&amp;amp;ns118=1&amp;amp;ns119=1&amp;amp;profile=advanced Drafts using the INDEX magic word]&lt;br /&gt;
* [[Template:NOINDEX]]&lt;br /&gt;
* [[Wikipedia:Controlling search engine indexing]]&lt;br /&gt;
===MediaWiki===&lt;br /&gt;
* [[MediaWiki:Robots.txt]]&lt;br /&gt;
* [[mw:Manual:Configuration settings#Robot policies]]&lt;br /&gt;
* [https://github.com/wikimedia/mediawiki/blob/master/includes/DefaultSettings.php#L7112 Default robot policy] (github.com)&lt;br /&gt;
* [https://phabricator.wikimedia.org/diffusion/MW/browse/master/includes/DefaultSettings.php$7112 Default robot policy] (git.wikimedia.org)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;{{Sandbox other||&lt;br /&gt;
&amp;lt;!-- CATEGORIES AND INTERWIKIS HERE, THANKS --&amp;gt;&lt;br /&gt;
[[Category:Typing-aid templates|{{PAGENAME}}]]&lt;br /&gt;
[[Category:Tracking templates|{{PAGENAME}}]]&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>Wikipedia&gt;Godsy</name></author>
	</entry>
</feed>