Modification de Module:Infobox/Munition gamebryo
La modification peut être annulée. Veuillez vérifier les différences ci-dessous pour voir si c’est bien ce que vous voulez faire, puis publier ces changements pour finaliser l’annulation de cette modification.
Version actuelle | Votre texte | ||
Ligne 1 : | Ligne 1 : | ||
local localdata = require( 'Module:Infobox/Localdata' ) | local localdata = require( 'Module:Infobox/Localdata' ) | ||
local tooltip = require( 'Module:Infobulle' ) | local tooltip = require( 'Module:Infobulle' ) | ||
-------------------------------------------------------- | -------------------------------------------------------- | ||
Ligne 20 : | Ligne 16 : | ||
weight = weight or '?' | weight = weight or '?' | ||
if isFnv then | if isFnv then | ||
weight = weight .. ' (' .. weightHm .. ' en [[mode Hardcore]])' | weight = weight .. '(' .. weightHm .. ' en [[mode Hardcore]])' | ||
else | else | ||
weight = weight .. ' (' .. weightHm .. ' en [[mode Survie]])' | weight = weight .. '(' .. weightHm .. ' en [[mode Survie]])' | ||
end | end | ||
end | end | ||
Ligne 29 : | Ligne 25 : | ||
{ type = 'row', label = 'Poids', value = function() return weight end }, | { type = 'row', label = 'Poids', value = function() return weight end }, | ||
{ type = 'row', label = 'Valeur', value = 'valeur' .. index }, | { type = 'row', label = 'Valeur', value = 'valeur' .. index }, | ||
{ type = 'row', label = ' | { type = 'row', label = 'Base ID', value = 'baseid' .. index } | ||
}} | }} | ||
else | else | ||
Ligne 40 : | Ligne 36 : | ||
----- Calcul des champs à afficher ----- | ----- Calcul des champs à afficher ----- | ||
-------------------------------------------------------- | -------------------------------------------------------- | ||
local games = (localdata['jeux'] or ''):lower() | |||
local isFnv = games:find('fnv') ~= nil | |||
local isFo4 = games:find('fo4') ~= nil | |||
local objectName2 = localdata['nom mun2'] | local objectName2 = localdata['nom mun2'] |