Jump to content

Module:Frame

From The Mighty Kingdoms Wiki
Revision as of 16:06, 26 May 2025 by Template>Theknightwho (Protected "Module:frame": Highly visible template/module ([Edit=Allow only template editors and administrators] (indefinite) [Move=Allow only template editors and administrators] (indefinite)))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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

local export = {}

local frame
local function get_frame()
	frame = mw.getCurrentFrame():newChild{}
	return frame
end

function export.callParserFunction(...)
	return (frame or get_frame()):callParserFunction(...)
end

function export.expandTemplate(...)
	return (frame or get_frame()):expandTemplate(...)
end

function export.extensionTag(...)
	return (frame or get_frame()):extensionTag(...)
end

function export.newParserValue(...)
	return (frame or get_frame()):newParserValue(...)
end

function export.newTemplateParserValue(...)
	return (frame or get_frame()):newTemplateParserValue(...)
end

function export.preprocess(...)
	return (frame or get_frame()):preprocess(...)
end

return export