Template:Clean image/doc
		
		
		
		
		
		Jump to navigation
		Jump to search
		
		
	
Template:Clean image invokes function main in Module:Clean image using Lua.
Template:Clean image 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.



