Module:Documentation: Difference between revisions
hardcode "off" in "link box=off" as well, for the benefit of other modules/templates
m>Mr. Stradivarius (don't use messages for args either - would be a pain for other modules that have to use this module) |
m>Mr. Stradivarius (hardcode "off" in "link box=off" as well, for the benefit of other modules/templates) |
||
Line 556: | Line 556: | ||
-- First, check whether we should output the end box at all. Add the end box by default if the documentation | -- First, check whether we should output the end box at all. Add the end box by default if the documentation | ||
-- exists or if we are in the user, module or template namespaces. | -- exists or if we are in the user, module or template namespaces. | ||
if linkBox == | if linkBox == 'off' or not (docExist or subjectSpace == 2 or subjectSpace == 828 or subjectSpace == 10) then | ||
return nil | return nil | ||
end | end |