Template:SupersededPNG

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search
Refresh file.svg
This file has been superseded by File:Superseded.png. It is recommended to use the other file. Please note that deleting superseded images requires consent.

Reason to use the other file: "A PNG version of this file is now available."
new file


Documentation icon Documentationviewedithistorypurge

This template shows a better raster image that should be used instead of the current image.

The template automatically sets the following categories:

• when transcluded from a SVG file: raster Bitmap version available
SVG Superseded
• when transcluded from raster files: raster PNG version available
SVG Superseded SVG Template {{Vector version available}} should be used

See also: Intentions

Usage

{{SupersededPNG |1= }}

The main template is Superseded. It handles each combination of superseded and superseding files.
If a redirect with wrong extension names is used, as PNG available but the superseding file is SVG,
WWWit will work correctly but the displayed text may be misleading. See also "Intentions".

Template parameters

ParameterDescriptionDefaultStatus
1File name of the better image; different possibilities:
  • full file name of other file, with extension
  • file name of other file, for the missing extension "png" is assumed
  • no name provided, the PAGENAME with the extension "png" is used
see description
and examples
optional
2
reason
detailed information can be specified why the other file should be used

{{SupersededPNG}} uses "A PNG version of this file is now available." for default

{{SupersededJPG}} uses "A JPG version of this file is now available." for default
000png
000default
optional

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: no user group specified

Relies on:
{{Superseded}} or {{Bitmap version available}}

See also

Intentions

Depending on the combination of the file where the template is used (the "origin"), and the file specified by the transclusion (the "target"), different requests are assumed.

origin file target file category meaning
vector raster Bitmap version available a bitmap version to that vector graphics is available;
it is possible to specify whether file has better quality
raster vector Superseded SVG

(Vector version available)
vector version available; when the better suited template
{{SupersededSVG}} is used it can be specified
which of the two files has better quality
vector vector Superseded target supersedes origin
raster raster Superseded target supersedes origin
other other Superseded target supersedes origin;
(even if video or audio files, the template always speakes about "images")

It does not matter which of the many redirects for "Superseded" or "Bitmap version" is used, after checking the two file extensions the template decides about categorization.
Even when SupersededJPG (or SupersededPNG) is used for another file extension (bitmap or vector graphic, or audio/video file) it will work well -
but it seems not very wise to specify e.g. Bitmap version available when the target file is a vector version (nevertheless it's seducing to use always the short {{bva}}).
With the parameter "reason" the relation of the two files can be specified, and other information may be given.

Localization

This template is localized through {{Autotranslate}}.

To add your language to the list of languages supported by this template, please copy the code of {{Bitmap version available/en}} resp. {{Superseded/en}} (or any other language version you prefer to translate) and replace the text strings in there. Please change the parameter lang from en (or whatever language you are translating) to the language code of your language:

Examples

from SVG

{{ SupersededPNGFile:Example.svgbetter SVG version available }}

Refresh file.svg
This file has been superseded by File:Example.svg. It is recommended to use the other file. Please note that deleting superseded images requires consent.

Reason to use the other file: "better SVG version available"
new file


{{ SupersededPNGFile:Example.gif<br>Reason to use the other file: better appearance }}

Refresh file.svg
This file has been superseded by File:Example.png. It is recommended to use the other file. Please note that deleting superseded images requires consent.

Reason to use the other file: "
Reason to use the other file: better appearance"
new file


{{ SupersededPNGExample.jpg }}

Refresh file.svg
This file has been superseded by File:Example.png. It is recommended to use the other file. Please note that deleting superseded images requires consent.

Reason to use the other file: "A PNG version of this file is now available."
new file


{{ SupersededPNGExample }}

Refresh file.svg
This file has been superseded by File:Example.png. It is recommended to use the other file. Please note that deleting superseded images requires consent.

Reason to use the other file: "A PNG version of this file is now available."
new file


{{ SupersededPNG }}

Refresh file.svg
This file has been superseded by File:Superseded.png. It is recommended to use the other file. Please note that deleting superseded images requires consent.

Reason to use the other file: "A PNG version of this file is now available."
new file


from not-SVG

{{ SupersededPNGExample.svgVector version available }}   (Template {{SupersededSVG}} should be used)

Refresh file.svg
This file has been superseded by File:Example.svg. It is recommended to use the other file. Please note that deleting superseded images requires consent.

Reason to use the other file: "Vector version available"
new file


{{ SupersededPNGFile:Example.gifbetter appearance }}

Refresh file.svg
This file has been superseded by File:Example.png. It is recommended to use the other file. Please note that deleting superseded images requires consent.

Reason to use the other file: "better appearance"
new file


{{ SupersededPNGExample.jpg }}

Refresh file.svg
This file has been superseded by File:Example.png. It is recommended to use the other file. Please note that deleting superseded images requires consent.

Reason to use the other file: "A PNG version of this file is now available."
new file


{{ SupersededPNGExample }}

Refresh file.svg
This file has been superseded by File:Example.png. It is recommended to use the other file. Please note that deleting superseded images requires consent.

Reason to use the other file: "A PNG version of this file is now available."
new file


{{ SupersededPNG }}

Refresh file.svg
This file has been superseded by File:Superseded.png. It is recommended to use the other file. Please note that deleting superseded images requires consent.

Reason to use the other file: "A PNG version of this file is now available."
new file