Predefinição:Clean image/doc
Ir para navegação
Ir para pesquisar
Predefinição:Clean image invoca a função main em Módulo:Clean image usando Lua.

Este artigo ou seção contém termos não traduzidos
Se souber alguma tradução, por favor, edite!
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 }}
Examples
To be practical the results will be as if |image=[[Arquivo:Gororoba estranha.png|100px|link=abyssal whip]]
as the input.