Module:Handbook: Difference between revisions
No edit summary |
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 | 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 | html:tag('strong'):addClass('error'):wikitext('The page [[Handbook/', page, ']] is not a valid Handbook Entry.') | ||
else | else | ||
html | html | ||
:tag('div'):addClass(' | :tag('div'):addClass('handbook') | ||
:tag('dl') | :tag('dl') | ||
:tag('dt'):wikitext(handbookArgs.title or page) | :tag('dt'):wikitext(handbookArgs.title or page) | ||