62 737
modifications
mAucun résumé des modifications |
mAucun résumé des modifications |
||
Ligne 1 : | Ligne 1 : | ||
local localdata = require('Module:Infobox/Localdata') | local localdata = require('Module:Infobox/Localdata') | ||
function buildSuccess(localdata) | |||
local success = nil | |||
local icon = require('Module:Icône') | |||
if localdata['achèvement'] then | |||
success = localdata['achèvement'] | |||
end | |||
if localdata['gamerscore'] or localdata['type trophée'] then | |||
if success == nil then | |||
success = mw.title.getCurrentTitle().text | |||
end | |||
success = success ..'<div style="float:right;padding-left:15px;position:relative;white-space:nowrap;">' | |||
if localdata['gamerscore'] then | |||
success = success ..'<span style="padding-left:4px;">'.. icon.build({ 'gamerscore' }) ..'</span>' | |||
success = success ..'<span style="padding-left: 2px;position:relative;top:1px;">'.. localdata['gamerscore'] ..'</span>' | |||
end | |||
if localdata['type trophée'] then | |||
success = success ..'<span style="padding-left:4px;">'.. icon.build({ 'trophéeps3' }) ..'</span>' | |||
success = success ..'<span style="padding-left: 2px;position:relative;top:1px;">'.. localdata['type trophée'] ..'</span>' | |||
end | |||
success = success..'</div>' | |||
end | |||
return success | |||
end | |||
function buildSubject(arg) | function buildSubject(arg) | ||
Ligne 36 : | Ligne 67 : | ||
{ type = 'row', label = 'Autres PNJ', value = { 'autres pnj', 'autres pnjs' } }, | { type = 'row', label = 'Autres PNJ', value = { 'autres pnj', 'autres pnjs' } }, | ||
{ type = 'row', label = 'Récompenses', value = 'récompenses' }, | { type = 'row', label = 'Récompenses', value = 'récompenses' }, | ||
{ type = 'row', label = 'Achèvement', value = | { type = 'row', label = 'Achèvement', value = function (localdata) return buildSuccess(localdata) end }, | ||
}}, | }}, | ||
{ type = 'table', title = 'Technique', rows = { | { type = 'table', title = 'Technique', rows = { | ||
Ligne 48 : | Ligne 79 : | ||
}}, | }}, | ||
{ type = 'row1col', value = { 'relative', 'associée' } } | { type = 'row1col', value = { 'relative', 'associée' } } | ||
}} | }}, | ||
{ type = 'row1col', value = 'pied' } | |||
} | } | ||
} | } |
modifications