Module:Block value: Difference between revisions

m test
m add debug logging
Line 53: Line 53:
local testValue = mw.loadData( 'Module:' .. type .. ' values/editcopy' )[blockTest]
local testValue = mw.loadData( 'Module:' .. type .. ' values/editcopy' )[blockTest]
if not testValue then
if not testValue then
mw.log('No ' .. type .. ' found for argument ' .. blockTest)
local title = mw.title.getCurrentTitle()
local title = mw.title.getCurrentTitle()
if not args.nocat and title.namespace == 0 and not title.isSubpage then
if not args.nocat and title.namespace == 0 and not title.isSubpage then