Module:Documentation: Difference between revisions

mNo edit summary
mNo edit summary
Line 81: Line 81:


-- Load modules
-- Load modules
local loadStyles = require( 'Module:TSLoader' ).call
local static = require( 'Module:Static' )
local static = require( 'Module:Static' )
if not static.Documentation then
if not static.Documentation then
Line 87: Line 89:


-- Internal functions
-- Internal functions
local function loadStyles( stylesheet )
if not stylesheet or mw.text.trim( stylesheet ) == '' then
return ''
end
return mw.getCurrentFrame():extensionTag{ name = "templatestyles", args = { src = stylesheet } }
end
local function getType( namespace, page )
local function getType( namespace, page )
local pageType = 'template'
local pageType = 'template'