Module:Test

From Granblue Fantasy Wiki
Revision as of 20:43, 13 January 2020 by Hal (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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

local p = {}

function p.test(frame)
	local parent_frame = frame:getParent()
	frame:callParserFunction('#vardefine:frame_name','test_frame_name')
	parent_frame:callParserFunction('#vardefine:parent_frame_name', 'test_parent_frame_name')
end

function p.test2(frame)
	page = mw.title.new('Vira (SSR)', '')
	return page:getContent()
end

function p.test3(frame)
	local o = {}
	for k,v in pairs(frame.args) do
		o[#o+1] = ("%s=%s<br><br>"):format(k, frame:callParserFunction('#tag:nowiki', v))
	end
	return table.concat(o, "")
end

return p