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

Harmonisation des identifiants techniques
Kharmitch (discussion | contributions)
mAucun résumé des modifications
Balise : Révoqué
Kharmitch (discussion | contributions)
Harmonisation des identifiants techniques
 
(6 versions intermédiaires par le même utilisateur non affichées)
Ligne 12 : Ligne 12 :
local tooltipReloadAllPerks = 'Durée du rechargement avec toutes les aptitudes mentionnées'
local tooltipReloadAllPerks = 'Durée du rechargement avec toutes les aptitudes mentionnées'
local tooltipReloadPerk = 'Diminution de la durée de rechargement avec cette aptitude'
local tooltipReloadPerk = 'Diminution de la durée de rechargement avec cette aptitude'
local tooltipStyle = 'color:#51E527;'


--------------------------------------------------------
--------------------------------------------------------
Ligne 30 : Ligne 31 :
-- Formatage des infobulles
-- Formatage des infobulles
function formatTooltip(text, title)
function formatTooltip(text, title)
     return tooltip._build({ text, title, ['style'] = 'color:var(--color-link);' })
     return tooltip._build({ text, title, style = tooltipStyle })
end
end


Ligne 131 : Ligne 132 :
             end
             end


             perksDmgItems = perksDmgItems
             perksDmgItems = perksDmgItems .. formatTooltip(addDmg, tooltipDmgPerk) .. '</div></li>'
            .. formatTooltip(addDmg, tooltipDmgPerk)
            .. '</div></li>'
         end
         end


Ligne 221 : Ligne 220 :
local dmgPerProjCell = formatNumber(dmgNormProj)
local dmgPerProjCell = formatNumber(dmgNormProj)
if perksDmgNormProj > 0 then
if perksDmgNormProj > 0 then
     dmgPerProjCell = dmgPerProjCell .. ' (' .. formatTooltip(formatNumber(perksDmgNormProj), tooltipDmgAllPerks) .. ')'
     dmgPerProjCell = dmgPerProjCell .. ' (' .. formatTooltip(formatNumber(perksDmgNormProjTotal), tooltipDmgAllPerks) .. ')'
end
end
if dmgExplProj > 0 then
if dmgExplProj > 0 then
Ligne 241 : Ligne 240 :
-- Dégâts par seconde
-- Dégâts par seconde
local dpsCell = formatNumber(dps)
local dpsCell = formatNumber(dps)
if perksDps > 0 then
if perksDps > dps then
     dpsCell = dpsCell .. ' ('.. formatNumber(perksDps) .. ')'
     dpsCell = dpsCell .. ' ('.. formatTooltip(formatNumber(perksDps), tooltipDmgAllPerks) .. ')'
end
end
if dmgEffTotal > 0 then
if dmgEffTotal > 0 then
Ligne 254 : Ligne 253 :
-- Dégâts par seconde (avec rechargement)
-- Dégâts par seconde (avec rechargement)
local dpsReloadCell = formatNumber(dpsReload)
local dpsReloadCell = formatNumber(dpsReload)
if perksDpsReload > 0 then
if perksDpsReload > dpsReload then
     dpsReloadCell = dpsReloadCell .. ' ('.. formatTooltip(formatNumber(perksDpsReload), tooltipDmgAllPerks) .. ')'
     dpsReloadCell = dpsReloadCell .. ' ('.. formatTooltip(formatNumber(perksDpsReload), tooltipDmgAllPerks) .. ')'
end
end
Ligne 343 : Ligne 342 :
}},
}},
{ type = 'table', title = 'Technique', collapseparameters = { collapsible = true, collapsed = true }, rows = {
{ type = 'table', title = 'Technique', collapseparameters = { collapsible = true, collapsed = true }, rows = {
{ type = 'row', label = '[[Form ID|Base ID]]', value = 'baseid' },
{ type = 'row', label = '[[Form ID]]', value = 'formid' },
{ type = 'row', label = 'Editor ID', value = 'editorid' }
{ type = 'row', label = '[[Editor ID]]', value = 'editorid' }
}},
}},
{ type = 'text', value = 'pied' }
{ type = 'text', value = 'pied' }
}
}
}
}
Bureaucrate, commentadmin, emailconfirmed, Administrateurs d’interface, staff, Administrateur
62 737

modifications