Module:Dochead: Difference between revisions

Ganaram inukshuk (talk | contribs)
comments again
Ganaram inukshuk (talk | contribs)
m comments
Line 127: Line 127:
elseif header == "noinvoke" then
elseif header == "noinvoke" then
-- A noinvoke module MUST have a corresponding template. Since this is
-- A noinvoke module MUST have a corresponding template. Since this is
-- the default for modules, the absence of a template results in the
-- the default for modules, it should say it's missing a template if it
-- message being blank.
-- doesn't exist.
-- This type doesn't work on templates, as those are non-Lua templates.
-- This type doesn't work on templates, as those are non-Lua templates.
if namespace == "Module" then
if namespace == "Module" then
Line 144: Line 144:
-- works on modules.
-- works on modules.
if namespace == "Module" then
if namespace == "Module" then
result = "This module primarily serves as a library for other modules."
result = "This module primarily serves as a library for other modules and has no corresponding template."
else
else
result = "This template is in the wrong namespace. It should be used within the Module namespace."
result = "This template is in the wrong namespace. It should be used within the Module namespace."