User:DexDor/Cmtp/doc
Template calling hierarchy
[edit]The template calling hierarchy is shown below. Other templates are used by the 2 top templates to avoid unnecessary repetition of code.
(User:DexDor/NSCat) (Not a template) | --- | User:DexDor/Cmtp User:DexDor/Catp | | ------------------ | | User:DexDor/Cctp User:DexDor/Cstp User:DexDor/Chtp User:DexDor/Crtp | ------------------------------- | | | User:DexDor/Cvtp User:DexDor/Cdtp CatScan
Templates
[edit]The templates used:
Code | What it produces | Notes |
{{User:DexDor/Cvtp|CB}}
|
Wikipedia_books | This template converts from 2-character category codes ("CA", "CB", "CD" etc) (for high-level categories) to category names that can be used in category intersection queries. |
{{User:DexDor/Cvtp|CA12}}
|
Geography | This template converts from 2-character category codes ("CA", "CB", "CD" etc) (for high-level categories) to category names that can be used in category intersection queries. |
{{User:DexDor/Cvtp|GEO}}
|
Geography | This template converts from 2-character category codes ("CA", "CB", "CD" etc) (for high-level categories) to category names that can be used in category intersection queries. |
{{User:DexDor/Cstp|0|CD
|
As used in "public" matrix - with the mode parameter (8) set to 3 this produces no output. | |
{{User:DexDor/Cstp|0|CD
|
ns.0 CD_ yes D50 OLD 201503 |
As used in "development" matrix - with the mode parameter (8) set to default/null it outputs details of the cell - in this case indicating that as of 2015/03/15 there were no hard redirects in namespace 0 in Category:Disambiguation pages (to depth 5). |
{{User:DexDor/Crtp|0|CD
|
ns.0 CD_ D50 OLD 201503 |
Crtp is a variant of Cstp with more compact output. As used in "development" matrix - with the mode parameter (8) set to default/null it outputs details of the cell - in this case indicating that as of 2015/03/15 there were no hard redirects in namespace 0 in Category:Disambiguation pages (to depth 5). |
{{User:DexDor/Cstp|101|CF
|
ns.101 CF_CH CW δ3? OLD 0 |
As used in "development" matrix - with the mode parameter (8) set to default/null it outputs details of the cell - in this case a query for pages in namespace 101 that are in CF and CH, but not in CW (to depth 3). Because this query includes an exclusion it has to use the more complex category intersection tool. |
{{User:DexDor/Cctp|...}}
|
??? | The template either displays style code to set a color or displays legend. |
{{User:DexDor/Cdtp|20141201|3}}
|
OLD 201412 | This template takes a date (in yyyymmdd format) and returns "OLD" if it's more than about (it doesn't compare to the nearest day) a specified number of months ago ... |
{{User:DexDor/Cdtp|{{CURRENTYEAR}}0101|12}}
|
... or, if not more than the specified number of months ago it returns nothing. | |
{{User:DexDor/Cdtp|{{CURRENTYEAR}}0120|0}}
|
OLD 202401 | ... or, if not more than the specified number of months ago it returns nothing. |
{{User:DexDor/Cdtp|{{CURRENTYEAR}}0101|-1}}
|
OLD 202401TEST Param1=20240101 Param2=-1 Year = 2024 Month = 1 Day = 1 Days=728975 Diff=304 |
This is a test of the template - the value of "diff" should be approximately the number of days since the start of the year. |
Each cell in the table (in the expanded form) contains several lines; the first line contains information about whether there should be pages at that combination or not, the lower lines contain information about what pages are currently at that combination.
Category intersection
[edit]Many of the cells contain a link (a box-arrow symbol) to a category intersection query that provides a list of pages found at that intersection. Two different category intersection tools are used here - a simpler (and faster?) one and a more complex one (that allows one query to cover multiple namespaces and can exclude categories). Note: Some of the category intersection queries are not as strict as the criteria applicable to that cell (for example the 14AinCU query does not exclude pages in CB and CP).
Category intersection tools
[edit]The following table summarises facilities that some/all current category intersection tools do not have that would be useful to help identify whether there are any pages at particular positions in the grid.
Facility | http://tools.wmflabs.org/quick-intersection | http://tools.wmflabs.org/catscan2/catscan2.php |
Option to select only subpages | No | TBD |
Option to exclude subpages | No | TBD |
Category intersection with no cat - e.g. pages in Book namespace that are not in Category:Books | TBD | TBD |
Not follow redirect when click on link (it is confusing and it wastes time loading what can be a big page when it's actually the redirect page that is of interest) | TBD | TBD |
Other changes that could be made to category intersection tools:
- It would also be useful if the output had the namespace column to the left of the title column (or had these combined into a single column) as this would make it easier to use the output.