Modifications

Aller à : navigation, rechercher

Module:Donnees jeu

344 octets ajoutés, 16 avril 2019 à 11:44
aucun résumé de modification
function version(faction)
return mw.getCurrentFrame():preprocess("<ref name=\"" .. faction .. "\">Données en version " .. Data["Version"][faction]["version"] .. " (" .. Data["Version"][faction]["periode"] .. ")</ref>")
-- return ""
end
end
if typeCarteStr == "Amelioration" then
local referenceText = ""
if Data[typeCarteStr][typeAmeliorationStr] == nil then
return typeCarteStr .. " - " .. typeAmeliorationStr .. " : non défini [[Catégorie:Données de jeu manquantes]]"
return typeCarteStr .. " - " .. typeAmeliorationStr .. " - " .. formationStr .. " - " .. nomCarteStr.. " - " .. typeDonnees .. " : non défini [[Catégorie:Données de jeu manquantes]]"
end
if typeDonnees == "Cout" and Data[typeCarteStr][typeAmeliorationStr][formationStr][nomCarteStr]["ref"] ~= nil then referenceText = mw.getCurrentFrame():preprocess("<ref>" .. Data[typeCarteStr][typeAmeliorationStr][formationStr][nomCarteStr]["ref"] .. "</ref>") end return Data[typeCarteStr][typeAmeliorationStr][formationStr][nomCarteStr][typeDonnees] .. version(formationStr).. referenceText
end
if Data[typeCarteStr][nomCarteStr] == nil then

Menu de navigation