Difference between revisions of "Template:Page category check"
Jump to navigation
Jump to search
(Expanded documentation) |
|||
Line 35: | Line 35: | ||
| ,}} | | ,}} | ||
<!--}}--> || [[{{{page}}}]]<!-- ({{#var:categories}})-->, }}</includeonly><noinclude> | <!--}}--> || [[{{{page}}}]]<!-- ({{#var:categories}})-->, }}</includeonly><noinclude> | ||
− | {{Documentation|content= | + | {{Documentation|content= |
+ | == Explanation == | ||
+ | This template checks whether a content page is properly categorized. This is necessary since [[Special:UncategorizedPages]] doesn't work if the pages have categories like [[:Category:Biotech]], [[:Category:Stubs]] or [[:Category:Unverified articles]] defined. | ||
− | {{#ask: [[:+]] [[Modification date:: | + | The pages are scanned with the following code: |
+ | <pre> | ||
+ | {{#ask: [[:+]] [[Modification date::>18 October 2021 10:53:15]] | ||
| limit = 500 | format = template | template = Page category check | link = none | searchlabel = | | limit = 500 | format = template | template = Page category check | link = none | searchlabel = | ||
| named args = yes | | named args = yes | ||
Line 45: | Line 49: | ||
| offset = 0 | | offset = 0 | ||
}} | }} | ||
+ | </pre> | ||
+ | As the limit of 500 cannot be exceeded the modification date should be regularly updated to the modification date of the first returned page (see Output below). Since issues can only arise after new edits, pages that were last edited a long time ago don't have to be scanned again. | ||
− | {{#ask: [[:+]] [[Modification date:: | + | == Output == |
+ | The following pages only have a maintenance category defined: | ||
+ | |||
+ | {{#ask: [[:+]] [[Modification date::>18 October 2021 10:53:15]] | ||
| limit = 500 | format = template | template = Page category check | link = none | searchlabel = | | limit = 500 | format = template | template = Page category check | link = none | searchlabel = | ||
| named args = yes | | named args = yes | ||
Line 52: | Line 61: | ||
| ?Category = ?Category | | ?Category = ?Category | ||
| sort = Modification date | order = ascending | | sort = Modification date | order = ascending | ||
− | | offset = | + | | offset = 0 |
}} | }} | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
}}[[Category:Wiki maintenance]]</noinclude> | }}[[Category:Wiki maintenance]]</noinclude> |
Revision as of 12:06, 10 December 2022
Template documentation
Explanation
This template checks whether a content page is properly categorized. This is necessary since Special:UncategorizedPages doesn't work if the pages have categories like Category:Biotech, Category:Stubs or Category:Unverified articles defined.
The pages are scanned with the following code:
{{#ask: [[:+]] [[Modification date::>18 October 2021 10:53:15]] | limit = 500 | format = template | template = Page category check | link = none | searchlabel = | named args = yes | ? = page | ?Category = ?Category | sort = Modification date | order = ascending | offset = 0 }}
As the limit of 500 cannot be exceeded the modification date should be regularly updated to the modification date of the first returned page (see Output below). Since issues can only arise after new edits, pages that were last edited a long time ago don't have to be scanned again.
Output
The following pages only have a maintenance category defined:
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Subpages of this template. |