Anonymous user
Module:Year in various calendars: Difference between revisions
Created page with "-- Load dependencies. local getArgs = require('Module:Arguments').getArgs local numToRoman = require( 'Module:Roman' ).main local getOlympiad = require( 'Module:Ancient Olympiads' )._main local getDynasty = require( 'Module:Ancient Egypt era' )._main local getPharaoh = require( 'Module:Ancient Egypt kings' )._main local numToArmenian = require( 'Module:Armenian' ).main local getRegnal = require( 'Module:British regnal year' ).main local japaneseEra = require( 'Module:Jap..."
Vivaporius (talk | contribs) m (1 revision imported) |
en>Centrist16 (Created page with "-- Load dependencies. local getArgs = require('Module:Arguments').getArgs local numToRoman = require( 'Module:Roman' ).main local getOlympiad = require( 'Module:Ancient Olympiads' )._main local getDynasty = require( 'Module:Ancient Egypt era' )._main local getPharaoh = require( 'Module:Ancient Egypt kings' )._main local numToArmenian = require( 'Module:Armenian' ).main local getRegnal = require( 'Module:British regnal year' ).main local japaneseEra = require( 'Module:Jap...") |
||
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
|