FANDOM


local p = {}
 
function p.bar(frame)
	local value = frame.args[1]
	local full = frame.args.full
	local half = frame.args.half
	local empty = frame.args.empty
 
	local numFull = math.floor(value / 2)
	local numHalf = value - (numFull * 2)
 
	local images = ''
 
	if (numFull > 0) or (numHalf > 0) then
		for i = 1, numFull, 1 do
			images = images .. '[[File:' .. tostring(full) .. '|link=]]'
		end
 
		if numHalf ~= 0 then
			images = images .. '[[File:' .. tostring(half) .. '|link=]]'
		end
	else
		images = images .. '[[File:' .. tostring(empty) .. '|link=]]'
	end
 
	return images
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.