Template:Superseded by JPG

(Redirected from Template:SupersededJPG)
This file has been superseded by Superseded.jpg. It is recommended to use the other file. Please note that deleting superseded images requires consent.

Reason to use the other file: "A JPG version of this file is now available."
new file
Template documentationpurge ]
en-1 The description below was composed by a non-native English speaker.
You are cordially invited to improve the literal quality of any textual expression.

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 JPG version available
SVG Superseded by SVG Template {{Vector version available}} should be used ![clarification needed]

See also: Intentions

Usage

{{Superseded by JPG |1= }}

Or use the shorthand

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, it will work correctly but the displayed text may be misleading.[clarification needed] 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 "jpg" is assumed
  • no name provided, the PAGENAME with the extension "jpg" 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
000jpg
000default
optional
exta valid extension code, e.g. png or jpg{{{extjpg}}}optional
langlanguage code (ISO 639), to display a translated version when the SVG file contains translations using SVG <switch> elements.[clarification needed]{{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/layout}} or {{Bitmap version available}}

See also

Intentions

This template is only intended to be used with image files. For other types of files, use {{Superseded2}} instead.

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.[clarification needed]

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

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

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

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

This file has been superseded by Example.gif. 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

{{ SupersededJPGExample.jpg }}

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

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

{{ SupersededJPGExample }}

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

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

{{ SupersededJPG }}

This file has been superseded by Superseded.jpg. It is recommended to use the other file. Please note that deleting superseded images requires consent.

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

from not-SVG

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

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

{{ SupersededJPGFile:Example.gifbetter appearance }}

This file has been superseded by Example.gif. 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

{{ SupersededJPGExample.jpg }}

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

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

{{ SupersededJPGExample }}   (automatically completed with ".png")

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

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

{{ SupersededJPG }}   (uses the [file] name from where it is transcluded - here it is the template name "Superseded" - plus ".png")

This file has been superseded by Superseded.jpg. It is recommended to use the other file. Please note that deleting superseded images requires consent.

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

Superseded by SVG

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