Template:NOINDEX/doc: Difference between revisions

From the Croc Wiki, the Croc encyclopedia
Jump to navigationJump to search
Content added Content deleted
(Removed sitelinks migrated to Wikidata)
(Effects in different namespaces)
 
(13 intermediate revisions by 11 users not shown)
Line 2: Line 2:
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
=== Usage ===
=== Usage ===
This template adds <tt><nowiki>__NOINDEX__</nowiki></tt>, which may remove the page from some search engines and automatically categorizes pages in [[:Category:Noindexed pages]]. By default, it displays no content.
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]]. This is sometimes done administratively {{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.

*'''<nowiki>{{NOINDEX}}</nowiki>'''
or
*'''<nowiki>{{NOINDEX|visible=yes}}</nowiki>'''


Parameters:
Parameters:


<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:
* <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:
* <code>|text = </code> – customise the display text; defaults to "This page has been removed from search engines' indexes."


=== Effects in different namespaces ===
<blockquote>
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).
{{text|This page has been removed from search engines' indexes.}}
</blockquote>


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.
===Warnings===

=== Warnings ===
'''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.
'''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.


<tt><nowiki>__NOINDEX__</nowiki></tt> is disabled in [[WP:Main namespace|article space]] and this template consequently has no effect there.
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.


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.
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.


===Notes===
=== TemplateData ===
{{TemplateDataHeader}}
{{reflist}}
<TemplateData>
{
"description": "This template adds __NOINDEX__ to a page, a search engine tag that prevents indexing",
"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 ===
* [[Template:INDEX]]


{{basepage subpage
{{basepage subpage
|<!-- ADD CATEGORIES BELOW THIS LINE -->
|<!-- ADD CATEGORIES BELOW THIS LINE -->
[[Category:Maintenance navigation]]
[[Category:Typing-aid templates]]
[[Category:Tracking templates]]
[[Category:Tracking templates]]
[[Category:Exclude in print]]
[[Category:Exclude in print]]
[[Category:Wikipedia templates which apply NOINDEX]]
}}
}}

Latest revision as of 20:27, November 16, 2016

Usage

This template adds __NOINDEX__, which may remove the page from some external search engines and automatically categorizes pages in Category:Noindexed pages. This is sometimes done administratively

  1. REDIRECT Template:Crossreference

, but may also be done voluntarily by users to their own pages.

By default, the template displays no content.

  • {{NOINDEX}}

or

  • {{NOINDEX|visible=yes}}

Parameters:

  • |visible = yes – makes the template display a line of plain text to inform editors that the page is excluded from search engine indexing:
  • |text = – customise the display text; defaults to "This page has been removed from search engines' indexes."

Effects in different namespaces

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 noindexed or not).

This template has no effect in the User:, User Talk:, Draft:, or Draft Talk: namespaces, all of which are automatically noindexed via a software setting.

Warnings

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.

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. __NOINDEX__ is disabled in article space and this template consequently has no effect there.

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.

TemplateData

This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. Click here to see a monthly parameter usage report for this template based on this TemplateData.

TemplateData for NOINDEX

This template adds __NOINDEX__ to a page, a search engine tag that prevents indexing

Template parameters

ParameterDescriptionTypeStatus
Visiblevisible

When set to 'yes', the template will display a message stating that the page is not indexed.

Stringoptional

See also

Template:Basepage subpage