Template:HugeSVG

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

This template is intended to place a warning on SVG files that exceed a 10 MB file size; The MediaWiki software is unable to render thumbnails for the most of the huge SVG files, resulting in blank thumbnails (actually an error message). Optionally, this template accepts a parameter where you can link a raster version (PNG or TIFF, preferably in high resolution, max 20000x20000px to avoid thumbnail rendering issues) of the SVG one, to be used in other projects.

The template automatically sets the following categories:

Usage

{{HugeSVG |1= |resolved= }}

Template parameters

ParameterDescriptionDefaultStatus
1Filename of the Raster version if available, with the File: prefix (ie. File:Raster_map.png).emptyoptional
resolvedSet to yes if the PNG preview is now displayed correctly (only if it was affected by the bug)yesoptional

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

Localization

English  español  македонски

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

To add your language to the list of languages supported by this template, please copy the code of Template:HugeSVG/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.