![]() | Please do not delete this module or its doc page. |
Parameters
(floor#)
- Sets the name of a floor
(floor#)_(part#)_(param)
- Sets a parameter for a row of a floor where (param)
is:
name
- The name of the row, e.g. "Westbound track"desc
- The description for the row- Services
dir
- The direction of the service(s) for the track (right
orleft
)service
- The service running on the trackservice(service#)
- Additional services running on the trackdest
- The destination for the servicedest(service#)
- Destinations for the additional servicesnote
- Note about the servicesnote(service#)
- Notes about the additional services
- Platform
platform
- The type of platformaccessible
- Set if the platform isaccessible
note
- Note about the platform
local mDate = require('Module:Date')
local Date = mDate._Date
local p = {}
function p.main()
local currentDate = Date('currentdate')
local date = Date('1 December 2010')
local out = '<table>'
local currentMonth
local currentYear
while date ~= currentDate do
if date.year ~= currentYear then
out = out .. '</td></tr></table><h2>' .. date.year .. '</h2><table>'
currentYear = date.year
end
if date.monthabbr ~= currentMonth then
out = out .. '</td></tr><tr><th scope="row" style="text-align:left;">' .. date.monthabbr .. '</th><td>'
currentMonth = date.monthabbr
end
out = out .. '[[Wikipedia:Main Page history/' .. date:text('%Y %B %-d') .. '|' .. date:text('%-d') .. ']]' .. '/[[Wikipedia:Main Page history/' .. date:text('%Y %B %-d') .. 'b|b]] '
date = date + 1
end
return out .. '</td></tr></table>'
end
return p