Difference between revisions of "Template:Page category check"

From RimWorld Wiki
Jump to navigation Jump to search
(updated modification date)
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
<includeonly>{{#if:
 
<includeonly>{{#if:
  
{{#replace:{{#replace:{{#replace:{{#replace:{{#replace:{{#replace:{{#replace:{{#replace:{{#replace:{{#replace:{{#replace:{{#replace:{{#replace:{{#replace:{{#replace:{{#replace:{{#replace:{{#replace:
+
{{#replace:{{#replace:{{#replace:{{#replace:{{#replace:{{#replace:{{#replace:{{#replace:{{#replace:{{#replace:{{#replace:{{#replace:{{#replace:{{#replace:{{#replace:{{#replace:{{#replace:{{#replace:{{#replace:
  
 
<!-- Remove all verification categories -->
 
<!-- Remove all verification categories -->
Line 26: Line 26:
 
  | Category:Pages with graphs}}
 
  | Category:Pages with graphs}}
 
  | Category:Pages with syntax highlighting errors}}
 
  | Category:Pages with syntax highlighting errors}}
 +
| Category:Anomaly}}
 
  | Category:Biotech}}
 
  | Category:Biotech}}
 
  | Category:Ideology}}
 
  | Category:Ideology}}
Line 42: Line 43:
 
The pages are scanned with the following code:
 
The pages are scanned with the following code:
 
<pre>
 
<pre>
{{#ask: [[:+]] [[Modification date::>11 August 2022 11:23:08]]
+
{{#ask: [[:+]] [[Modification date::>28 October 2022 08:53:21]]
 
  | limit = 500 | format = template | template = Page category check | link = none
 
  | limit = 500 | format = template | template = Page category check | link = none
 
  | named args = yes
 
  | named args = yes
Line 58: Line 59:
 
The following pages (ordered by ''Modification date'') only have a maintenance category defined:
 
The following pages (ordered by ''Modification date'') only have a maintenance category defined:
  
{{#ask: [[:+]] [[Modification date::>11 August 2022 11:23:08]]
+
{{#ask: [[:+]] [[Modification date::>21 January 2024 02:10:00]]
 
  | limit = 500 | format = template | template = Page category check | link = none
 
  | limit = 500 | format = template | template = Page category check | link = none
 
  | named args = yes
 
  | named args = yes
Line 68: Line 69:
 
}}
 
}}
  
The last checked page has a ''Modification date'' of: {{#var:date}} {{#ifeq: {{#var:date}} | {{#show: {{#ask: [[:+]] [[Modification date::+]] | limit = 1 | link = none | searchlabel = | sort = Modification date | order = descending }} | ?Modification date }} | Which is the date of the moste recent edit. {{Check}} | There are still more to go. {{Cross}} }}
+
The last checked page has a ''Modification date'' of: {{#var:date}} {{#ifeq: {{#var:date}} | {{#show: {{#ask: [[:+]] [[Modification date::+]] | limit = 1 | link = none | searchlabel = | sort = Modification date | order = descending }} | ?Modification date }} | Which is the date of the most recent edit. {{Check}} | There are still more to go. {{Cross}} }}
  
 
[[Category:Wiki maintenance]]</noinclude>
 
[[Category:Wiki maintenance]]</noinclude>

Latest revision as of 09:49, 5 April 2024

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::>28 October 2022 08:53:21]]
 | 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[edit]

The following pages (ordered by Modification date) only have a maintenance category defined:

Ovum, Embryo, Modding Tutorials/Textures, Modding Tutorials/Defs, Deathrest capacity serum, Stasis cocoon, Gray box, Void sculpture, Floor etching, Gray statue, Revenant invisibility, ... further results

The last checked page has a Modification date of: 26 May 2024 16:22:22 There are still more to go. Ex.png