Module:LuaInfobox

local HF = require('Module:HF')

local LuaInfobox = {}

function LuaInfobox.Dependencies( field, vars ) local output = ""

local dependencies = HF.explode( ";", field.Value )

for i, dependency in ipairs( dependencies ) do   output = output .. "" .. dependency .. "" .. "; " end

if string.sub( output, -2, -1 ) == "; " then output = string.sub( output, 1, -3 ) -- Remove last semi-colon and space end

if not HF.isempty( field.ValueDesc ) then output = output .. " " .. field.ValueDesc end

return output end

return LuaInfobox