Home
Random
Log in
Settings
About Brighter Shores Wiki
Disclaimers
Search
Editing
Module:Clean image/doc
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
{{Documentation}} Cleans an input image to prevent double linking. {{Helper module |name=Clean image |fname1=<nowiki>clean{ file = [string|'no'], width = [string|nil], height = [string|nil], link = [string|nil], align = [string|nil] }</nowiki> |ftype1=table |fuse1=Used to clean up user input; extracts only the file name of the input and returns its own formatted link. Input is a table with fields: * <code>file</code> - the full wikitext to be cleaned. All processing is skipped if file is empty or is the string <code>no</code>. * <code>width</code> - width to resize the file to; no default * <code>height</code> - height to resize the file to, can be combined with width; no default * <code>link</code> - what page to link the file to; no default (file will link to file page), <code>no</code> to link to nothing * <code>align</code> - alignment for the image; <code>left, center, right</code>; no default |example= <syntaxhighlight lang='lua'> local cleanImage = require( 'Module:Clean image' ).clean mw.log( cleanImage{ file = '[[File:Basic bacon.png|link=Basic bacon|200px]]' } ) --> '[[File:Basic bacon.png|frameless]]' </syntaxhighlight> }}
Summary:
Please note that all contributions to Brighter Shores Wiki are considered to be released under the CC BY-NC-SA 3.0 (see
Brighter Shores:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Preview page with this template
Templates used on this page:
Template:Clean image
(
edit
)
Template:Clean image/doc
(
edit
)
Template:Documentation
(
edit
)
Template:Extension DPL
(
edit
)
Template:Helper module
(
edit
)
Module:Array
(
edit
)
Module:Clean image
(
edit
)
Module:DPLlua
(
edit
)
Module:DependencyList
(
edit
)
Module:Documentation
(
edit
)
Module:Helper module
(
edit
)
Module:Mw.html extension
(
edit
)
Module:Paramtest
(
edit
)
Module:Tooltip
(
edit
)
Module:Yesno
(
view source
) (semi-protected)
This page is a member of a hidden category:
Category:Pages using DynamicPageList3 parser function