Module:Documentation: Difference between revisions
Undo revision 1810432 by 84.67.22.244 (talk) do not edit modules without a valid reason |
Detect testing pages |
||
| Line 68: | Line 68: | ||
local page = mw.title.getCurrentTitle() | local page = mw.title.getCurrentTitle() | ||
local subpage = page.subpageText | |||
if subpage == 'sandbox' or subpage == 'testcases' then | |||
page = page.basePageTitle | |||
end | |||
local namespace = page.nsText | local namespace = page.nsText | ||
local pageType = mw.ustring.lower( args.type or getType( namespace, page ) ) | local pageType = mw.ustring.lower( args.type or getType( namespace, page ) ) | ||