![]() | This page is currently inactive and is retained forhistorical reference. Either the page is no longer relevant or consensus on its purpose has become unclear. To revive discussion, seek broader input via a forum such as thevillage pump.Therdcheck tool has not been functional since at least 2023 and is not expected to be fixed. |
The report fromrdcheck.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.
There are three categories of redirected wikilinks:
#REDIRECT[[pagename]]
that redirect to pagename#REDIRECT[[pagename#section]]
where pagename is canonical#REDIRECT[[pagename#section]]
where pagename is a redirectA redirect is a page whose content is a link, serving as an alias for apagename.
For article space, a redirect is apagename alias or a section alias.Outside article space, we speak of cross-namespace redirects tofullpagenames.
Acanonical page name is what the title line says it is, on the page with the actual content.For example, the linksto search parameter only accepts a canonical pagename. But more accurately, it is the value of{{FULLPAGENAME}}
as rendered on that page.A difference between the title and the canonical page nameoccurs when {{DISPLAYTITLE}}, or{{lowercasetitle}} is used.
"What Links Here" calls transclusions and redirects alink. But a redirect just whizzes by, transparently and hardly noticed,whereas a wikilink or URL-style link is an inviting hyperlink.A transclusion is a "link" also, in the context ofsubpage link notation,where transclusions and wikilinks share a common markup shortcut.A redirect is not a link for the search parameterlinksto,and, like the disambiguation page, is not a full-fledged pagename.
Asection name is a section heading, section anchor, or section id.They are allnames. (The last two both insert<span>...</span>
.)A redirect always goes to the canonical page name (the title)but it does not always go to the "canonical" section heading (its title).When a redirect goes to a section name it could be an anchor or section id #name placed anywhere in the wikitext, not just at or within a section heading.
Redirects with a section of a pagename happen when
The same section name works in redirects, URLs, and wikilinks.A redirect is a page name alias, but redirect to a section is not necessarily a section heading alias.
Rdcheck reports redirects tocontent, not to aname.(No matter which title you give it, you get all the redirect titles.) So rdcheck gives the same report for all aliases,even if the alias has a section name attached to it.
"No anchor or section" is a level one heading,grouping the pagename aliases. These have the form
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".
Redirects to a section are like
The WLH procedure to "show redirects only" hides links.Rdcheck shows only redirects. How do we then list navigable links tocontent of a section?We need rdcheck. SeeHelp: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 sectioncan have incoming links that will then go to that section.
Rdcheck may report a warning —Hidden links on redirect —and an explanationThese 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.
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 redirectto a codified anchor in order to be able to rename section headings without worrying about breaking a link to that sectionfailed in that case.
AllHelp:What links here sections should show up, exceptSee also is purposefully omitted.Here are their redirects:
Help:What links here/double rdcheck is a redirect toWP: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.