Module:Documentation: Difference between revisions
mNo edit summary |
mNo edit summary |
||
| Line 94: | Line 94: | ||
local out | local out | ||
if not args.content and tostring( page ) == docPage then | if not args.content and tostring( page ) == docPage then | ||
local pageType = mw.ustring.lower( args.type or getType( page.nsText, page ) ) | |||
local pageTypeDisplay = i18n[ 'pageType_' .. pageType ] or i18n.pageTypeTemplate | |||
out = f:preprocess( mw.title.new( docPreload ):getContent() | out = f:preprocess( mw.title.new( docPreload ):getContent():gsub( '$1' , pageTypeDisplay ) ) | ||
else | else | ||
local templateArgs = {} | local templateArgs = {} | ||