Module:ModuleData: Difference between revisions

Jump to navigation Jump to search
(Made the AutoModule use The infobox temlate)
(This should fix images)
 
Line 155: Line 155:
res = res .. "\n|  label" .. x .. " = " .. current.label .. "\n|  data" .. x .. " = " .. current.value
res = res .. "\n|  label" .. x .. " = " .. current.label .. "\n|  data" .. x .. " = " .. current.value
nextLabel = nextLabel + 1
nextLabel = nextLabel + 1
elseif current.type == "image" then
res = res .. "\n| " .. current.type .. " = [[File:" .. current.value .. "]]"
else
else
res = res .. "\n| " .. current.type .. " = " .. current.value
res = res .. "\n| " .. current.type .. " = " .. current.value