Module:TestTableau

De X-Wing 2.0 - Le wiki des figurines
Aller à : navigation, rechercher

La documentation pour ce module peut être créée à Module:TestTableau/doc

local p = {}

local Data = {}
local DataSSTab1 = mw.loadData('Module:TestTableau/SSTab1')
local DataSSTab1 = mw.loadData('Module:TestTableau/SSTab2')
Data["SSTab1"] = DataSSTab1
Data["SSTab2"] = DataSSTab2



function tprint(t) 
   local retour = ""   
   for key,value in pairs(t) do
       if key == nil then
           key = "Null"
       end
       if value == nil then
           value = "Null"
       end
       if type(value) == "table" then
           retour = retour .. tprint(value)
       else
           retour = retour .. "-- " .. key .. "?" .. value .. "\n"
       end
   end
   return retour
end

function p.affichage(frame)
    return tprint(Data)
end

return p