Modification de Module:Infobox/Consommable
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') | ||
function | function buildPerkLabel(localdata, index) | ||
local | local label = nil | ||
if(localdata['aptitude' .. index]) then | |||
label = '[[' .. localdata['aptitude' .. index] .. ']]' | |||
end | end | ||
return label | |||
return | end | ||
function buildPerkValue(localdata, index) | |||
local value = nil | |||
if(localdata['effets aptitude' .. index]) then | |||
value = localdata['effets aptitude' .. index] | |||
end | |||
return value | |||
end | end | ||
Ligne 27 : | Ligne 26 : | ||
{ type = 'row', label = 'Addiction', value = 'addiction' }, | { type = 'row', label = 'Addiction', value = 'addiction' }, | ||
{ type = 'row', label = 'Faim', value = 'faim' }, | { type = 'row', label = 'Faim', value = 'faim' }, | ||
{ type = 'row', label = 'Soif', value = 'soif' } | { type = 'row', label = 'Soif', value = 'soif' } | ||
}}, | }}, | ||
{ type = 'table', title = 'Artisanat', rows = { | { type = 'table', title = 'Artisanat', rows = { | ||
Ligne 49 : | Ligne 37 : | ||
{ type = 'row', label = 'Valeur', value = 'valeur' }, | { type = 'row', label = 'Valeur', value = 'valeur' }, | ||
{ type = 'row', label = 'Quêtes', value = 'quêtes' }, | { type = 'row', label = 'Quêtes', value = 'quêtes' }, | ||
{ type = 'row', label = 'Durée avant détérioration', value = 'détérioration' }, | { type = 'row', label = 'Durée avant détérioration', value = 'détérioration' }, | ||
{ type = 'row', label = 'Se détériore en', value = 'détériore' }, | { type = 'row', label = 'Se détériore en', value = 'détériore' }, | ||
{ type = 'row', label = 'Recette', value = 'recette' } | { type = 'row', label = 'Recette', value = 'recette' } | ||
}}, | }}, | ||
{ type = 'table', title = ' | { type = 'table', title = 'Aptitudes', collapseparameters = { collapsible = true, collapsed = true }, rows = { | ||
{ type = 'row', label = function(localdata) return buildPerkLabel(localdata, '') end, value = function(localdata) return buildPerkValue(localdata, '') end }, | |||
{ type = 'row', label = function(localdata) return buildPerkLabel(localdata, '2') end, value = function(localdata) return buildPerkValue(localdata, '2') end }, | |||
{ type = 'row', label = function(localdata) return buildPerkLabel(localdata, '3') end, value = function(localdata) return buildPerkValue(localdata, '3') end }, | |||
{ type = 'row', label = function(localdata) return buildPerkLabel(localdata, '4') end, value = function(localdata) return buildPerkValue(localdata, '4') end }, | |||
{ type = 'row', label = function(localdata) return buildPerkLabel(localdata, '5') end, value = function(localdata) return buildPerkValue(localdata, '5') end } | |||
}}, | |||
{ type = 'table', title = 'Technique', rows = { | |||
{ type = 'row', label = 'Prototype ID', value = 'proto' }, | { type = 'row', label = 'Prototype ID', value = 'proto' }, | ||
{ type = 'row', label = 'Editor ID', value = 'editor id' }, | { type = 'row', label = 'Editor ID', value = 'editor id' }, | ||
{ type = 'row', label = '[[Form ID]]', value = ' | { type = 'row', label = '[[Form ID|Base ID]]', value = 'baseid' }, | ||
{ type = 'row', label = 'Fichier message', value = 'message' } | { type = 'row', label = 'Fichier message', value = 'message' } | ||
}}, | }}, | ||
{ type = 'text', value = 'pied' } | { type = 'text', value = 'pied' } | ||
} | } | ||
} | } |