Module:Documentation: Difference between revisions

mNo edit summary
mNo edit summary
Line 15: Line 15:


-- format strings, translate if your language prefers localized namespace name, although remain it untouched most likely not affect anything
-- format strings, translate if your language prefers localized namespace name, although remain it untouched most likely not affect anything
commonCategoryPage = 'Category:%s',
commonCategoryPage = 'Category:%s',
commonSpecialPageSub = 'Special:%s/%s',
commonSpecialPageSub = 'Special:%s/%s',
commonUser = 'User',
commonUser = 'User',
Line 91: Line 91:
local page = mw.title.getCurrentTitle()
local page = mw.title.getCurrentTitle()
local docPage = args.page or page.nsText .. ':' .. page.baseText .. '/' .. defaultDocPage
local docPage = args.page or page.nsText .. ':' .. page.baseText .. '/' .. defaultDocPage
 
local out
local out
if not args.content and tostring( page ) == docPage then
if not args.content and tostring( page ) == docPage then
Line 260: Line 260:
:node( links )
:node( links )
:tag( 'span' )
:tag( 'span' )
:addClass('documentation-header-title' )
:addClass( 'documentation-header-title' )
:wikitext( i18n.pageDocHeaderTitle )
:wikitext( i18n.pageDocHeaderTitle )