62 737
modifications
mAucun résumé des modifications |
mAucun résumé des modifications Balise : Révocation manuelle |
||
(9 versions intermédiaires par le même utilisateur non affichées) | |||
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 | ||
text = mw.ustring.gsub(text, " [(][^()]*[)]$", "") | |||
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 174 : | Ligne 177 : | ||
elseif #images > 1 then | elseif #images > 1 then | ||
imagesString = imagesString .. '|upright=' .. ( 1 / #images ) | imagesString = imagesString .. '|upright=' .. ( 1 / #images ) | ||
end | end | ||
imagesString = imagesString .. ']]' | imagesString = imagesString .. ']]' | ||
Ligne 687 : | Ligne 687 : | ||
-- class | -- class | ||
local class = 'avt-infobox' | local class = 'infobox 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 | end | ||
return tostring(infobox) | return tostring(infobox) | ||
end | end | ||
return p | return p |
modifications