Module:Infobox: Difference between revisions

From Vintage Story Wiki
m
no edit summary
mNo edit summary
mNo edit summary
Line 5: Line 5:
local title = args.title or titleObject.baseText
local title = args.title or titleObject.baseText
local size = args.imagesize or '180px'
local size = args.imagesize or '180px'
local image = '[[File:' .. args.image .. '.png|' .. args.imagesize .. ']]'
local imageString = '[[File:' .. args.image .. '.png|' .. size .. ']]'
local html = {
local html = {
Line 12: Line 12:
'<tr><th colspan="2" style="background: rgb(91,76,62); background: linear-gradient(to bottom, rgba(91,76,62,1) 0px, rgba(91,76,62,0) 5px, rgba(56,43,30,0) calc(100% - 5px), rgba(56,43,30,1) 100%), linear-gradient(to right, rgba(91,76,62,1) 0px, rgba(69,52,36,1) 5px, rgba(69,52,36,1) 50%, rgba(69,52,36,1) calc(100% - 5px), rgba(56,43,30,1) 100%);}}">',
'<tr><th colspan="2" style="background: rgb(91,76,62); background: linear-gradient(to bottom, rgba(91,76,62,1) 0px, rgba(91,76,62,0) 5px, rgba(56,43,30,0) calc(100% - 5px), rgba(56,43,30,1) 100%), linear-gradient(to right, rgba(91,76,62,1) 0px, rgba(69,52,36,1) 5px, rgba(69,52,36,1) 50%, rgba(69,52,36,1) calc(100% - 5px), rgba(56,43,30,1) 100%);}}">',
'<big><b><span style="color: #e0cfbb">' .. title .. '</span></b></big></th></tr>',
'<big><b><span style="color: #e0cfbb">' .. title .. '</span></b></big></th></tr>',
'<tr><td colspan="2" style="margin:auto; text-align:center;">' .. image .. '</td></tr>',
'<tr><td colspan="2" style="margin:auto; text-align:center;">' .. imageString .. '</td></tr>',
args.rows,
args.rows,
'</table>',
'</table>',
Confirmedusers, Interface administrators
1,131

edits