Module:Infobox Season: Difference between revisions
Appearance
Create infobox season module  |
Adds experiements |
||
| Line 10: | Line 10: | ||
  {'i', args.image}, |   {'i', args.image}, | ||
  {'s', 'Overview'}, |   {'s', 'Overview'}, | ||
  {'f', 'Name', |   {'f', 'Name', args.name}, | ||
  {'f', 'Started', |   {'f', 'Started', args.started}, | ||
  {'f', 'Ended', |   {'f', 'Ended', args.ended}, | ||
  {'f', 'Total Days', |   {'f', 'Total Days', args.totaldays}, | ||
  {'s', 'Player Statistics'}, |   {'s', 'Player Statistics'}, | ||
  {'f', 'Whitelisted Players', args.players}, |   {'f', 'Whitelisted Players', args.players}, | ||
  {'f', 'Peak Players', |   {'f', 'Peak Players', args.peakplayers}, | ||
  {'s', 'Server Info'}, |   {'s', 'Server Info'}, | ||
  {'f', 'Version', |   {'f', 'Version', args.version}, | ||
  {'f', 'Platform', |   {'f', 'Platform', args.platform}, | ||
  {'f', 'Experiments', args.experiements}, | |||
  {'s', 'World Download'}, |   {'s', 'World Download'}, | ||
  {'f', 'Download Link', |   {'f', 'Download Link', args.worlddownload}, | ||
} | } | ||
Revision as of 22:36, 22 June 2025
Documentation for this module may be created at Module:Infobox Season/doc
local p = {}
local infobox = require("Module:Infobox")
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.experiements},
{'s', 'World Download'},
{'f', 'Download Link', args.worlddownload},
}
return infobox.infobox {
getParent = function() return { args = season_args } end
}
end
return p