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 59 : | Ligne 59 : | ||
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 177 : | Ligne 174 : | ||
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 687 : | ||
-- class | -- class | ||
local class = ' | local class = 'avt-infobox' | ||
if moduledata.class then | if moduledata.class then | ||
class = class .. ' ' .. moduledata.class | class = class .. ' ' .. moduledata.class | ||
Ligne 701 : | Ligne 701 : | ||
for i, j in pairs(moduledata.parts) do | for i, j in pairs(moduledata.parts) do | ||
infobox:node(p.buildblock(j)) | infobox:node(p.buildblock(j)) | ||
end | |||
local categories = moduledata.categories | |||
if categories then | |||
categories = abb.categories({ getValue(categories.games, categories), categories.name }) or '' | |||
else | |||
categories = '' | |||
end | end | ||
return tostring(infobox) | return tostring(infobox) .. categories | ||
end | end | ||
return p | return p |