Module:Handbook: Difference between revisions

Kuhlau (talk | contribs)
mNo edit summary
Kuhlau (talk | contribs)
No edit summary
Line 13: Line 13:
if args[1] and type(args[1]) == 'string' then
if args[1] and type(args[1]) == 'string' then
for page in lib.gsplit(args[1], ';', { removeEmpty = true }) do
for page in lib.gsplit(args[1], ';', { removeEmpty = true }) do
local handbookArgs = getTemplateArgs('Handbook/' .. page, { only = 'Handbook' })
local handbookArgs = getTemplateArgs('Handbook/' .. page, { only = 'Handbook Entry' })
if lib.isEmpty(handbookArgs) then
if lib.isEmpty(handbookArgs) then
html:tag('strong'):addClass('error'):wikitext('The page [[Handbook/', page, ']] is not a valid Handbook Entry.')
html:tag('strong'):addClass('error'):wikitext('The page [[Handbook/', page, ']] is not a valid Handbook Entry.')