Template:Convert to PNG

From Wikimedia Commons, the free media repository
(Redirected from Template:ShouldBePNG)
Jump to navigation Jump to search
Template documentationview · edit · history · purge ]
This documentation is transcluded from Template:Convert to PNG/doc.

This template adds an information box stating that the image was uploaded in a format such as JPEG (or GIF), but could be stored, however, in the PNG format and adds the file page to category Category:Images which should be in PNG format.

The template automatically sets the following categories: Category:Images which should be in PNG format

Usage

{{Convert to PNG}}

Or use the shorthand

  • This template should not be used for:
    • images for which only a JPEG source is available; recompressing with PNG will not remove artifacts and may produce larger files
    • animated images. Although PNG does officially support animation, they are not widely supported by browsers, so GIF should be used instead
    • images which contain strictly vector (non-raster) data. {{Convert to SVG}} should be used in this case.

The template takes no parameters.

<templatedata>JSON</templatedata> ./. {{TemplateBox}}
TemplateData

TemplateData is a way to store information about template parameters (the description of those and of the whole template) for both humans and machines. It is used by VisualEditor and possibly other tools like Upload Wizard.


Existing template documentation
At Wikimedia Commons, it is recommended to use {{TemplateBox}} with either ‎useTemplateData=1 or ‎useTemplateData=only on the ‎/doc subpage and transcluding it with {{Documentation}} into the template. ‎<nowiki>-tags can be wrapped around the arguments, if required, to avoid templates being expanded.

Newly created template documentation and imports
Another option, especially for imported templates, or for users with JSON experience, is placing raw ‎<templatedata>-tags into the Wikitext of the template, as described in various Wikipediae.


Wikipedia's help about TemplateDataCommons-specific information

This template adds an information box stating that the image was uploaded in a format such as JPEG (or GIF), but could be stored, however, in the PNG format and adds the file page to category [[:Category:Images which should be in PNG format]].

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
No parameters specified

Additional information

The template is intended to be used in the following namespaces: the File namespace

The template is intended to be used by the following user groups: all users

Placement: At the bottom of the page

See also

  • {{Convert to SVG}} adds a note including “could be re-created using vector graphics as an SVG file”
  • {{BadGIF}} adds a note including “please upload a PNG version (or JPEG for some photos)”
  • {{BadJPEG}} adds a note including “please upload a PNG version (derived from a non-JPEG source) or SVG version (for certain cases)”
  • {{SupersededPNG}} the counterpart, used for images that have been superseded by PNG's

Localization

العربيَّة  azərbaycanca  čeština  Deutsch  English  español  français  italiano  magyar  Nederlands  português  português do Brasil  sicilianu  svenska  Tagalog  македонски  русский  മലയാളം  日本語  中文  中文(简体)‎  +/−

This template is localized through {{Autotranslate}}. The layout of the template can be found under Template:Convert to PNG/layout.

To add your language to the list of languages supported by this template, please copy the code of Template:Convert to PNG/en (or any other language version you prefer to translate) and replace the text strings in there (the form below can be used to create a translation, the English version is preloaded in the edit box). Please change the parameter lang from en (or whatever language you are translating) to the language code of your language.