FANDOM


local p = {}
 
local data = mw.loadData( 'Module:DMC/data' )
 
function p.gL( frame )
  local type = frame.args[1]
  local link = frame.args[2]
  local link2 = ""
  local cover = ""
  local l = ""
  if data[type] ~= nil then
    link2 = data[type][link]
  end
  if type == "LB" then
    l = "[[File:"..link.." Lockbox x1.png|20px|link="..link2.."]] [["..link2.."|"..link.."]]"
  elseif type == "SO" then
    l = "[[File:SpecOps "..link.." cover.png|20px|link="..link2.."]] [["..link2.."|"..link.."]]"
  elseif type == "S2" then
    cover = data["s2cover"][link]
    l = "[[File:"..cover.."|20px|link="..link2.."]] [["..link2.."|"..link.."]]"
  else
    cover = data["s1cover"][link]
    l = "[[File:"..cover.."|20px|link="..link2.."]] [["..link2.."|"..link.."]]"
  end
  return l
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.