Modul:Year in other calendars: Perbedaan antara revisi
Konten dihapus Konten ditambahkan
Tidak ada ringkasan suntingan |
Tidak ada ringkasan suntingan Tag: Suntingan perangkat seluler Suntingan peramban seluler Suntingan seluler lanjutan |
||
(22 revisi perantara oleh 3 pengguna tidak ditampilkan) | |||
Baris 4:
local makeNavbar = require( 'Module:Navbar' )._navbar
local numToRoman = require( 'Module:Roman' ).main
local japaneseEra = require( 'Module:Japanese calendar' ).era()
Baris 350 ⟶ 348:
-- Initiate the box and get the year values.
local init = args
init.navbar = '
local box = calendarBox:new( init )
local year = box.year
Baris 383 ⟶ 381:
box:addCalendar( gregorian )
----------------------------------------------------------------------▼
-- Armenian calendar▼
----------------------------------------------------------------------▼
local armenian = calendar:new()▼
armenian:setLink( 'Kalender Armenia' )▼
if year > 551 then▼
end▼
box:addCalendar( armenian )▼
local assyrian = calendar:new()▼
assyrian:setLink( 'Kalender Asiria' )▼
assyrian:setYear( year + 4750 )▼
box:addCalendar( assyrian )▼
----------------------------------------------------------------------
-- Bahá'í calendar
Baris 412 ⟶ 389:
bahai:setYearRange( year - 1844, year - 1843 )
box:addCalendar( bahai )
▲ ----------------------------------------------------------------------
▲ ----------------------------------------------------------------------
▲ end
----------------------------------------------------------------------
-- Bengali calendar
Baris 460 ⟶ 447:
local heavenlyStems = {
{ '甲', '[[Kayu]]' }, -- 1
{ '乙', '[[Kayu]]' }, -- 2
{ '丙', '[[Api]]' }, -- 3
{ '丁', '[[Api]]' }, -- 4
{ '戊', '[[Tanah]]' }, -- 5
{ '己', '[[Tanah]]' }, -- 6
{ '庚', '[[Logam]]' }, -- 7
{ '辛', '[[Logam]]' }, -- 8
{ '壬', '[[Air]]' }, -- 9
{ '癸', '[[Air]]' } -- 10
}
Baris 611 ⟶ 598:
local holocene = calendar:new()
holocene:setLink( 'Kalender
holocene:setYear( year + 10000 )
box:addCalendar( holocene )
Baris 643 ⟶ 630:
local year1 = math.ceil( -islamicMult * ( year - islamicSub ) )
local year2 = math.ceil( -islamicMult * ( year - islamicSub + 1 ) )
islamic:setYear( mw.ustring.format( '%d
end
box:addCalendar( islamic )
Baris 651 ⟶ 638:
----------------------------------------------------------------------
local japanese =
japanese:setLink( 'Kalender Jepang' )
Baris 669 ⟶ 656:
japanese:setYear( table.concat( japaneseYearText ) )
end
-- Japanese imperial year
▲ koki:setYearRange( year + 660 )
----------------------------------------------------------------------
-- Javanese calendar
Baris 686 ⟶ 671:
local javanese = calendar:new()
javanese:setLink( 'Kalender Jawa' )
local
local
if year - 124 > 0 then
local year1 = math.floor(
local year2 = math.floor(
javanese:setYearRange( year1, year2 )
else
local year1 = math.ceil( -
local year2 = math.ceil( -
end
box:addCalendar( javanese )
|