Module:Documentation: Difference between revisions
Jump to navigation
Jump to search
m>Mr. Stradivarius add a period after the subpages link, with a new message "subpages-blurb" |
m>Mr. Stradivarius handle nil values of addTrackingCategory properly, and don't categorise testcases pages in the module namespace |
||
Line 925: | Line 925: | ||
-- 'testcases-subpage' --> 'testcases' | -- 'testcases-subpage' --> 'testcases' | ||
-- 'strange-usage-category' --> 'Wikipedia pages with strange ((documentation)) usage' | -- '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 title = env.title | ||
local subjectSpace = env.subjectSpace | |||
if not title or not subjectSpace then | |||
return nil | |||
end | |||
local subpage = title.subpageText | local subpage = title.subpageText | ||
local ret = '' | local ret = '' | ||
if message('display-strange-usage-category', nil, 'boolean') | if message('display-strange-usage-category', nil, 'boolean') | ||
and (subpage == message('doc-subpage') or subpage == message('testcases-subpage')) | and ( | ||
subpage == message('doc-subpage') | |||
or subjectSpace ~= 828 and subpage == message('testcases-subpage') | |||
) | |||
then | then | ||
ret = ret .. makeCategoryLink(message('strange-usage-category')) | ret = ret .. makeCategoryLink(message('strange-usage-category')) |