« Module:Infobox/Consommable » : différence entre les versions
mAucun résumé des modifications |
Aucun résumé des modifications |
||
Ligne 1 : | Ligne 1 : | ||
local localdata = require('Module:Infobox/Localdata') | local localdata = require('Module:Infobox/Localdata') | ||
function | function buildPerkRow(localdata, index) | ||
local | local row = { type = 'text' } --fake | ||
local perkLink = localdata['aptitude' .. index] | |||
local perkEffect = localdata['effets aptitude' .. index] | |||
if localdata['aptitude'..index] then | |||
row = { type = 'row', label = perkLink, value = perkEffect } | |||
end | end | ||
return row | |||
return | |||
end | end | ||
Ligne 46 : | Ligne 43 : | ||
{ type = 'table', title = 'Effets des aptitudes', collapseparameters = { collapsible = true, collapsed = true }, rows = { | { type = 'table', title = 'Effets des aptitudes', collapseparameters = { collapsible = true, collapsed = true }, rows = { | ||
{ type = 'row', label = 'Mutation', value = 'mutation' }, | { type = 'row', label = 'Mutation', value = 'mutation' }, | ||
buildPerkRow(localdata, 1), | |||
buildPerkRow(localdata, 2), | |||
buildPerkRow(localdata, 3), | |||
buildPerkRow(localdata, 4), | |||
buildPerkRow(localdata, 5) | |||
}}, | }}, | ||
{ type = 'table', title = 'Technique', rows = { | { type = 'table', title = 'Technique', rows = { |