Editing Template:File category check/doc

Jump to navigation Jump to search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 1: Line 1:
== 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::+]]
<pre>
+
  | limit = 500 | template = File category check | link = none | searchlabel =
{{#ask: [[File:+]] [[Modification date::>10 February 2024 20:30:50]]
 
  | limit = 500 | format = template | template = File category check | link = none
 
 
  | named args = yes
 
  | named args = yes
 
  | ? = file
 
  | ? = file
  | ?Category = Category
+
  | sort = Category, Modification date | order = ascending
| ?Modification date = Date
 
| sort = Modification date
 
 
  | offset = 0
 
  | offset = 0
 
}}
 
}}
  
The last checked file has a ''Modification date'' of: {{#var:date}}
+
{{#ask: [[File:+]] [[Modification date::+]]
</pre>
+
| limit = 500 | template = File category check | link = none | searchlabel =
 +
| named args = yes
 +
| ? = file
 +
| sort = Category, Modification date | order = ascending
 +
| offset = 500
 +
}}
 +
 
 +
{{#ask: [[File:+]] [[Modification date::+]]
 +
| limit = 500 | template = File category check | link = none | searchlabel =
 +
| named args = yes
 +
| ? = file
 +
| sort = Category, Modification date | order = ascending
 +
| offset = 1000
 +
}}
 +
 
 +
{{#ask: [[File:+]] [[Modification date::+]]
 +
| limit = 500 | template = File category check | link = none | searchlabel =
 +
| named args = yes
 +
| ? = file
 +
| sort = Category, Modification date | order = ascending
 +
| offset = 1500
 +
}}
 +
 
 +
{{#ask: [[File:+]] [[Modification date::+]]
 +
| limit = 500 | template = File category check | link = none | searchlabel =
 +
| named args = yes
 +
| ? = file
 +
| sort = Category, Modification date | order = ascending
 +
| offset = 2000
 +
}}
 +
 
 +
{{#ask: [[File:+]] [[Modification date::+]]
 +
| limit = 500 | template = File category check | link = none | searchlabel =
 +
| named args = yes
 +
| ? = file
 +
| sort = Category, Modification date | order = ascending
 +
| offset = 2500
 +
}}
  
 +
{{#ask: [[File:+]] [[Modification date::+]]
 +
| limit = 500 | template = File category check | link = none | searchlabel =
 +
| named args = yes
 +
| ? = file
 +
| sort = Category, Modification date | order = ascending
 +
| offset = 3000
 +
}}
  
== Output ==
+
{{#ask: [[File:+]] [[Modification date::+]]
If there are no files below this text, there are no files that are not in a file category.
+
| limit = 500 | template = File category check | link = none | searchlabel =
 +
| named args = yes
 +
| ? = file
 +
| sort = Category, Modification date | order = ascending
 +
| offset = 3500
 +
}}
  
{{#ask: [[File:+]] [[Modification date::>10 February 2024 20:30:50]]
+
{{#ask: [[File:+]] [[Modification date::+]]
  | limit = 500 | format = template | template = File category check | link = none
+
  | limit = 500 | template = File category check | link = none | searchlabel =
 
  | named args = yes
 
  | named args = yes
 
  | ? = file
 
  | ? = file
  | ?Category = Category
+
  | sort = Category, Modification date | order = ascending
  | ?Modification date = Date
+
  | offset = 4000
  | sort = Modification date
+
}}
  | offset = 0
+
 
 +
{{#ask: [[File:+]] [[Modification date::+]]
 +
| limit = 500 | template = File category check | link = none | searchlabel =
 +
| named args = yes
 +
| ? = file
 +
  | sort = Category, Modification date | order = ascending
 +
  | offset = 4500
 
}}
 
}}
  
The last checked file has a ''Modification date'' of: {{#var:date}} {{#ifeq: {{#var:date}} | {{#show: {{#ask: [[File:+]] [[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}} }}
+
{{#ask: [[File:+]] [[Modification date::+]]
 +
| limit = 500 | template = File category check | link = none | searchlabel =
 +
| named args = yes
 +
| ? = file
 +
| sort = Category, Modification date | order = ascending
 +
| offset = 5000
 +
}}
  
<includeonly>[[Category:Wiki maintenance]] [[Category:Templates]]</includeonly>
+
<includeonly>[[Category:Templates]]</includeonly>
 
<noinclude>[[Category:Template documentation]]</noinclude>
 
<noinclude>[[Category:Template documentation]]</noinclude>

Please note that all contributions to RimWorld Wiki are considered to be released under the CC BY-SA 3.0 (see RimWorld Wiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

Cancel Editing help (opens in new window)

Templates used on this page: