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]].
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:
{{text|This page has been removed from search engines' indexes.}}▼
▲* <code>|visible = yes</code>
▲
=== 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 [[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.▼
===
'''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. <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.
===
{{TemplateDataHeader}}
<TemplateData>
{
"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 ===
* [[
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->▼
[[Category:Tracking templates|{{PAGENAME}}]]▼
{{basepage subpage
[[Category:Typing-aid templates]]
[[Category:Exclude in print]]
}}
|