![]() | 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 = ''
local currentMonth
local currentYear
while date ~= currentDate do
if date.year ~= currentYear then
out = out .. '==' .. date.year .. '=='
currentYear = date.year
end
if date.month ~= currentMonth then
out = out .. '===' .. date.month .. '==='
currentMonth = date.month
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
end
return p