Module:Documentation: Difference between revisions

m clarified a comment and a prompt
mNo edit summary
Line 82: Line 82:
-- Load modules
-- Load modules
local static = require( 'Module:Static' )
local static = require( 'Module:Static' )
if not static.Documentation then
static.Documentation = {}
end


-- Internal functions
-- Internal functions
Line 152: Line 155:
mw.logObject( badDoc, 'Module:Documentation: badDoc' )
mw.logObject( badDoc, 'Module:Documentation: badDoc' )
if badDoc then
if badDoc then
static.badDoc = '1'
static.Documentation.badDoc = '1'
end
end


Line 221: Line 224:
if not docText and not noDoc then
if not docText and not noDoc then
docText = trim( f:expandTemplate{ title = ':' .. docPage.fullText } )
docText = trim( f:expandTemplate{ title = ':' .. docPage.fullText } )
if static.badDoc and static.badDoc == '1' then
if static.Documentation.badDoc and static.Documentation.badDoc == '1' then
mw.logObject( static, 'static' )
mw.logObject( static, 'static' )
badDoc = 1
badDoc = 1