Template:Clean image: Difference between revisions
Jump to navigation
Jump to search
illerai>Salix new! |
m 1 revision imported |
(No difference)
|
Latest revision as of 20:45, 2 November 2024
Template documentation
This documentation is transcluded from Template:Clean image/doc. [edit] [history] [purge]
Template:Clean image invokes function main in Module:Clean image using Lua.
{{#replace:Template:Clean image|/doc}} invokes 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.
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 }}
Examples
To be practical the results will be as if |image=[[File:Weird gloop.png|100px|link=abyssal whip]]
as the input.