« Module:Infobox/Caractéristique » : différence entre les versions
mAucun résumé des modifications |
mAucun résumé des modifications |
||
Ligne 1 : | Ligne 1 : | ||
local localdata = require('Module:Infobox/Localdata') | local localdata = require('Module:Infobox/Localdata') | ||
local | local abb = require('Module:Abréviation') | ||
local keyWords = { | local keyWords = { | ||
Ligne 12 : | Ligne 12 : | ||
if localdata['jeux'..index] then | if localdata['jeux'..index] then | ||
if | if abb.links({ localdata['jeux'..index] }) then | ||
local keyWord = keyWords[localdata['type']] or {} | local keyWord = keyWords[localdata['type']] or {} | ||
local link = keyWord.link | local link = keyWord.link | ||
row = { type = 'table', title = | row = { type = 'table', title = abb.links({ localdata['jeux'..index], link }), rows = { | ||
{ type = 'row', label = 'Modifie', value = 'modifie'..index }, | { type = 'row', label = 'Modifie', value = 'modifie'..index }, | ||
{ type = 'row', label = 'Gouvernée par', value = 'gouvernée par'..index }, | { type = 'row', label = 'Gouvernée par', value = 'gouvernée par'..index }, |