Template:Created with MetaPost

This image was created with MetaPost.

Documentation icon Documentation [view] [edit] [history] [purge]

This documentation is transcluded from the unified template {{SVG created with/doc}}

English: Used to mark files created with MetaPost

The template automatically sets the following categories:

and with code=
category names can be suffixed with subcategory if diffusion is required


{{Created with MetaPost}}

Or use the shorthand {{Metapost |… parameters as described …}}
From {{Image generation}} the abbreviation "M" is used

Parameters code, title, syntax, format, collapse may be specified (/2/3); see documentation.

Template parameters

Parameter Description Default Status
1 name of user or author (for display); may as well be a link
coded e.g. with {{U}}, {{Uc}}, {{Ud}}, {{Ut}}, {{Ult}} or otherwise.
empty optional
2 Depending on file type, either
  • lowercase letter "v": generates the {{ValidSVG}} tag, or
  • lowercase letter "n": if picture is a raster graphic, e.g. PNG, but even GIF etc.
"v" or "n" may as well be given with parameter#1 if no user name is specified
empty optional
number of errors from W3C validator, generates {{InvalidSVG}}
Mutually exclusive with "v"; should be a numeric value; err=0 is equivalent to 2=v
empty optional
more optional additional text . optional
width to set another width for the grey box auto optional
style to set or overwrite other style attributes for the box empty optional
name of category/categories, complete with the brackets
replaces the category "Category:Created with MetaPost" set by default
empty optional
for category diffusion: specify a suffix to the category name

Select the best fitting subcategory, or create an appropriate new one

To insert an inbetween space, use understroke _ or &nbsp; and not <nowiki/>
empty optional
Sortkey option within the category

default value is the file name, will be preceded by the sortkey if any is given)

If an error number is specified, it is always the first sort key, in descending order.
empty optional
optional additional text for ValidSVG/InvalidSVG . optional
to set another width for the box of ValidSVG/InvalidSVG width optional
to set or overwrite the display source option for ValidSVG/InvalidSVG
(set vo=<nowiki/> to suppress, e.g. when files are too large for validation)
Suppress the display of the validation box with vopt=none (abbr: vo=n)
empty optional
to set or overwrite other style attributes for the box of ValidSVG/InvalidSVG
e.g. vstyle=float:left or short vs=fl
style 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: all users

See also


বাংলা | English | Македонски | Português |

This template is localized through {{Autotranslate}}.

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


{{Created with MetaPost}}
This image was created with MetaPost.
{{Created with MetaPost|v}}
This vector image was created with MetaPost.
{{Created with MetaPost|v|vs=fl}}
This vector image was created with MetaPost.
This vector image was created with MetaPost.