Difference between revisions of "Template:Bad JPEG"

From blackwiki
Jump to navigation Jump to search
imported>Primefac
m (Changed protection level for "Template:Bad JPEG": high-risk template with 2000+ transclusions ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite)))
imported>WOSlinker
(fix bold)
Line 2: Line 2:
 
|type=style
 
|type=style
 
|image=[[File:Badjpeg.jpg]]
 
|image=[[File:Badjpeg.jpg]]
|text=This image was [[upload|uploaded]] in the '''[[JPEG]] format''' even though it '''consists of non-photographic data'''. The information it contains could be stored more efficiently or more accurately in the {{#if:{{{1|}}}|{{#ifeq:{{uc:{{{1}}}}}|PNG|'''[[Portable Network Graphics|PNG]]'''| }} {{#ifeq:{{uc:{{{1}}}}}|SVG|'''[[Scalable Vector Graphics|SVG]]'''| }}|'''[[Portable Network Graphics|PNG]] or '''[[Scalable Vector Graphics|SVG]]'''}} '''format'''. <br>
+
|text=This image was [[upload|uploaded]] in the '''[[JPEG]] format''' even though it '''consists of non-photographic data'''. The information it contains could be stored more efficiently or more accurately in the {{#if:{{{1|}}}|{{#ifeq:{{uc:{{{1}}}}}|PNG|'''[[Portable Network Graphics|PNG]]'''| }} {{#ifeq:{{uc:{{{1}}}}}|SVG|'''[[Scalable Vector Graphics|SVG]]'''| }}|'''[[Portable Network Graphics|PNG]]''' or '''[[Scalable Vector Graphics|SVG]]'''}} '''format'''. <br>
 
<small>If possible, please upload a {{#if:{{{1|}}}|{{#ifeq:{{uc:{{{1}}}}}|PNG|PNG| }} {{#ifeq:{{uc:{{{1}}}}}|SVG|SVG| }}|PNG or SVG}} version of this image, '''derived from a non-JPEG source''' so that it doesn't contain any [[compression artifact]]s (or with existing artifacts [[Wikipedia:How to reduce colors for saving a JPEG as PNG|removed]]) and with transparency where appropriate.  After doing so, please replace all instances of the JPEG version throughout Wikipedia (noted under the "[[#filelinks|File links]]" header), tag the JPEG version with <code>{{[[Template:Obsolete|obsolete]]|NewImage.ext}}</code>, and remove this tag.  For more information, see [[Wikipedia:Preparing images for upload]].</small><br/><small>([https://www.google.com/searchbyimage?image_url=http:{{filepath:{{BASEPAGENAME}}}} Search for similar images])</small>
 
<small>If possible, please upload a {{#if:{{{1|}}}|{{#ifeq:{{uc:{{{1}}}}}|PNG|PNG| }} {{#ifeq:{{uc:{{{1}}}}}|SVG|SVG| }}|PNG or SVG}} version of this image, '''derived from a non-JPEG source''' so that it doesn't contain any [[compression artifact]]s (or with existing artifacts [[Wikipedia:How to reduce colors for saving a JPEG as PNG|removed]]) and with transparency where appropriate.  After doing so, please replace all instances of the JPEG version throughout Wikipedia (noted under the "[[#filelinks|File links]]" header), tag the JPEG version with <code>{{[[Template:Obsolete|obsolete]]|NewImage.ext}}</code>, and remove this tag.  For more information, see [[Wikipedia:Preparing images for upload]].</small><br/><small>([https://www.google.com/searchbyimage?image_url=http:{{filepath:{{BASEPAGENAME}}}} Search for similar images])</small>
 
}}{{{category|{{file other | [[Category:Images with inappropriate JPEG compression|{{PAGENAME}}]] }}}}}
 
}}{{{category|{{file other | [[Category:Images with inappropriate JPEG compression|{{PAGENAME}}]] }}}}}

Revision as of 08:51, 1 March 2018

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

Usage

This maintenance template is part of the Wikipedia project, not the encyclopedia proper. It automatically adds images to Category:Images with inappropriate JPEG compression. It also includes an optional parameter to specify whether PNG or SVG is a better choice for replacement. For PNG, use {{Bad JPEG|PNG}} and for SVG use {{Bad JPEG|SVG}}.

Examples

  • PNG:
  • SVG:


Template data

This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly parameter usage report for this template.

TemplateData for Bad JPEG

This automatically adds images to Category:Images with inappropriate JPEG compression.

Template parameters

ParameterDescriptionTypeStatus
Ideal new type1

PNG or SVG

Stringoptional

See also