21 423
modifications
Modifications
aucun résumé de modification
function trim(s)
return (string.gsub(s, "^%s*(.-)%s*$", "%1"))
end
function p.boite(frame)
local fabSelectStr = trim(frame.args[1]) or ""
fabSelectTab={}
fabSelectStr:gsub(".",function(c) table.insert(fabSelectTab,c) end)
retour = "Ma collection de boite : \n"
for i, v in ipairs (fabSelectTab) do
if fabSelectTab[i] ~= nil then
if FabListe[i] ~= nil then
if Boite[FabListe[i]] ~= nil then
retour = retour .. "* [[" .. Boite[FabListe[i]].titre .. "]] x " .. fabSelectTab[i] .. "\n"
end
end
end
end
return retour
end
fabSelectStr:gsub(".",function(c) table.insert(fabSelectTab,c) end)
local vaissCollecTab={}
retour = "Ma collection de boite : \n"
for i, v in ipairs (fabSelectTab) do
if fabSelectTab[i] ~= nil then
if FabListe[i] ~= nil then
if Boite[FabListe[i]] ~= nil then
for k, v in pairs (Boite[FabListe[i]].vaisseaux) do
if vaissCollecTab[k] == nil then