Modification de Module:Infobox
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 13 : | Ligne 13 : | ||
namespace = mw.title.getCurrentTitle().namespace | namespace = mw.title.getCurrentTitle().namespace | ||
} | } | ||
-- l'objet principal à retourner | -- l'objet principal à retourner | ||
Ligne 59 : | Ligne 57 : | ||
local text = getValue(part.value, part) or part.textdefaultvalue or mw.title.getCurrentTitle().text | local text = getValue(part.value, part) or part.textdefaultvalue or mw.title.getCurrentTitle().text | ||
local subtext = getValue(part.subtitle, part) or part.subtitledefaultvalue | local subtext = getValue(part.subtitle, part) or part.subtitledefaultvalue | ||
if subtext and (subtext ~= text) then | if subtext and (subtext ~= text) then | ||
text = text .. '<br /><small>' .. subtext .. '</small>' | text = text .. '<br /><small>' .. subtext .. '</small>' | ||
Ligne 84 : | Ligne 79 : | ||
local subhead = nil | local subhead = nil | ||
if part.subhead then | if part.subhead then | ||
local subheadText = | local subheadText = require('Module:Jeux').buildLinksList({ | ||
getValue(part.subhead.games, part), | getValue(part.subhead.games, part), | ||
part.subhead.link, | part.subhead.link, | ||
Ligne 177 : | Ligne 172 : | ||
elseif #images > 1 then | elseif #images > 1 then | ||
imagesString = imagesString .. '|upright=' .. ( 1 / #images ) | imagesString = imagesString .. '|upright=' .. ( 1 / #images ) | ||
end | |||
if image:sub(-4):lower() == '.svg' then | |||
imagesString = imagesString .. '|lang=' .. wikiLang | |||
end | end | ||
imagesString = imagesString .. ']]' | imagesString = imagesString .. ']]' | ||
Ligne 687 : | Ligne 685 : | ||
-- class | -- class | ||
local class = ' | local class = 'avt-infobox' | ||
if moduledata.class then | if moduledata.class then | ||
class = class .. ' ' .. moduledata.class | class = class .. ' ' .. moduledata.class |