Template:Superseded by PNG

From Wikimedia Commons, the free media repository
(Redirected from Template:SupersededPNG)
Jump to navigation Jump to search
Refresh file.svg
This file has been superseded by 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
Template documentationpurge ]

This template shows that a better image 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 by SVG Template {{Vector version available}} should be used !

See also: Intentions

Usage

{{Superseded by PNG |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".

Within Image generation the short code \- can be used.

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

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

{{Superseded by JPG}} uses "A JPG version of this file is now available." for default
000png
000default
optional
exta valid extension code, e.g. png or jpg{{{extpng}}}optional
langlanguage code (ISO 639), to display a translated version when
the SVG file contains translations using SVG <switch> elements.
{{int:lang}}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
vector vector Superseded target supersedes origin
raster raster Superseded target supersedes origin
raster vector Superseded by 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
other other Superseded target supersedes origin;
(even if video or audio files, the template always speaks 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 Superseded by JPG (or Superseded by PNG) 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 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 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 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 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 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 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 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 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 }}   (automatically completed with ".png")

Refresh file.svg
This file has been superseded by 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 }}   (uses the [file] name from where it is transcluded - here it is the template name "Superseded" - plus ".png")

Refresh file.svg
This file has been superseded by 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

Superseded by SVG

{{ SupersededSVGExample }}   is just a redirect of {{Vector version available}}