don't sort strange usage category in mainspace, as mainspace doesn't have subpages so can't be categorised
and (subpage == message('doc-subpage') or subpage == message('testcases-subpage'))
then
-- Generate the strange usage category link. This category is sorted by namespace. local sort = (title.namespace == 0 and message('strange-usage-category-mainspace-sort') or '') .. title.prefixedText ret = ret .. makeCategoryLink(message('strange-usage-category'), sort)