Difference between revisions of "Module:Documentation"
Jump to navigation
Jump to search
tweak the _endBox comment and fix a few variables that were accidentally left undefined
>Mr. Stradivarius (hardcode image=none in fmbox) |
>Mr. Stradivarius (tweak the _endBox comment and fix a few variables that were accidentally left undefined) |
||
Line 620: | Line 620: | ||
-- Messages: | -- Messages: | ||
-- 'fmbox-id' --> 'documentation-meta-data' | -- 'fmbox-id' --> 'documentation-meta-data' | ||
-- | -- 'fmbox-style' --> 'background-color: #ecfcf4' | ||
-- 'fmbox-textstyle' --> 'font-style: italic' | |||
--]] | --]] | ||
Line 633: | Line 634: | ||
-- box by default if the documentation exists or if we are in the | -- box by default if the documentation exists or if we are in the | ||
-- user, module or template namespaces. | -- user, module or template namespaces. | ||
local linkBox = args['link box'] | |||
if linkBox == 'off' | if linkBox == 'off' | ||
or not ( | or not ( | ||
Line 663: | Line 665: | ||
text = text .. p.makeEndBoxExperimentBlurb(args, env) | text = text .. p.makeEndBoxExperimentBlurb(args, env) | ||
text = text .. '<br />' | text = text .. '<br />' | ||
-- Show the categories text, but not if | -- Show the categories text, but not if we have the content on the template page itself, | ||
-- since then it is unclear where to add the categories. | -- or if the documentation page has been specified explicitly, since then it is unclear | ||
if not content and not | -- where to add the categories. | ||
if not args.content and not args[1] then | |||
text = text .. (p.makeCategoriesBlurb(args, env) or '') | text = text .. (p.makeCategoriesBlurb(args, env) or '') | ||
end | end |