Module:Hatnote: Difference between revisions

No change in size ,  10 years ago
fix error category logic
m>Mr. Stradivarius
(move formatLink back to the underscore - that one is necessary)
m>Mr. Stradivarius
(fix error category logic)
Line 83: Line 83:
local errorCategoryLink
local errorCategoryLink
if yesno(demo) then
if yesno(demo) then
errorCategoryLink = ''
else
errorCategoryLink = string.format(
errorCategoryLink = string.format(
'[[%s:%s]]',
'[[%s:%s]]',
Line 88: Line 90:
errorCategory
errorCategory
)
)
else
errorCategoryLink = ''
end
end
return string.format(
return string.format(
Anonymous user