FANDOM


-- <nowiki>
 
local p = {}
local _nil_ = require('Module:Infobox').nilParam()
 
local params = {
	'name',
        'version',
	'id',
        'image'
}
 
function p.main(frame)
	local args = frame:getParent().args
	local versions = 0
	for i=1,100 do
		if args['version'..i] then
			versions = versions + 1
		else
			break
		end
	end
        versions = math.max(1, versions)
	local ret = {}
	for i=1, versions do
		local row = {}
                table.insert(row,' | [['..(args['%PAGE%'] or '')..']]')
		for _, v in ipairs(params) do
			local w = args[v..i]
			if w == _nil_ or w == nil and i > 0 then
				w = args[v]
			end
			if w == nil then
				w = '???'
			end
			table.insert(row,w)
		end
		row = '\n| '..table.concat(row,' || ')
		table.insert(ret,row)
	end
 
	ret = table.concat(ret,'\n|-')
 
	return '\n|-'..ret
end
return p

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.