Module:Test: Difference between revisions

From Official Gamemode 4 Wiki
Jump to navigation Jump to search
m (another return)
m (testing part 3)
 
(3 intermediate revisions by the same user not shown)
Line 2: Line 2:


function p.test( f )
function p.test( f )
return mw.html.create("span"):wikitext('[[Chairs]]')
local args = f.args
if #args == 0 then
args = f:getParent().args or {""}
end
local c = require([[Module:Crafting]])
return mw.html.create("span"):wikitext('[[Chairs|'):node(c.Item(f)):wikitext(']]')
end
end


return p
return p

Latest revision as of 06:48, 2 March 2021

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

p = {}

function p.test( f )
	local args = f.args
	if #args == 0 then
		args = f:getParent().args or {""}
	end
	local c = require([[Module:Crafting]])
	return mw.html.create("span"):wikitext('[[Chairs|'):node(c.Item(f)):wikitext(']]')
end

return p