Difference between revisions of "ScreenshotCheck"

From Sega Retro

Line 6: Line 6:
 
{{#ifeq:{{#sub:{{PAGENAME}}|-4}}|.GIF|[[Category:GIF screenshost]]|
 
{{#ifeq:{{#sub:{{PAGENAME}}|-4}}|.GIF|[[Category:GIF screenshost]]|
 
}}}}}}}}}}
 
}}}}}}}}}}
}}{{#if:{{{nosizecheck|}}}||{{#switch:{{#mediawidth:{{PAGENAME}}}}
+
}}{{BadNameCheck|{{PAGENAME}}}}
|48|160|176|192|200|224|240|248|256|320|352|384|400|416|424|448|480|496|512|640|704|800|853|1024|1280|1920|3840=<!--good-->
 
|#default=[[Category:Wrong sized screenshots]]
 
}}{{#switch:{{#mediaheight:{{PAGENAME}}}}
 
|32|144|152|160|192|200|208|224|240|256|272|288|320|384|448|480|496|512|576|600|640|720|768|1080|2160=<!--good-->
 
|#default=[[Category:Wrong sized screenshots]]
 
}}}}{{BadNameCheck|{{PAGENAME}}}}
 
 
</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 13:55, 13 January 2019

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.

Sega 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 Retro CDN:Screenshots.

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