Editing Module:Handbook
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
| Latest revision | Your text | ||
| 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' }) | ||
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.') | ||