Template:NOINDEX/doc

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

Usage[edit]

This template adds __NOINDEX__, which may remove the page from some search engines and automatically categorizes pages in Category:Noindexed pages. By default, it 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:

Deutsch: Diese Bilddatei enthält eine gescannte Textseite ohne Illustrationen.
English: This image file contains a scanned text page with no illustrations.
Esperanto: Ĉi tiu dosiero enhavas bildon de skanita tekstopaĝo sen ilustraĵoj.
Español: Este fichero contiene la imagen escaneada de una página de texto sin ilustraciones.
Français : Ce fichier contient l'image scannée d'une page du texte sans illustrations.
Nederlands: Dit bestand bevat een gescande pagina met tekst zonder illustraties.
עברית: קובץ תמונה זה מכיל דף טקסט סרוק ללא איורים.
Italiano: Questo file contiene una copia scansionata di pagina di testo senza illustrazioni.

Warnings[edit]

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[edit]

<templatedata>JSON</templatedata> ./. {{TemplateBox}}
TemplateData

TemplateData is a way to store information about template parameters (the description of those and of the whole template) for both humans and machines. It is used by VisualEditor and possibly other tools like Upload Wizard.


Existing template documentation
At Wikimedia Commons, it is recommended to use {{TemplateBox}} with either ‎useTemplateData=1 or ‎useTemplateData=only on the ‎/doc subpage and transcluding it with {{Documentation}} into the template. ‎<nowiki>-tags can be wrapped around the arguments, if required, to avoid templates being expanded.

Newly created template documentation and imports
Another option, especially for imported templates, or for users with JSON experience, is placing raw ‎<templatedata>-tags into the Wikitext of the template, as described in various Wikipediae.

Discussion
There is an ongoing discussion about that matter. Feel invited to comment if you are experienced in either way, your time permits and if you like to share your opinion or to make a suggestion.


Wikipedia's help about TemplateDataCommons-specific information

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

Notes[edit]