Skip to content

Latest commit

 

History

History
24 lines (14 loc) · 839 Bytes

README.md

File metadata and controls

24 lines (14 loc) · 839 Bytes

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