This template sets the __INDEX__
behavior switch, a
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.
On English Wikipedia, __INDEX__
and {{INDEX}}
should only be used on
User and User talk pages, where they override the default, which is not to index these pages.
|visible = yes
: makes the template display a line of plain text to inform editors that the page is included in search engine indexing, e.g. {{
INDEX|visible = yes}}
shows the message:|demo = yes
: makes {{
INDEX}} work even if it is placed in the wrong namespace so that examples of the template can function, e.g. on this doc page – {{
INDEX|visible = yes|demo = yes}}
renders as:__INDEX__
overrides
$wgNamespaceRobotPolicies, but not robots.txt
. It obeys the
$wgExemptFromUserRobotsControl variable. On English Wikipedia,
MediaWiki:Robots.txt is used in lieu of
$wgArticleRobotPolicies.
On English Wikipedia, the default robot policy for the entire wiki is to index all pages. This default has been overridden in these namespaces:
Additionally certain selected pages, primarily in Wikipedia and Wikipedia talk, are not indexed, as defined in MediaWiki:Robots.txt.
Mainspace, Draft and Draft talk are exempt from user control, so __INDEX__
is disabled in these namespaces; such use is not tracked (see below), and this template consequently has no effect there.
As all other namespaces are indexed by default, and robots.txt cannot be overridden by __INDEX__
, the only namespaces where it overrides the default are User and User talk; however use in other namespaces is tracked.
This template was originally used as a tracking mechanism for __INDEX__
usage; valid uses are now tracked by
Category:Indexed pages.
$wgDefaultRobotPolicy = 'index,follow';
'wgNamespaceRobotPolicies' => array('enwiki' => array(NS_USER_TALK => 'noindex,follow',))
, implementing
T15890This template sets the __INDEX__
behavior switch, a
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.
On English Wikipedia, __INDEX__
and {{INDEX}}
should only be used on
User and User talk pages, where they override the default, which is not to index these pages.
|visible = yes
: makes the template display a line of plain text to inform editors that the page is included in search engine indexing, e.g. {{
INDEX|visible = yes}}
shows the message:|demo = yes
: makes {{
INDEX}} work even if it is placed in the wrong namespace so that examples of the template can function, e.g. on this doc page – {{
INDEX|visible = yes|demo = yes}}
renders as:__INDEX__
overrides
$wgNamespaceRobotPolicies, but not robots.txt
. It obeys the
$wgExemptFromUserRobotsControl variable. On English Wikipedia,
MediaWiki:Robots.txt is used in lieu of
$wgArticleRobotPolicies.
On English Wikipedia, the default robot policy for the entire wiki is to index all pages. This default has been overridden in these namespaces:
Additionally certain selected pages, primarily in Wikipedia and Wikipedia talk, are not indexed, as defined in MediaWiki:Robots.txt.
Mainspace, Draft and Draft talk are exempt from user control, so __INDEX__
is disabled in these namespaces; such use is not tracked (see below), and this template consequently has no effect there.
As all other namespaces are indexed by default, and robots.txt cannot be overridden by __INDEX__
, the only namespaces where it overrides the default are User and User talk; however use in other namespaces is tracked.
This template was originally used as a tracking mechanism for __INDEX__
usage; valid uses are now tracked by
Category:Indexed pages.
$wgDefaultRobotPolicy = 'index,follow';
'wgNamespaceRobotPolicies' => array('enwiki' => array(NS_USER_TALK => 'noindex,follow',))
, implementing
T15890