FANDOM


local LuaInfobox = {}
 
local HF = require('Module:PortableInfoboxBuilderHF')
 
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

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.