62 734
modifications
mAucun résumé des modifications |
mAucun résumé des modifications Balise : Révoqué |
||
Ligne 1 : | Ligne 1 : | ||
local localdata = require('Module:Infobox/Localdata') | local localdata = require('Module:Infobox/Localdata') | ||
local abb = require('Module:Abréviation') | local abb = require('Module:Abréviation') | ||
function concatGames(localdata) | |||
local games = '' | |||
for i = 1, 8 do | |||
if localdata['jeux'..i] then | |||
games = games .. ',' .. localdata['jeux'..i] | |||
end | |||
end | |||
if games == '' then return nil end | |||
return games | |||
end | |||
function buildGamesTable(localdata, index) | function buildGamesTable(localdata, index) | ||
Ligne 20 : | Ligne 31 : | ||
return { | return { | ||
categories = { games = concatGames(localdata), name = 'Traits' }, | |||
parts = { | parts = { | ||
{ type = 'title', value = 'nom', subtitle = 'sous-titre', icon = 'icône', subhead = { games = 'jeux', subject = 'Trait', link = 'Trait' }}, | { type = 'title', value = 'nom', subtitle = 'sous-titre', icon = 'icône', subhead = { games = 'jeux', subject = 'Trait', link = 'Trait' }}, |
modifications