62 737
modifications
Page créée avec « local localdata = require( 'Module:Infobox/Localdata' ) local tooltip = require( 'Module:Infobulle' ) -------------------------------------------------------- -----… » |
Harmonisation des identifiants techniques |
||
(2 versions intermédiaires par le même utilisateur non affichées) | |||
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' ) | ||
local games = (localdata['jeux'] or ''):lower() | |||
local isFnv = games:find('fnv') ~= nil | |||
local isFo4 = games:find('fo4') ~= nil | |||
-------------------------------------------------------- | -------------------------------------------------------- | ||
Ligne 16 : | Ligne 20 : | ||
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 25 : | Ligne 29 : | ||
{ 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 = 'Form ID', value = 'formid' .. index } | ||
}} | }} | ||
else | else | ||
Ligne 36 : | Ligne 40 : | ||
----- Calcul des champs à afficher ----- | ----- Calcul des champs à afficher ----- | ||
-------------------------------------------------------- | -------------------------------------------------------- | ||
local objectName2 = localdata['nom mun2'] | local objectName2 = localdata['nom mun2'] |
modifications