User:BentLauridsenDK/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

return output end

return LuaInfobox