Module:Documentation: Difference between revisions

handle nil values of addTrackingCategory properly, and don't categorise testcases pages in the module namespace
(add a period after the subpages link, with a new message "subpages-blurb")
(handle nil values of addTrackingCategory properly, and don't categorise testcases pages in the module namespace)
Line 925:
-- 'testcases-subpage' --> 'testcases'
-- 'strange-usage-category' --> 'Wikipedia pages with strange ((documentation)) usage'
--
-- /testcases pages in the module namespace are not categorised, as they may have
-- {{documentation}} transcluded automatically.
--]]
local title = env.title
local subjectSpace = env.subjectSpace
if not title or not subjectSpace then
return nil
end
local subpage = title.subpageText
local ret = ''
if message('display-strange-usage-category', nil, 'boolean')
and (
and (subpage == message('doc-subpage') or subpage == message('testcases-subpage'))
subpage == message('doc-subpage')
and or (subpagesubjectSpace =~= message('doc-subpage')828 orand subpage == message('testcases-subpage'))
)
then
ret = ret .. makeCategoryLink(message('strange-usage-category'))