62 737
modifications
Page créée avec « local localdata = require( 'Module:Infobox/Localdata' ) -------------------------------------------------------- ----- Fonction communes -----… » |
mAucun résumé des modifications |
||
(2 versions intermédiaires par le même utilisateur non affichées) | |||
Ligne 5 : | Ligne 5 : | ||
-------------------------------------------------------- | -------------------------------------------------------- | ||
function buildObjectTable(index, objectName, | function buildObjectTable(index, objectName, hasSeparator) | ||
local objectTable | local objectTable | ||
if objectName then | if objectName or index == '' then | ||
objectTable = { type = 'table', title = | 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 | local objectName2 = localdata['nom munition2'] | ||
local objectName3 = localdata['nom | local objectName3 = localdata['nom munition3'] | ||
local objectName4 = localdata['nom | local objectName4 = localdata['nom munition4'] | ||
local objectName5 = localdata['nom | local objectName5 = localdata['nom munition5'] | ||
-- Gestion de l'affichage en fonction | -- Gestion de l'affichage en fonction | ||
Ligne 57 : | Ligne 57 : | ||
return { | return { | ||
parts = { | parts = { | ||
{ type = 'title', value = 'nom', subtitle = 'sous-titre', icon = 'icône', subhead = { games = 'jeux', subject = | { type = 'title', value = 'nom', subtitle = 'sous-titre', icon = 'icône', subhead = { games = 'jeux', subject = 'Munition', link = 'Munitions' }}, | ||
{ type = 'images', imageparameters = { 'image', 'image2', 'image3', 'image4', 'image5' }, captionparameter = { 'légende', 'image desc' }}, | { type = 'images', imageparameters = { 'image', 'image2', 'image3', 'image4', 'image5' }, captionparameter = { 'légende', 'image desc' }}, | ||
objectTable1, | objectTable1, |
modifications