Module:Protection banner: Difference between revisions

transitioning to new version of Module:File link - will switch from the sandbox to the main module in a short while
(add support for the "demolevel" parameter; code by myself and User:Jackmcbarn)
(transitioning to new version of Module:File link - will switch from the sandbox to the main module in a short while)
Line 4:
-- Initialise necessary modules.
require('Module:No globals')
local newFileLinkmakeFileLink = require('Module:File link/sandbox').new_main
local effectiveProtectionLevel = require('Module:Effective protection level')._main
local yesno = require('Module:Yesno')
Line 772:
or self._cfg.msg['image-filename-default']
or 'Transparent.gif'
return newFileLink(filename)makeFileLink{
file = filename,
:width(self._imageWidth or 20)
:altsize = (self._imageAlt_imageWidth or 20) .. 'px',
:link(alt = self._imageLink)_imageAlt,
:caption(link = self._imageCaption)_imageLink,
caption = self._imageCaption
:render()
}
end