Minecraft Wiki
Register
Advertisement
[create | history | purge]Documentation
This module has no documentation. If you know how to use this module, please create it.
local p = {}
function p.row(f)
	local args = f
	if f == mw.getCurrentFrame() then
		args = f:getParent().args
	else
		f = mw.getCurrentFrame()
	end

	local upcoming = ''
	if args.upcoming then
		upcoming = f:expandTemplate{title = 'Upcoming', args={ver=args.upcoming}}
	end

	local blocks = {}
	for block in mw.text.gsplit(mw.text.trim(args[3]), '%s*,%s*') do
	table.insert(blocks, block)
	end

	return '|-\n|' .. mw.text.trim(args[1]) .. upcoming .. '||note.block.' .. mw.text.trim(args[2]) .. '||' .. mw.text.listToText(blocks) .. '|'
end 

return p
Advertisement