Page MenuHomePhabricator

Remove __INDEX__ and __NOINDEX__ magic words from article space
Closed, ResolvedPublicFeature

Description

Feature summary (what you would like to be able to do and where):
Remove INDEX and NOINDEX magic words from mainspace

Use case(s) (list the steps that you performed to discover that problem, and describe the actual underlying problem which you want to solve. Do not describe only a solution):
On [[Edward A. Kramer]], AWB genfixes incorrectly moves INDEX from below the categories to above the categories

Benefits (why should this be implemented?):
[[Wikipedia:Controlling search engine indexing]] states that NOINDEX and INDEX are disabled in article space.
People looking at the wiki source code may see these disabled tags are wrongfully assume an article is indexed or not indexed based on the tags.
Instead of moving them around, it would be cleaner to simply remove them.

Event Timeline

@GoingBatty Are there any requirements for other similar magic words such as FORCETOC / NEWSECTIONLINK?

See as examples:

  • Color management
  • Battle of Laon
  • 31 Minutos
  • Crakk
  • List of FEMA Disaster and other Emergency Declarations
  • Ahmed Haitham
  • McCoy's Building Supply

@Rjwilmsi - I have no requirements for those magic words.
[[Help:Magic words]] states "Most magic words can be used in any needed locations on a page; see [[MOS:ORDER]] for guidance on where to place magic words that are behavior switches."
[[MOS:ORDER]] only mentions {{DISPLAYTITLE}} and {{DEFAULTSORT}}, which AWB already handles.
[[Help:Magic words]] also states that FORCETOC "Can be used anywhere on a page."
Therefore, I suggest that AWB leaves these alone.

rev 12950 mainspace only syntax fixes: removal of INDEX and NOINDEX magic words that don't apply to mainspace

Rjwilmsi claimed this task.

rev 12952 MetaDataSorter: don't sort zeroth section of article or do cat sorting if magic word behaviour switch present on mainspace article (these can appear anywhere in article)