Modification de Module:Infobox/Aptitude
La modification peut être annulée. Veuillez vérifier les différences ci-dessous pour voir si c’est bien ce que vous voulez faire, puis publier ces changements pour finaliser l’annulation de cette modification.
Version actuelle | Votre texte | ||
Ligne 1 : | Ligne 1 : | ||
local localdata = require('Module:Infobox/Localdata') | local localdata = require('Module:Infobox/Localdata') | ||
local | local games = require('Module:Jeux') | ||
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] }) | |||
row = { type = 'table', title = | |||
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 = | { type = 'row', label = 'Effets', value = 'baseid'..index } | ||
}} | }} | ||
end | end | ||
Ligne 22 : | Ligne 23 : | ||
return { | return { | ||
parts = { | parts = { | ||
{ type = 'title', value = 'nom', subtitle = 'sous-titre', icon = 'icône', subhead = { games = 'jeux', subject = 'Aptitude', link = ' | { type = 'title', value = 'nom', subtitle = 'sous-titre', icon = 'icône', subhead = { games = 'jeux', subject = 'Aptitude', link = 'Aptitudes' }}, | ||
{ type = 'images', imageparameters = { 'image', 'image2', 'image3', 'image4', 'image5' }, captionparameter = { 'légende', 'image desc' }}, | { type = 'images', imageparameters = { 'image', 'image2', 'image3', 'image4', 'image5' }, captionparameter = { 'légende', 'image desc' }}, | ||
buildGamesTable(localdata, '1'), | buildGamesTable(localdata, '1'), |