Template:Clean image/doc
Jump to navigation
Jump to search
Template:Clean image invokes function main in Module:Clean image using Lua.
Cleans and formats an input image. This removes the following things if present:
[[File:
]]
|
and{{!}}
, and everything following the first of these until the end
Then it re-packages the image into a new file container, with specified height, width, and link. The frameless
modifier is used, which prevents the image being resized larger than its actual dimensions.
Usage
{{clean image |file = wikitext to be cleaned; this should usually be a template parameter (e.g. |file={{{image}}}); required |width = width of image; no default; exclude 'px' |height = height of image; no default; exclude 'px'; can be combined with width |link = link to apply to image; no default (will link to file page); setting to no will suppress normal link |align = alignment of image; left, center, right; no default }}
Examples
To be practical the results will be as if |image=[[File:Bucket.png|100px|link=abyssal whip]]
as the input.