Différences entre les versions de « Module:Bundles »

Aller à la navigation Aller à la recherche
96 octets ajoutés ,  24 octobre 2021 à 19:48
aucun résumé de modification
Ligne 8 : Ligne 8 :
result = mw.html.create('div')
result = mw.html.create('div')
result:addClass('bundle-row bundle-col-' .. objects)
result:addClass('bundle-row bundle-col-' .. objects)
rowGroup = {}
for k, v in ipairs(currentRow) do
for k, v in ipairs(currentRow) do
vs = mw.text.split(v, '-')
vs = mw.text.split(v, '-')
mw.log(result)
mw.log(result)
result:tag('span')
object = mw.html.create('span')
:wikitext(icon.icon(vs[1], vs[2], nil, 'no'))
:wikitext(icon.icon(vs[1], vs[2], nil, 'no'))
--[[ if k ~= objects then
 
result:tag('span')
if k ~= objects then
object:tag('span')
:addClass('bundle-joiner')
:addClass('bundle-joiner')
:wikitext('+')
:wikitext('+')
end]]
end
table.insert(rowGroup, k, object)
end
end
result:wikitext(tostring(rowGroup))
return result
return result
end
end
1 124

modifications

Menu de navigation