Module:Documentation: Difference between revisions
Fix section editing and generally retarded code. |
No edit summary |
||
| Line 35: | Line 35: | ||
-- Header on the documentation page | -- Header on the documentation page | ||
function p.docPage( f ) | function p.docPage( f ) | ||
local args = require( 'Module:ProcessArgs' ). | local args = require( 'Module:ProcessArgs' ).merge( true ) | ||
local badDoc = args.baddoc | local badDoc = args.baddoc | ||
if f:callParserFunction( '#dplvar:noheader' ) == '1' then | if f:callParserFunction( '#dplvar:noheader' ) == '1' then | ||
| Line 88: | Line 88: | ||
-- Wrapper around the documentation on the main page | -- Wrapper around the documentation on the main page | ||
function p.page( f ) | function p.page( f ) | ||
local args = require( 'Module:ProcessArgs' ). | local args = require( 'Module:ProcessArgs' ).merge( true ) | ||
local page = mw.title.getCurrentTitle() | local page = mw.title.getCurrentTitle() | ||
local namespace = args.type or page.nsText | local namespace = args.type or page.nsText | ||