Module:Hatnote: Difference between revisions

fix error category logic
(move formatLink back to the underscore - that one is necessary)
(fix error category logic)
Line 83:
local errorCategoryLink
if yesno(demo) then
errorCategoryLink = ''
else
errorCategoryLink = string.format(
'[[%s:%s]]',
Line 88 ⟶ 90:
errorCategory
)
else
errorCategoryLink = ''
end
return string.format(