Module:Year in various calendars/doc
यह Module:Year in various calendars हेतु प्रलेख पृष्ठ है
This module is rated as beta, and is ready for widespread use. It is still new and should be used with some caution to ensure the results are as expected. |
ग्रेगोरी कालदर्शक | 2024 MMXXIV |
आब अरबे कॉन्डिटा | 2777 |
आर्मेनियाई कालदर्शक | 1473 ԹՎ ՌՆՀԳ |
असीरियाई कालदर्शक | 6774 |
बहाई कालदर्शक | 180–181 |
बाली शक कालदर्शक | 1945–1946 |
बंगाली कालदर्शक | 1431 |
बर्बर कालदर्शक | 2974 |
ब्रिटिश राज वर्ष | 72 Eliz. 2 – 73 Eliz. 2 |
बुद्ध कालदर्शक | 2568 |
बर्मी कालदर्शक | 1386 |
Byzantine कालदर्शक | 7532–7533 |
चीनी कालदर्शक | 癸卯年 (जल ख़रगोश) 4720 or 4660 — to — 甲辰年 (लकड़ी ड्रैगन) 4721 or 4661 |
कॉप्टिक कालदर्शक | 1740–1741 |
डिसकॉर्डी कालदर्शक | 3190 |
इथोपियाई कालदर्शक | 2016–2017 |
हिब्रू कालदर्शक | 5784–5785 |
हिन्दू कालदर्शक | |
- विक्रम संवत | 2080–2081 |
- शक संवत | 1945–1946 |
- काली युग | 5124–5125 |
होलोसीन कालदर्शक | 12024 |
इग्बो कालदर्शक | 1024–1025 |
ईरानी कालदर्शक | 1402–1403 |
इस्लामी कालदर्शक | 1445–1446 |
जापानी कालदर्शक | Heisei 36 (平成36年) |
जावाई कालदर्शक | 1957–1958 |
जुचे कालदर्शक | 113 |
जूलियन कालदर्शक | Gregorian minus 13 days |
कोरियाई कालदर्शक | 4357 |
मिंगुओ कालदर्शक | आरओसी 113 民國113年 |
नानकशाही कालदर्शक | 556 |
थाई सौर्य कालदर्शक | 2567 |
तिब्बती कालदर्शक | 阴水兔年 (स्त्रीलिंग जल-ख़रगोश) 2150 or 1769 or 997 — to — 阳木龙年 (पुल्लिंग लकड़ी-ड्रैगन) 2151 or 1770 or 998 |
यूनिक्स समय | 1704067200 – 1735689599 |
साँचा:Year in various calendars/doc
नएँ कालदर्शक जोड़ना[संपादित करें]
यह मॉड्यूल इस प्रकार स्थापित किया गया है कि नए कालदर्शक आसानी से जोड़े जा सकें। बस मॉड्यूल कोड के "बिल्ड द बॉक्स" ("Build the box") अनुभाग तक स्क्रोल डाउन करें, और आप अपना कालदर्शक (कैलेण्डर) निम्न प्रकार जोड़ सकते हैं:
एक वर्ष दर्शाने के लिए:
local myCalendar = calendar:new()
myCalendar:setLink( 'मेरे कालदर्शक का लेख' ) -- कालदर्शक के विकिपीडिया लेख का नाम।
myCalendar:setYear( year + 10 ) -- लुआ कोड जो आपके कालदर्शक के वर्ष को ग्रेगोरी कालदर्शक के वर्ष से जोड़ सके।
box:addCalendar( myCalendar )
वर्षों की एक रेंज दर्शाने के लिए:
local myCalendar = calendar:new()
myCalendar:setLink( 'मेरे कालदर्शक का लेख' ) -- कालदर्शक के विकिपीडिया लेख का नाम।
myCalendar:setYearRange( year + 10, year + 11 ) -- लुआ कोड जो वर्ष रेंज के शुरुआती और अन्तिम वर्ष को दर्शा सकें।
box:addCalendar( myCalendar )
अधिक जटिल कालदर्शक पास कियें जा सकते हैं स्ट्रिंग के रूप में ताकि calendar:setYear()
हो सके।
तकनीकी जानकारी[संपादित करें]
The module defines three classes which do the work of setting up the sidebar and displaying the data provided by the calendar functions. These are the calendarBox
class, which defines the sidebar; the calendar
class, which holds the data for one calendar; and the calendarGroup
object, which defines a group of calendar objects with a heading.
To load these classes from another module, use the following:
local yearInOtherCalendars = require( 'Module:Year in various calendars' )
local calendarBox = yearInOtherCalendars.calendarBox
local calendarGroup = yearInOtherCalendars.calendarGroup
local calendar = yearInOtherCalendars.calendar
calendarBox class[संपादित करें]
A calendarBox
object is initiated with:
local myCalendarBox = calendarBox:new{ year = yyyy, footnotes = footnotes, navbar = page name }
year
- sets the Gregorian year to base calendar calculations on. If not specified, the current year is used.footnotes
- sets text to be displayed in a footnotes section at the bottom of the sidebar.navbar
- sets the page name to be used by the navbar.
Calendar box objects have the following properties:
calendarBox.year
- the Gregorian year number. This is negative for BC years; for example, for the year 100 BC the value of calendarBox.year is-99
. (BC years are calculated by "1 - n" rather than "0 - n", as there is no year zero.)calendarBox.yearText
- the Gregorian year text. This is a string value of the format "n" for AD years and "n BC" for BC years.calendarBox.caption
- the text of the box caption (the bold text that appears directly above the box). The default caption is the value ofcalendarBox.yearText
.calendarBox.footnotes
- the text of the box footnotes.calendarBox.navbar
- the page name used by the navbar.
Calendar box objects have the following methods:
calendarBox:setCaption( caption )
- sets the box caption (the bold text that appears directly above the box). The default caption is the value ofcalendarBox.yearText
.calendarBox:addCalendar( obj )
- adds a calendar object or a calendar group object to the calendar box.calendarBox:addCalendarGroup( obj )
- an alias formyCalendarBox:addCalendar()
.calendarBox:export()
- converts the calendar box object to wikicode. This callscalendar:export()
andcalendarGroup:export()
to export calendar objects and calendar group objects.
calendar class[संपादित करें]
A calendar
object is initiated with:
local myCalendar = calendar:new()
Calendar objects have the following properties:
calendar.link
- the link name.calendar.year
- the year value. This is always a string value.
Calendar objects have the following methods:
calendar:setLink( link, display )
- sets the link name for the calendar object.link
is the name of Wikipedia's article about the calendar, anddisplay
is an optional display name for the article link.calendar:setRawLink( wikitext )
- sets the calendar link as raw wikitext.calendar:getLink()
- gets the link value.calendar:setYear( year )
- sets the year value for the calendar.year
can be a number or a string.calendar:setYearRange( startYear, endYear ) - sets the year value for the calendar as a year range. Both
startYear
andendYear
must be number values.calendar:export()
- exports the calendar to wikitext. If no link value was found, this returnsnil
. If a link was found but no year value was found, the calendar is output with a value ofN/A
for the year.
calendarGroup class[संपादित करें]
A calendarGroup
object is initiated with:
local myCalendarGroup = calendarGroup:new{ heading = heading }
heading
- the wikitext heading for the calendar group (e.g. [[Hindu calendar]]s
).
Calendar group objects have one property:
calendarGroup.heading
- the calendar group heading text.
Calendar group objects have the following methods:
calendarGroup:addCalendar( obj )
- adds a calendar object to the calendar group.
calendarGroup:export()
- converts a calendar group to wikitext. Calls calendar:export()
to export individual calendar objects.
इन्हें भी देखें[संपादित करें]