Changes

Jump to: navigation, search

Module:Documentation

216 bytes removed, 08:25, 7 September 2015
Testing
-- 'protection-template' --> 'pp-template'
-- 'protection-template-args' --> {docusage = 'yes'}
local protectionLevels, mProtectionBanner
local title = env.title
if local protectionLevels local protectionTemplate = message('protection-template') local namespace = title.namespace ~ if not (protectionTemplate and (namespace == 10 and title.or namespace ~== 828 )) then
-- Don't display the protection template if we are not in the template or module namespaces.
return nil
return nil
end
local editProt editLevels = protectionLevels.edit and protectionLevels.edit[1] local moveProt moveLevels = protectionLevels.move if moveLevels and moveLevels[1] == 'sysop' or editLevels and protectionLevels.moveeditLevels[1] if editProt then -- The page is editfull-move protected, or full, template, or semi-protected. mProtectionBanner local frame = requiremw.getCurrentFrame('Module:Protection banner') local reason return frame:expandTemplate{title = protectionTemplate, args = message('protection-reasontemplate-editargs') return mProtectionBanner._main{reason, small = true} elseif moveProt and moveProt ~= 'autoconfirmed' then -- The page is move-protected but not edit-protected. Exclude move -- protection with the level "autoconfirmed"nil, as this is equivalent to -- no move protection at all. mProtectionBanner = require('Module:Protection bannertable') return mProtectionBanner._main{action = 'move', small = true}
else
return nil
Anonymous user

Navigation menu