Module:Documentation: Difference between revisions
No edit summary |
No edit summary |
||
| Line 62: | Line 62: | ||
function p.docPage( f ) | function p.docPage( f ) | ||
local badDoc = args.baddoc | local badDoc = args.baddoc | ||
local colour = 'EAF4F9' | local colour = 'EAF4F9' | ||
local message = '' | local message = '' | ||
| Line 88: | Line 87: | ||
-- Viewing the documentation on the main page | -- Viewing the documentation on the main page | ||
function p.page( f ) | function p.page( f ) | ||
docPage = mw.title.new( args.page or namespace .. ':' .. page.text .. '/doc' ) | |||
local noDoc = args.nodoc or not docPage.exists | local noDoc = args.nodoc or not docPage.exists | ||
local badDoc = args.baddoc | local badDoc = args.baddoc | ||