Actions

Template

Difference between revisions of "ScreenshotCheck"

From Sonic Retro

(Added a description.)
Line 6: Line 6:
 
{{#ifeq:{{#sub:{{PAGENAME}}|-4}}|.GIF|[[Category:GIF screenshost]]|
 
{{#ifeq:{{#sub:{{PAGENAME}}|-4}}|.GIF|[[Category:GIF screenshost]]|
 
}}}}}}}}}}
 
}}}}}}}}}}
}}{{#ifeq:{{#expr: {{#mediawidth:{{PAGENAME}}}} mod 2}}|0||[[Category:Wrong sized screenshots]]}}
+
}}{{#if:{{{nosizecheck|}}}||{{#ifeq:{{#expr: {{#mediawidth:{{PAGENAME}}}} mod 2}}|0||[[Category:Wrong sized screenshots]]}}
{{#ifeq:{{#expr: {{#mediaheight:{{PAGENAME}}}} mod 2}}|0||[[Category:Wrong sized screenshots]]}}{{#ifexpr: {{#len:{{PAGENAME}}}} < 10|[[Category:Files with bad names]]|}}
+
{{#ifeq:{{#expr: {{#mediaheight:{{PAGENAME}}}} mod 2}}|0||[[Category:Wrong sized screenshots]]}}}}{{#ifexpr: {{#len:{{PAGENAME}}}} < 10|[[Category:Files with bad names]]|}}
 
</includeonly><noinclude>This template automatically assigns screenshots that have a system-specific screenshot template to a category based on its file extension, such as [[:Category:JPEG screenshots]].
 
</includeonly><noinclude>This template automatically assigns screenshots that have a system-specific screenshot template to a category based on its file extension, such as [[:Category:JPEG screenshots]].
  

Revision as of 14:38, 5 September 2017

This template automatically assigns screenshots that have a system-specific screenshot template to a category based on its file extension, such as Category:JPEG screenshots.

Sonic Retro prefers PNG format for screenshots, since they're lossless and usually smaller and better quality than JPEG and GIF. The extra categories are used to make it easier to identify which screenshots should be replaced.

For more information, see Sonic Retro:Screenshots.

This template is included by the system-specific screenshot templates, so there is usually no need to include it manually.