Module:Documentation: Difference between revisions

From Video Credit Archive

Content deleted Content added
wikpedia>Mr. Stradivarius
use title.protectionLevels instead of {{PROTECTIONLEVEL}} in p.protectionTemplate
wikpedia>Mr. Stradivarius
add nil check for protectionLevels, as it was causing script errors on wikis with earlier versions of Scribunto
Line 407: Line 407:
end
end
protectionLevels = env.protectionLevels
protectionLevels = env.protectionLevels
if not protectionLevels then
return nil
end
local editLevels = protectionLevels.edit
local editLevels = protectionLevels.edit
local moveLevels = protectionLevels.move
local moveLevels = protectionLevels.move
Cookies help us deliver our services. By using our services, you agree to our use of cookies.