잔글
편집 요약 없음
편집 요약 없음 |
잔글편집 요약 없음 |
||
129번째 줄: | 129번째 줄: | ||
local root = mw.html.create() | local root = mw.html.create() | ||
root | root | ||
:wikitext(p.protectionTemplate(env)) | --:wikitext(p.protectionTemplate(env)) | ||
:wikitext(p.sandboxNotice(args, env)) | :wikitext(p.sandboxNotice(args, env)) | ||
-- This div tag is from {{documentation/start box}}, but moving it here | -- This div tag is from {{documentation/start box}}, but moving it here | ||
396번째 줄: | 396번째 줄: | ||
end | end | ||
function p.protectionTemplate(env) | --function p.protectionTemplate(env) | ||
-- -- Generates the padlock icon in the top right. | |||
-- -- @env - environment table containing title objects, etc., generated with p.getEnvironment | |||
-- -- Messages: | |||
-- -- 'protection-template' --> 'pp-template' | |||
-- -- 'protection-template-args' --> {docusage = 'yes'} | |||
-- local protectionLevels, mProtectionBanner | |||
-- local title = env.title | |||
-- protectionLevels = env.protectionLevels | |||
-- if not protectionLevels then | |||
-- return nil | |||
-- end | |||
-- local editProt = protectionLevels.edit and protectionLevels.edit[1] | |||
-- local moveProt = protectionLevels.move and protectionLevels.move[1] | |||
-- if editProt then | |||
-- -- The page is edit-protected. | |||
-- mProtectionBanner = require('Module:Protection banner') | |||
-- local reason = message('protection-reason-edit') | |||
-- return mProtectionBanner._main{'이유', '크기 = 작게'} | |||
-- elseif moveProt and moveProt ~= 'autoconfirmed' then | |||
-- -- The page is move-protected but not edit-protected. Exclude move | |||
-- -- protection with the level "autoconfirmed", as this is equivalent to | |||
-- -- no move protection at all. | |||
-- mProtectionBanner = require('Module:Protection banner') | |||
-- return mProtectionBanner._main{action = '이동', '크기 = 작게'} | |||
-- else | |||
-- return nil | |||
-- end | |||
end | --end | ||
---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- |