Module:Year in various calendars: Difference between revisions
m
1 revision imported
Vivaporius (talk | contribs) m (1 revision imported) |
Vivaporius (talk | contribs) m (1 revision imported) |
||
(One intermediate revision by one other user not shown) | |||
Line 134:
self.caption = self.yearText
self.footnotes = init.footnotes
return setmetatable( obj, {
Line 189 ⟶ 188:
:attr( 'colspan', '2' )
:wikitext( string.format( '<small>%s</small>', self.footnotes ) )
end
Line 376 ⟶ 365:
-- Initiate the box and get the year values.
local init = args
local box = calendarBox:new( init )
local year = box.year
Line 506 ⟶ 494:
if year >= 1844 then
local bahai = calendar:new()
bahai:setLink( "
bahai:setYearRange( year - 1844, year - 1843 )
box:addCalendar( bahai )
Line 651 ⟶ 639:
-- Return all of that data in a (hopefully) reader-friendly format.
chinese:setYear( string.format(
[=[[[
heavenlyTable1[ 1 ],
earthlyTable1[ 1 ],
Line 842 ⟶ 830:
if year >= 1910 then
local juche = calendar:new()
juche:setLink(
if year > 1911 then
juche:setYear( year - 1911 )
Line 1,032 ⟶ 1,020:
local function getUnixTime( year )
if year < 1970 then return end
local noError, unixTime = pcall( lang.formatDate, lang, 'U', '1 Jan ' .. tostring( year ) )
if not noError or noError and not unixTime then return end
|