Module:Documentation: Difference between revisions

m
switch variable orders
m>Mr. Stradivarius
(don't sort strange usage category in mainspace, as mainspace doesn't have subpages so can't be categorised)
m>Mr. Stradivarius
m (switch variable orders)
Line 931: Line 931:
--]]
--]]
local title = env.title
local title = env.title
local subpage = title.subpageText
local ret = ''
local ret = ''
local subpage = title.subpageText
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 subpage == message('testcases-subpage'))
Anonymous user