Module:Documentation: Difference between revisions
No edit summary |
No edit summary |
||
| Line 75: | Line 75: | ||
if pageType == 'module' then | if pageType == 'module' then | ||
certainty = 'will' | certainty = 'will' | ||
end | |||
local category = '' | |||
if not args.nocat then | |||
category = '[[Category:Documentation pages]]' | |||
end | end | ||
| Line 82: | Line 87: | ||
'<p style="margin: 0">This is the documentation page, it ' .. certainty .. ' be transcluded into the main ' .. pageType .. ' page. See [[Template:Documentation]] for more information.</p>', | '<p style="margin: 0">This is the documentation page, it ' .. certainty .. ' be transcluded into the main ' .. pageType .. ' page. See [[Template:Documentation]] for more information.</p>', | ||
message, | message, | ||
'</div>' | '</div>', | ||
category | |||
}, '\n' ) | }, '\n' ) | ||
return out | return mw.text.trim( out ) | ||
end | end | ||