Difference between revisions of "Template:File category check"

From RimWorld Wiki
Jump to navigation Jump to search
(Created page with "<includeonly>{{#if: {{#pos: {{#show: {{{file}}} | ?Category }} | Images}}{{#pos: {{#show: {{{file}}} | ?Category }} | Videos}}{{#pos: {{#show: {{{file}}} | ?Category }} | Soun...")
 
(simplification)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<includeonly>{{#if: {{#pos: {{#show: {{{file}}} | ?Category }} | Images}}{{#pos: {{#show: {{{file}}} | ?Category }} | Videos}}{{#pos: {{#show: {{{file}}} | ?Category }} | Sounds}} || [[{{{file}}}|80px]]&nbsp;}}</includeonly><noinclude>{{Documentation}}</noinclude>
+
<includeonly>{{#if: {{#pos: {{{Category}}} | Images}}{{#pos: {{{Category}}} | Videos}}{{#pos: {{{Category}}} | Sounds}} || [[{{{file}}}|80px]]&nbsp;}}{{#vardefine:date|{{{Date}}} }}</includeonly><noinclude>{{Documentation}}</noinclude>

Latest revision as of 12:30, 11 December 2022

Documentation icon Template documentation[view] [edit] [history] [purge]

Explanation[edit]

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[edit]

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[edit]

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

Shard a.png Shard b.png Shard c.png Void structure b.png Clipboard north.png RevenantSpine.png Void structure a.png Gray flesh strip.png Revenant flesh chunk.png Monolith fragment A.png Monolith fragment B.png Monolith fragment C.png Monolith fragment D.png Monolith fragment E.png Monolith fragment F.png Acid spit gob A.png Acid spit gob B.png Acid spit gob C.png Flesh whip limb A.png Flesh whip limb B.png Flesh whip limb C.png Flesh whip limb D.png Tentacle limb A.png Tentacle limb B.png Tentacle limb C.png Fleshmass atlas.png Fleshmass piece A.png Fleshmass piece B.png Fleshmass piece C.png Fleshmass piece D.png Fleshmass piece E.png Fleshmass piece F.png Fleshmass piece G.png Fleshmass piece H.png Fleshmass base 1x1 A.png Fleshmass base 3x3 A.png Fleshmass base 2x2 B.png Fleshmass base 3x3 B.png Fleshmass base 2x2 A.png Fleshmass base 1x1 B.png Fleshmass atlas 4 1.png Twisted archotech support east.png Twisted archotech support north.png Twisted archotech support small east.png Twisted archotech support small north.png Twisted archotech support small south.png Twisted archotech support south.png Twisted archotech support vertical.png ... further results

The last checked file has a Modification date of: 25 July 2024 20:34:41 There are still more to go. Ex.png