Difference between revisions of "Template:Page category check"

From RimWorld Wiki
Jump to navigation Jump to search
m
Line 43: Line 43:
 
<pre>
 
<pre>
 
{{#ask: [[:+]] [[Modification date::>11 August 2022 11:23:08]]
 
{{#ask: [[:+]] [[Modification date::>11 August 2022 11:23:08]]
  | limit = 500 | format = template | template = Page category check | link = none | searchlabel =
+
  | limit = 500 | format = template | template = Page category check | link = none
 
  | named args = yes
 
  | named args = yes
 
  | ? = page
 
  | ? = page
 
  | ?Category = Category
 
  | ?Category = Category
 
  | ?Modification date = Date
 
  | ?Modification date = Date
  | sort = Modification date | order = ascending
+
  | sort = Modification date
 
  | offset = 0
 
  | offset = 0
 
}}
 
}}
Line 59: Line 59:
  
 
{{#ask: [[:+]] [[Modification date::>11 August 2022 11:23:08]]
 
{{#ask: [[:+]] [[Modification date::>11 August 2022 11:23:08]]
  | limit = 500 | format = template | template = Page category check | link = none | searchlabel =
+
  | limit = 500 | format = template | template = Page category check | link = none
 
  | named args = yes
 
  | named args = yes
 
  | ? = page
 
  | ? = page
 
  | ?Category = Category
 
  | ?Category = Category
 
  | ?Modification date = Date
 
  | ?Modification date = Date
  | sort = Modification date | order = ascending
+
  | sort = Modification date
 
  | offset = 0
 
  | offset = 0
 
}}
 
}}

Revision as of 12:32, 11 December 2022

Documentation icon 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::>11 August 2022 11:23:08]]
 | limit = 500 | format = template | template = Page category check | link = none
 | named args = yes
 | ? = page
 | ?Category = Category
 | ?Modification date = Date
 | sort = Modification date
 | offset = 0
}}

As the limit of 500 cannot be exceeded, if the template doesn't return any pages, the modification date should be set the last checked date as returned under 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 (ordered by Modification date) only have a maintenance category defined:

Embryo, ... further results

The last checked page has a Modification date of: 27 January 2024 12:00:39