Module:Test: Difference between revisions

From Official Gamemode 4 Wiki
Jump to navigation Jump to search
m (whoo)
m (I love making 300 edits)
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|'):wikitext(tostring(c.Item(f))):wikitext(']]')
end
end


return p
return p

Revision as of 06:43, 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|'):wikitext(tostring(c.Item(f))):wikitext(']]')
end

return p