Template:File category check

From RimWorld Wiki
Revision as of 16:56, 5 November 2022 by Ickputzdirwech (talk | contribs) (Created page with "<includeonly>{{#if: {{#pos: {{#show: {{{file}}} | ?Category }} | Images}}{{#pos: {{#show: {{{file}}} | ?Category }} | Videos}}{{#pos: {{#show: {{{file}}} | ?Category }} | Soun...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Documentation icon Template documentation[view] [edit] [history] [purge]

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 February 2024 20:30:50]]
 | 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.

SampleBuilding2x2.png Corrupted obeliskwiki.png Shard a.png Shard b.png Shard c.png Void structure b.png Disruptor flare.png Clipboard north.png Nociosphere center.png CocoonMegascarabA.png CocoonMegascarabB.png CocoonMegascarabC.png CocoonMegaspiderA.png CocoonMegaspiderB.png CocoonMegaspiderC.png CocoonSpelopedeA.png CocoonSpelopedeB.png CocoonSpelopedeC.png Deadlife shell a.png Deadlife shell b.png Deadlife shell c.png Landed deadlife shell.png RevenantSpine.png Fingerspike.png Void monolith level 1.png Void monolith level 3.png Void monolith level 2.png 2159 croped.png 

The last checked file has a Modification date of: There are still more to go. Ex.png