Aller au contenu

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

aucun résumé des modifications
Kharmitch (discussion | contributions)
mAucun résumé des modifications
Kharmitch (discussion | contributions)
Aucun résumé des modifications
 
(4 versions intermédiaires par 2 utilisateurs non affichées)
Ligne 1 : Ligne 1 :
local localdata = require('Module:Infobox/Localdata')
local localdata = require('Module:Infobox/Localdata')
local games = require('Module:Jeux')
local abb = require('Module:Abréviation')


function buildGamesTable(localdata, index)
function buildGamesTable(localdata, index)
Ligne 6 : Ligne 6 :
if localdata['jeux'..index] then
if localdata['jeux'..index] then
local game = games.buildLinksList({ localdata['jeux'..index] })
if abb.links({ localdata['jeux'..index] }) then
row = { type = 'table', title = abb.links({ localdata['jeux'..index], 'Aptitudes' }), rows = {
if game then
row = { type = 'table', title = game, rows = {
{ type = 'row', label = 'SPECIAL', value = 'special'..index },
{ type = 'row', label = 'SPECIAL', value = 'special'..index },
{ type = 'row', label = 'Exigences', value = 'requiert'..index },
{ type = 'row', label = 'Exigences', value = 'requiert'..index },
{ type = 'row', label = 'Rangs', value = 'rangs'..index },
{ type = 'row', label = 'Rangs', value = 'rangs'..index },
{ type = 'row', label = 'Effets', value = 'effets'..index },
{ type = 'row', label = 'Effets', value = 'effets'..index },
{ type = 'row', label = '[[Form ID|Base ID]]', value = 'baseid'..index }
{ type = 'row', label = '[[Form ID]]', value = { 'formid'..index, 'baseid'..index }}
}}
}}
end
end
Bureaucrate, commentadmin, emailconfirmed, Administrateurs d’interface, staff, Administrateur
62 737

modifications