Jump to content

Module:TSLoader

From Joyful's Civilization
Revision as of 20:16, 16 October 2025 by Admin (talk | contribs) (Created page with "local p = {} function p.call( name ) if not name then return nil end return mw.getCurrentFrame():extensionTag{ name = "templatestyles", args = { src = name } } end function p.main( f ) local args = f local frame = mw.getCurrentFrame() if f == frame then args = require( 'Module:ProcessArgs' ).merge( true ) end return p.call( args[ 1 ] ) end return p")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Documentation for this module may be created at Module:TSLoader/doc

local p = {}

function p.call( name )
	if not name then
		return nil
	end
	return mw.getCurrentFrame():extensionTag{ name = "templatestyles", args = { src = name } }
end

function p.main( f )
	local args = f
	local frame = mw.getCurrentFrame()
	if f == frame then
		args = require( 'Module:ProcessArgs' ).merge( true )
	end
	return p.call( args[ 1 ] )
end

return p