Module:Test: Difference between revisions

From Official Gamemode 4 Wiki
Jump to navigation Jump to search
m (whoo)
m (testing part 3)
 
(One intermediate revision by the same user not shown)
Line 7: Line 7:
end
end
local c = require([[Module:Crafting]])
local c = require([[Module:Crafting]])
return mw.html.create("span"):wikitext('[[Chairs|'):wikitext(c.Item(f)):wikitext(']]')
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