Modifications

Aller à : navigation, rechercher

Module:Collection

158 octets supprimés, 30 août 2018 à 21:50
m
46 révisions importées
local Vaisseau = mw.loadData('Module:Collection/Vaisseau')
local FabListe = mw.loadData('Module:Collection/FabListe')
local AffichageModule = require('Module:Collection/Affichage')
function trim(s)
if FabListe[i] ~= nil then
if Boite[FabListe[i]] ~= nil then
if (fabSelectTab[i] ~= "0") or (affIfZero == "true") then
retour = retour .. "* [[" .. Boite[FabListe[i]].titre .. "]] x " .. fabSelectTab[i] .. "\n"
end
local fabSelectStr = trim(frame.args[1]) or ""
local affIfZero = trim(frame.args[2]) or false
local affType = trim(frame.args[3]) or "Faction"
fabSelectTab={}
fabSelectStr:gsub(".",function(c) table.insert(fabSelectTab,c) end)
local vaissCollecTab={}
retour = "affIfZero : " .. affIfZero .."\n"
for i, v in ipairs (fabSelectTab) do
if fabSelectTab[i] ~= nil then
end
end
for k, v in pairs (vaissCollecTab) doif affType == "Liste" then return retour = retour .. "affIfZero : " .. affIfZero .." - Vaisseau : " .. k .. " x " .AffichageModule. v .. "\n" if (v ~= 0) or affichageVaisseauListe(vaissCollecTab, affIfZero == true) then if Vaisseau[k] ~= nil then retour = retour .. "* " .. Vaisseau[k].icone .. " x " .. v .. " -- " .. Vaisseau[k].nom .. "\n" else retour = return retour .. "* " AffichageModule.. k .. " x " .. v .. "\n" end endaffichageVaisseauByFaction(vaissCollecTab, affIfZero)
end
return retour
end
return p

Menu de navigation