[create]
The documentation for this module is missing. Click here to create it.
-- <nowiki>
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 .. "[[Module:" .. dependency .. "|" .. 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