Module:Move7: Difference between revisions

From Wavu Wiki, the 🌊 wavy Tekken wiki
(Created page with "local p = {}; p.queryOverride = function(frame) local root = mw.html.create('div') for k,v in pairs(frame:getParent().args) do root:node(mw.html.create('div'):wikitext(k...")
 
No edit summary
Line 2: Line 2:


p.queryOverride = function(frame)
p.queryOverride = function(frame)
local id = frame:getParent().args['id']
if id == nil then
return "Error: no id"
end
local root = mw.html.create('div')
local root = mw.html.create('div')
for k,v in pairs(frame:getParent().args) do
for k,v in pairs(frame:getParent().args) do

Revision as of 22:36, 21 August 2023

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

local p = {};

p.queryOverride = function(frame)
	local id = frame:getParent().args['id']
	if id == nil then
		return "Error: no id"
	end
	
	local root = mw.html.create('div')
	for k,v in pairs(frame:getParent().args) do
		root:node(mw.html.create('div'):wikitext(k .. ": " .. v))
	end
	return root
end

return p