Skip to content

A MediaWiki extension to convert dates between different calendars

Notifications You must be signed in to change notification settings

cllu/MediaWiki-CalendarConverter

Repository files navigation

MediaWiki CalendarConverter

A MediaWiki extension that provides a parser function and Scribunto Lua library to convert a date between different calendars. Currently supports conversion between Lunar and Solar (Gregorian) calendars (dates between year 1900 and 2100).

Based on the library isee15/Lunar-Solar-Calendar-Converter.

Installation

Add wfLoadExtension('CalendarConverter'); to LocalSettings.php.

Usage

Scribunto Lua Library

LunarSolarConvert provides a Scribunto library, mw.ext.calendarconverter. Examples:

local lunar2solar = mw.ext.calendarconverter.lunar2solar
local solar2lunar = mw.ext.calendarconverter.solar2lunar
solar2lunar(2014, 1, 1) => [2013, 12, 1]

License

MIT

About

A MediaWiki extension to convert dates between different calendars

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published