Module:Hatnote: Difference between revisions
Jump to navigation
Jump to search
fix error category logic
>Mr. Stradivarius (move formatLink back to the underscore - that one is necessary) |
>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 | ||
) | ) | ||
end | end | ||
return string.format( | return string.format( |