User:DexDor/Fixing high-level miscategorizations

Sometimes pages in Wikipedia are (usually inadvertently) placed in an incompatible combination of namespace and high level category/ies. For example, pages in the User namespace should not be categorized below Category:Articles (see WP:USERNOCAT). The main ways an incompatible combination can occur are:
 * The page is in the wrong namespace - e.g. an article in the Wikipedia (administration) namespace.
 * The page is incorrectly categorized - e.g. a user page in a category for articles.
 * There is a problem with the category structure - e.g. a category for Wikipedia administration pages is placed below a category for articles.

This page provides some guidance for detecting and fixing such anomalies.

A table showing which combinations of namespace and category are valid can be found at: User:DexDor/Namespaces and categories.

Top-level category structure
The diagram below shows the top levels of the category structure. The two-letter codes are those used in the table below.

Checking the category structure
tbd

Fixing pages
The table below shows examples of things found when checking pages at namespace-category intersections - and how to fix them.

Codes such as "0DinCA" (this example meaning a mainspace disambiguation page in Category:Articles) are linked to a table in User:DexDor/FM that provides links to category intersection queries - most of which check several namespaces (i.e. correspond to several rows of this table).

Other:
 * An article is transcluded into a page in a different namespace (e.g. a user page).
 * The content of a template has been copied into a talk page (e.g. fixed by ).
 * A template is transcluded into a talk page (e.g. fixed by ).

Sometimes several things combine to cause a page to be incorrectly categorized - for example Template:Downton Abbey family tree was transcluded onto a talk page, the template was missing noinclude tags and the templates category was in an articles category.

Procedure for making fixes
Note: Not all of these steps always need to be followed.

Tips
Tips for fixing such pages:


 * If the page found is a talk page and has no corresponding non-talk page and has no inlinks (apart from any maintenance pages) and is not transcluded (how tell?) and is not needed for licencing (??? see this) then propose the page for deletion by WP:CSD.


 * Be aware that when you use a category intersection query to find pages in one namespace that you may end up at a page in a different namespace - for example the page shown by the query may be a redirect or the page shown by the query may transclude another page (in this case clicking on an "Edit" link on one page can actually start editing a different page ).