Difference between revisions of "Template:File category check/doc"

From RimWorld Wiki
Jump to navigation Jump to search
(reduced number of files that need to be checked drastically)
Line 9: Line 9:
 
  | named args = yes
 
  | named args = yes
 
  | ? = file
 
  | ? = file
 +
| ?Category = Category
 
  | ?Modification date = Date
 
  | ?Modification date = Date
 
  | sort = Modification date
 
  | sort = Modification date
Line 25: Line 26:
 
  | named args = yes
 
  | named args = yes
 
  | ? = file
 
  | ? = file
 +
| ?Category = Category
 
  | ?Modification date = Date
 
  | ?Modification date = Date
 
  | sort = Modification date
 
  | sort = Modification date

Revision as of 12:31, 11 December 2022

Explanation

Files should always be in at least one of Category:Images, Category:Videos or Category:Sounds. Usually Special:UncategorizedFiles should be sufficient to detect them but templates like Template:Biotech add the files to other kinds of categories. To files that are categorized but lack a file category an inline query isn't enough, but can be done in combination with this template.

Code

The following can be used to systematically scan all files in badges of 500 (upper limit):

{{#ask: [[File:+]] [[Modification date::>10 December 2022 01:53:28]]
 | limit = 500 | format = template | template = File category check | link = none
 | named args = yes
 | ? = file
 | ?Category = Category
 | ?Modification date = Date
 | sort = Modification date
 | offset = 0
}}

The last checked file has a ''Modification date'' of: {{#var:date}}


Output

If there are no files below this text, there are no files that are not in a file category.

... further results

The last checked file has a Modification date of: 20 September 2023 20:47:47