Module:Documentation: Difference between revisions

Jump to navigation Jump to search
m>Mr. Stradivarius
change makeEndBoxExperimentBlurb to makeExperimentBlurb - simpler
m>Mr. Stradivarius
don't sort strange usage category in mainspace, as mainspace doesn't have subpages so can't be categorised
Line 936: Line 936:
and (subpage == message('doc-subpage') or subpage == message('testcases-subpage'))
and (subpage == message('doc-subpage') or subpage == message('testcases-subpage'))
then
then
-- Generate the strange usage category link. This category is sorted by namespace.
ret = ret .. makeCategoryLink(message('strange-usage-category'))
local sort = (title.namespace == 0 and message('strange-usage-category-mainspace-sort') or '')
.. title.prefixedText
ret = ret .. makeCategoryLink(message('strange-usage-category'), sort)
end
end
return ret
return ret