« Module:Infobox/Armure » : 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' ) | ||
return { | return { | ||
| Ligne 27 : | Ligne 10 : | ||
{ type = 'row', label = 'Effets', value = 'effets' }, | { type = 'row', label = 'Effets', value = 'effets' }, | ||
{ type = 'row', label = 'Poids', value = 'poids' }, | { type = 'row', label = 'Poids', value = 'poids' }, | ||
{ type = 'row', label = 'Valeur', value = 'valeur' } | { type = 'row', label = 'Valeur', value = 'valeur' }, | ||
{ type = 'row', label = 'Points de vie', value = 'pv' } | |||
}}, | }}, | ||
{ type = 'table', title = 'Résistances ([[Seuil de dégâts|SD]] · [[Résistance aux dégâts|RD]])', rows = { | { type = 'table', title = 'Résistances ([[Seuil de dégâts|SD]] · [[Résistance aux dégâts|RD]])', rows = { | ||
| Ligne 40 : | Ligne 24 : | ||
{ type = 'table', title = 'Technique', rows = { | { type = 'table', title = 'Technique', rows = { | ||
{ type = 'row', label = 'Prototype ID', value = 'proto' }, | { type = 'row', label = 'Prototype ID', value = 'proto' }, | ||
{ type = 'row', label = ' | { type = 'row', label = 'Base ID', value ='baseid' }, | ||
{ type = 'row', label = 'Editeur ID', value ='editorid' } | |||
}}, | }}, | ||
{ type = 'text', value = 'pied' } | { type = 'text', value = 'pied' } | ||
} | } | ||
} | } | ||
Version du 15 août 2025 à 13:41
Ce module contient le paramétrage de l'infobox {{Infobox armure}}.
local localdata = require( 'Module:Infobox/Localdata' )
return {
parts = {
{ type = 'title', value = 'nom', subtitle = 'sous-titre', subhead = { games = 'jeux', subject = 'Armure', link = 'Armures et vêtements' }},
{ type = 'images', imageparameters = { 'image', 'image2', 'image3', 'image4', 'image5' }, captionparameter = { 'légende', 'image desc' }},
{ type = 'text', value = 'test' },
{ type = 'table', title = 'Statistiques', rows = {
{ type = 'row', label = '[[Classe d\'armure]]', value = 'bonus ca' },
{ type = 'row', label = 'Effets', value = 'effets' },
{ type = 'row', label = 'Poids', value = 'poids' },
{ type = 'row', label = 'Valeur', value = 'valeur' },
{ type = 'row', label = 'Points de vie', value = 'pv' }
}},
{ type = 'table', title = 'Résistances ([[Seuil de dégâts|SD]] · [[Résistance aux dégâts|RD]])', rows = {
{ type = 'row', label = 'Normal', value = function (localdata) return buildResistance(localdata, 'normal') end },
{ type = 'row', label = 'Laser', value = function (localdata) return buildResistance(localdata, 'laser') end },
{ type = 'row', label = 'Feu', value = function (localdata) return buildResistance(localdata, 'feu') end },
{ type = 'row', label = 'Plasma', value = function (localdata) return buildResistance(localdata, 'plasma') end },
{ type = 'row', label = 'Électricité', value = function (localdata) return buildResistance(localdata, 'élec') end },
{ type = 'row', label = 'Explosif', value = function (localdata) return buildResistance(localdata, 'expl') end },
{ type = 'row', label = 'IEM', value = function (localdata) return buildResistance(localdata, 'iem') end }
}},
{ type = 'table', title = 'Technique', rows = {
{ type = 'row', label = 'Prototype ID', value = 'proto' },
{ type = 'row', label = 'Base ID', value ='baseid' },
{ type = 'row', label = 'Editeur ID', value ='editorid' }
}},
{ type = 'text', value = 'pied' }
}
}