Jump to content

Help:What links here/demo rdcheck

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Cpiral (talk | contribs) at 10:39, 23 December 2015 (drafting away, now with a glossary and section scheme). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

The report from rdcheck.py has many features. What are they? Demonstration?

On the "What Links Here" page, rdcheck.py is the external tool that is run from "Show redirects only", but what are the differences from "Show redirects"? Help:What links here#Redirects says that that list of redirects show double redirects. Does the rdcheck.py report show double redirects?

This subpage is an attempt to document and demonstrate aspects of the rdcheck report.

Glossary

For article space, rdcheck.py has three categories of #REDIRECT:

  1. #REDIRECT[[pagename]] that redirect to pagename
  2. #REDIRECT[[pagename#section]] where pagename is canonical
  3. #REDIRECT[[pagename#section]] where pagename is another redirect

For article space, a redirect is a pagename alias or a section alias. (Outside article space, we speak of cross-namespace redirects to fullpagenames.)

A canonical page name is what the title line says it is on the page with the actual content. More precicely and technically, it is the value of {{FULLPAGENAME}} on that page. A difference between the title and the canonical page name occurs when {{DISPLAYTITLE}}, or {{lowercasetitle}} is used.

WLH calls transclusions and redirects "links". But a redirect just whizzes by, transparent and hardly noticed. A wikilink or URL-style link is a hyperlink, very link-like. A translusion is a link when you're talking subpage link notation.

A section name is a section heading, section anchor, or section id. They are all names. The same name works in redirects URLs, and wikilinks. ct is a pagename alias.

Rdcheck reports redirects to content, not to a name, and in doing so, gives the same report for all aliases, even if the alias has a section name attached to it.

Redirects

To titles

"No anchor or section" is a level one heading, grouping the pagename aliases. These have the form

#REDIRECT [[pagename]] that redirect to pagename

It doesn't mean that the pagename has no redirect to a section. It means the redirect itself has no anchor or section. It might be titled "Redirects to the title line", but the report is very section-oriented saying "none here".

To sections

Redirects to a section are like

#REDIRECT [[pagename#section]]

The WLH procedure to "show redirects only" hides links. Rdcheck shows only redirects. How do we then list navigable links to content of a section? We need rdcheck. See Help:Link#Link reports.

Rdcheck gives the section name a level one heading, and under that are grouped all the redirects to it.

If a particular section name is not explicitly listed, that section has no redirects to it. On the other hand, all redirects listed under any section can have incoming links that will then go to that section.

Rdcheck may report a warning — Hidden links on redirect — and an explanation These redirects have more than one link. This causes problems with WhatLinksHere since it does not determine redirects, instead listing backlinks which are also redirect pages..

This occurs, for example, when a full fledged page with many links was converted to a redirect page with markup at the top of the page, while retaining all its content with its wikilinks below that markup, like "Ardence" does.

Invalid

When a level one heading that is a section name is labeled "invalid", it means the redirect is invalid because the section name no longer exists. It may mean that a plan to use a single redirect to a codified anchor in order to be able to rename section headings without worrying about breaking a link to that section failed in that case.

Setup for these pages to demo rdcheck

All Help:What links here sections should show up, except See also is purposefully omitted. Here are their redirects:

  1. Overview Help:What links here/Rd1
  2. Limitations Help:What links here/Rd2
  3. Redirects Help:What links here/Rd3
  4. Transclusion Help:What links here/R4
  5. Number of links Help:What links here/Rd5
  6. Finding external links to a page Help:What links here/Rd6
  7. Extensions and programming Help:What links here/Rd7
  8. Examples Help:What links here/Rd8

Double redirects

Help:What links here/double rdcheck is a redirect to WP:WRH. Therefore it is a double redirect (from a subpage).

It also links to even numbered sections, so rdcheck should report yet another redirect linking to a section. Which title will it be? WRH? double rdcheck? WLH/double rdcheck? Let's see.

Notes and references