Template:NOINDEX/doc: Difference between revisions

From the Croc Wiki, the Croc encyclopedia
Jump to navigationJump to search
Effects in different namespaces
(Effects in different namespaces)
 
(29 intermediate revisions by 20 users not shown)
Line 2:
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
=== Usage ===
This template adds <tt><nowiki>__NOINDEX__</nowiki></tt>, which may remove the page from some external search engines and automatically categorizes pages in [[:Category:Noindexed pages]]. ByThis defaultis itsometimes displaysdone noadministratively {{crossref|(see {{section link|Wikipedia:User pages#Handling inappropriate content.}})}}, but may also be done voluntarily by users to their own pages.
 
By default, the template displays no content.
Parameters:
 
*'''<nowiki>{{NOINDEX}}</nowiki>'''
<code>|visible = yes</code> - makes the template display a line of plain text to inform editors that the page is excluded from search engine indexing:
or
*'''<nowiki>{{NOINDEX|visible=yes}}</nowiki>'''
 
Parameters:
<blockquote>
{{text|This page has been removed from search engines' indexes.}}
</blockquote>
 
* <code>|visible = yes</code> - makes the template display a line of plain text to inform editors that the page is excluded from search engine indexing:
{{text* <code>|text = </code> – customise the display text; defaults to "This page has been removed from search engines' indexes.}}"
 
=== Effects in different namespaces ===
<tt><nowiki>__NOINDEX__</nowiki></tt> is disabled in [[WP:Main namespace|article space]] and this template consequently has no effect there.<ref>This is controlled by the [[MediaWiki]] software setting [[mw:Manual:$wgExemptFromUserRobotsControl|$wgExemptFromUserRobotsControl]], which defaults to [[mw:Manual:$wgContentNamespaces|$wgContentNamespaces]], which is set to main space on almost all Wikimedia projects – see [http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/includes/DefaultSettings.php?view=markup here] and [http://noc.wikimedia.org/conf/highlight.php?file=InitialiseSettings.php here].</ref>
This template has no effect in the main (article) namespace unless the article is less than 30 days old. This is to prevent abuse. All articles which include this template are assigned to [[:Category:Noindexed articles]] regardless of their age (and whether they are actually [[noindex]]ed or not).
 
This template has no effect in the <code>User:</code>, <code>User Talk:</code>, <code>Draft:</code>, or <code>Draft Talk:</code> namespaces, all of which are automatically noindexed via a software setting.
Note: major search engines should respect the NOINDEX tag, but it may take days or even weeks for content already indexed to be removed from them.
 
=== Namespace noindexingWarnings ===
'''Note:''' to avoid unexpected results or unnecessary duplication, read [[Wikipedia:Controlling search engine indexing]] to make sure you are familiar with the different ways noindexing is done.
On English Wikipedia the entire <code>user talk:</code> [[WP:NAMESPACE|namespace]] is automatically noindexed via a software setting.<ref>See [http://noc.wikimedia.org/conf/highlight.php?file=InitialiseSettings.php Wikimedia's $wgNamespaceRobotPolicies setting for enwiki]</ref>
 
This template should not be used in articles. If an article is bad enough that search engines shouldn't index it, it should be nominated for deletion. <tt><nowiki>__NOINDEX__</nowiki></tt> is disabled in [[WP:Main namespace|article space]] and this template consequently has no effect there.
=== Robots.txt noindexing ===
[[MediaWiki:Robots.txt]] noindexes sensitive or potentially sensitive pages, primarily in the Wikipedia namespace - for example [[WP:AFD|deletion debates]].
 
Note: major search engines should respect the NOINDEX tag, but it may take days or even weeks for content already indexed to be removed from them.
=== Biographies of Living Persons talkpage noindexing ===
The templates {{tl|BLP}} and {{tl|BLP others}} include the {{tl|NOINDEX}} parameter. The {{tl|BLP}} template is added automatically by the {{tl|WikiProject Biography}} talkpage template, if given the parameter <code>|living=yes</code>; see the documentation of that template for more details. Pages using {{tl|BLP}} are automatically categorised in [[:Category:Biography articles of living people]].
 
=== Related templatesTemplateData ===
{{TemplateDataHeader}}
These templates include {{tl|NOINDEX}} together with a relevant message:
<TemplateData>
* {{tl|User sandbox}}, {{tl|Userspace draft}}
{
* {{tl|Sockpuppet}}, {{tl|Sockpuppeteer}}, {{tl|IPsock}}, {{tl|Banned user}}, {{tl|Blocked user}}
"description": "This template adds __NOINDEX__ to a page, a search engine tag that prevents indexing",
See also [[:Category:Wikipedia templates which apply NOINDEX]].
"params": {
"visible": {
"label": "Visible",
"description": "When set to 'yes', the template will display a message stating that the page is not indexed.",
"type": "string",
"required": false
}
}
}
</TemplateData>
 
=== See also ===
* [[WPTemplate:NOINDEXINDEX]]
 
===Notes===
{{reflist}}
 
<includeonly>
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
[[Category:Maintenance navigation|{{PAGENAME}}]]
[[Category:Tracking templates|{{PAGENAME}}]]
 
{{basepage subpage
|<!-- CATEGORIESADD ANDCATEGORIES INTERWIKISBELOW HERE,THIS THANKSLINE -->
[[Category:Typing-aid templates]]
[[Category:Tracking templates|{{PAGENAME}}]]
[[Category:Exclude in print]]
See also [[:Category:Wikipedia templates which apply NOINDEX]].
[[ar:قالب:لا فهرسة]]
}}
[[es:Plantilla:NOINDEX]]
[[ja:Template:NOINDEX]]
[[th:แม่แบบ:NOINDEX]]
</includeonly>
0

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.

Navigation menu