Module:Documentation: Difference between revisions
mNo edit summary |
mNo edit summary |
||
| Line 2: | Line 2: | ||
local defaultDocPage = 'doc' | local defaultDocPage = 'doc' | ||
local static = require( 'Module:Static' ) | local static = require( 'Module:Static' ) | ||
local docPreload = 'Template:Documentation/preload' | |||
local i18n = { | local i18n = { | ||
| Line 83: | Line 85: | ||
-- local pageType = mw.ustring.lower( args.type or getType( page.nsText, page ) ) | -- local pageType = mw.ustring.lower( args.type or getType( page.nsText, page ) ) | ||
-- local pageTypeDisplay = i18n[ 'pageType_' .. pageType ] or i18n.pageTypeTemplate | -- local pageTypeDisplay = i18n[ 'pageType_' .. pageType ] or i18n.pageTypeTemplate | ||
out = f:preprocess( '{{subst: | out = f:preprocess( '{{subst:' .. docPreload .. '}}' ) | ||
-- out = out:gsub( '$1' , pageTypeDisplay ) | -- out = out:gsub( '$1' , pageTypeDisplay ) | ||
else | else | ||