Anonymous user
Module:Documentation: Difference between revisions
m
1 revision imported from w:en:Module:Documentation
(sync sandbox. Fix (mirror) link for creating a sandbox.) |
m (1 revision imported from w:en:Module:Documentation) |
||
Line 136:
:attr('id', message('main-div-id'))
:addClass(message('main-div-classes'))
:css('padding', '12px')
:newline()
:wikitext(p._startBox(args, env))
Line 404 ⟶ 405:
-- 'protection-template' --> 'pp-template'
-- 'protection-template-args' --> {docusage = 'yes'}
local protectionLevels, mProtectionBanner▼
local title = env.title
if title.namespace ~= 10 and title.namespace ~= 828 then▼
local protectionTemplate = message('protection-template')
local namespace = title.namespace
-- Don't display the protection template if we are not in the template or module namespaces.
return nil
Line 414 ⟶ 417:
return nil
end
local
local
if moveLevels and moveLevels[1] == 'sysop' or editLevels and editLevels[1] then
-- The page is
local frame = mw.getCurrentFrame()
else
return nil
|