« Module:Infobox/Munition » : différence entre les versions

m
aucun résumé des modifications
Kharmitch (discussion | contributions)
mAucun résumé des modifications
Kharmitch (discussion | contributions)
mAucun résumé des modifications
Ligne 5 : Ligne 5 :
--------------------------------------------------------
--------------------------------------------------------


function buildObjectTable(index, objectName, separator)
function buildObjectTable(index, objectName, hasSeparator)
local objectTable
local objectTable
if objectName then
if objectName then
objectTable = { type = 'table', title = objectName, separator = true, rows = {
objectTable = { type = 'table', title = objectName, separator = hasSeparator, rows = {
{ type = 'row', label = 'Taille du magasin', value = 'magasin' .. index },
{ type = 'row', label = 'Taille du magasin', value = 'magasin' .. index },
{ type = 'row', label = 'Modification de la [[Classe d\'armure|CA]]', value = 'magasin' .. index },
{ type = 'row', label = 'Modification de la [[Classe d\'armure|CA]]', value = 'magasin' .. index },
Ligne 16 : Ligne 16 :
{ type = 'row', label = 'Valeur', value = 'valeur' .. index },
{ type = 'row', label = 'Valeur', value = 'valeur' .. index },
{ type = 'row', label = 'Proto ID', value = 'proto' .. index }
{ type = 'row', label = 'Proto ID', value = 'proto' .. index }
}}  
}}
else
else
objectTable = { type = 'text' }
objectTable = { type = 'text' }
Ligne 30 : Ligne 30 :
local isFot = games:find('fot') ~= nil
local isFot = games:find('fot') ~= nil


local objectName2 = localdata['nom munition 2']
local objectName2 = localdata['nom munition2']
local objectName3 = localdata['nom munition 3']
local objectName3 = localdata['nom munition3']
local objectName4 = localdata['nom munition 4']
local objectName4 = localdata['nom munition4']
local objectName5 = localdata['nom munition 5']
local objectName5 = localdata['nom munition5']


-- Gestion de l'affichage en fonction
-- Gestion de l'affichage en fonction
Bureaucrate, commentadmin, emailconfirmed, Administrateurs d’interface, staff, Administrateur
62 737

modifications