Module:Infobox: Difference between revisions

From Vintage Story Wiki
m
no edit summary
mNo edit summary
mNo edit summary
Line 6: Line 6:
local size = args.imagesize or '180px'
local size = args.imagesize or '180px'
local imageString = '[[File:' .. args.image .. '.png|180px]]' -- forcing 180px as it can't seem to use the size variable
local imageString = '[[File:' .. args.image .. '.png|180px]]' -- forcing 180px as it can't seem to use the size variable
local images = {}
if args.images then
imageString = ''
for image in mw.text.gsplit( args.images, '%s*;%s*' ) do
table.insert(images, '<span>[[File:' .. image .. '.png|64px]]</span>')
end
for i, l in pairs(images) do
if i % 4 > 0 then
imageString = imageString .. '\n'
end
imageString = imageString .. l
end
end
local html = {
local html = {
Confirmedusers, Interface administrators
1,131

edits