Module:Infobox Season: Difference between revisions
Appearance
Fixes experiments spelling |
Adds custom colour to infobox Tag: Reverted |
||
| Line 2: | Line 2: | ||
local infobox = require("Module:Infobox") | local infobox = require("Module:Infobox") | ||
local section_colour = '#097969' | |||
function p.infobox(frame) | function p.infobox(frame) | ||
| Line 24: | Line 26: | ||
{'f', 'Download Link', args.worlddownload}, | {'f', 'Download Link', args.worlddownload}, | ||
} | } | ||
local box_args = {section_colour, season_args} | |||
return infobox.infobox { | return infobox.infobox { | ||
getParent = function() return { args = | getParent = function() return { args = box_args } end | ||
} | } | ||
end | end | ||
return p | return p | ||
Revision as of 15:54, 23 June 2025
Documentation for this module may be created at Module:Infobox Season/doc
local p = {}
local infobox = require("Module:Infobox")
local section_colour = '#097969'
function p.infobox(frame)
local args = frame:getParent().args
local season_args = {
{'t', args.name},
{'i', args.image},
{'s', 'Overview'},
{'f', 'Name', args.name},
{'f', 'Started', args.started},
{'f', 'Ended', args.ended},
{'f', 'Total Days', args.totaldays},
{'s', 'Player Statistics'},
{'f', 'Whitelisted Players', args.players},
{'f', 'Peak Players', args.peakplayers},
{'s', 'Server Info'},
{'f', 'Version', args.version},
{'f', 'Platform', args.platform},
{'f', 'Experiments', args.experiments},
{'s', 'World Download'},
{'f', 'Download Link', args.worlddownload},
}
local box_args = {section_colour, season_args}
return infobox.infobox {
getParent = function() return { args = box_args } end
}
end
return p