Module:Documentation: Difference between revisions
Detect testing pages |
Detect testing pages |
||
| Line 112: | Line 112: | ||
local args = require( 'Module:ProcessArgs' ).merge( true ) | local args = require( 'Module:ProcessArgs' ).merge( true ) | ||
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 docText = trim( args.content or '' ) | local docText = trim( args.content or '' ) | ||