62 737
modifications
Page créée avec « local localdata = require('Module:Infobox/Localdata') local gamesTool = require('Module:Jeux') function buildGamesTable(localdata, index) local row = { type = 'text' } -… » |
mAucun résumé des modifications |
||
(2 versions intermédiaires par le même utilisateur non affichées) | |||
Ligne 1 : | Ligne 1 : | ||
local localdata = require('Module:Infobox/Localdata') | local localdata = require('Module:Infobox/Localdata') | ||
local | 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 | ||
if | if abb.links({ localdata['jeux'..index] }) then | ||
row = { type = 'table', title = | row = { type = 'table', title = abb.links({ localdata['jeux'..index], 'Addictions' }), rows = { | ||
{ type = 'row', label = 'Cause', value = 'cause'..index }, | { type = 'row', label = 'Cause', value = 'cause'..index }, | ||
{ type = 'row', label = 'Risque', value = 'risque'..index }, | { type = 'row', label = 'Risque', value = 'risque'..index }, | ||
Ligne 29 : | Ligne 29 : | ||
buildGamesTable(localdata, '4'), | buildGamesTable(localdata, '4'), | ||
buildGamesTable(localdata, '5'), | buildGamesTable(localdata, '5'), | ||
buildGamesTable(localdata, '6') | buildGamesTable(localdata, '6'), | ||
{ type = 'text', value = 'pied' } | { type = 'text', value = 'pied' } | ||
} | } | ||
} | } |
modifications