<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://moasspedia.org/w/index.php?action=history&amp;feed=atom&amp;title=Module%3AJapanese_calendar%2Fdoc</id>
	<title>Module:Japanese calendar/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://moasspedia.org/w/index.php?action=history&amp;feed=atom&amp;title=Module%3AJapanese_calendar%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://moasspedia.org/w/index.php?title=Module:Japanese_calendar/doc&amp;action=history"/>
	<updated>2026-04-08T04:16:00Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.37.2</generator>
	<entry>
		<id>https://moasspedia.org/w/index.php?title=Module:Japanese_calendar/doc&amp;diff=2145&amp;oldid=prev</id>
		<title>Wikipedia&gt;Gonnym at 20:44, 26 December 2021</title>
		<link rel="alternate" type="text/html" href="https://moasspedia.org/w/index.php?title=Module:Japanese_calendar/doc&amp;diff=2145&amp;oldid=prev"/>
		<updated>2021-12-26T20:44:51Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{module rating|beta}}&lt;br /&gt;
&lt;br /&gt;
This module is used to calculate dates in the [[Japanese calendar]]. It defines an &amp;quot;era&amp;quot; [[Class (computer programming)|class]] which is designed to be called from other Lua modules, and it also contains several functions to export Japanese calendar data directly to Wikipedia pages through #invoke.&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
&lt;br /&gt;
=== Through #invoke ===&lt;br /&gt;
* {{mlx|Japanese calendar|&amp;#039;&amp;#039;function_name&amp;#039;&amp;#039;|year{{=}}&amp;#039;&amp;#039;year&amp;#039;&amp;#039;|era{{=}}&amp;#039;&amp;#039;article name or kanji&amp;#039;&amp;#039;|previous{{=}}&amp;#039;&amp;#039;yes&amp;#039;&amp;#039;|next{{=}}&amp;#039;&amp;#039;yes&amp;#039;&amp;#039;}}&lt;br /&gt;
&lt;br /&gt;
The function name specifies how the data should be outputted. The &amp;lt;code&amp;gt;&amp;#039;&amp;#039;year&amp;#039;&amp;#039;&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;&amp;#039;&amp;#039;era&amp;#039;&amp;#039;&amp;lt;/code&amp;gt; parameters determine what era and year the module outputs. The &amp;lt;code&amp;gt;&amp;#039;&amp;#039;next&amp;#039;&amp;#039;&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;&amp;#039;&amp;#039;previous&amp;#039;&amp;#039;&amp;lt;/code&amp;gt; parameters tell the module to return data for the next or previous era, rather than the one specified. If a combination of parameters is invalid the module will usually output nothing. However, if both the &amp;lt;code&amp;gt;&amp;#039;&amp;#039;next&amp;#039;&amp;#039;&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;&amp;#039;&amp;#039;previous&amp;#039;&amp;#039;&amp;lt;/code&amp;gt; parameters are specified it will output an error.&lt;br /&gt;
&lt;br /&gt;
==== Year and era ====&lt;br /&gt;
The &amp;lt;code&amp;gt;&amp;#039;&amp;#039;year&amp;#039;&amp;#039;&amp;lt;/code&amp;gt; parameter is the year in the [[Gregorian calendar]]. The &amp;lt;code&amp;gt;&amp;#039;&amp;#039;era&amp;#039;&amp;#039;&amp;lt;/code&amp;gt; parameter can either be the article name for that era, or the era&amp;#039;s name in [[kanji]]. (Transcribed English era names can usually be used, but will not work if they are ambiguous.) Either &amp;lt;code&amp;gt;&amp;#039;&amp;#039;year&amp;#039;&amp;#039;&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;&amp;#039;&amp;#039;era&amp;#039;&amp;#039;&amp;lt;/code&amp;gt; must be specified. If both are specified, the module defaults to using &amp;lt;code&amp;gt;&amp;#039;&amp;#039;era&amp;#039;&amp;#039;&amp;lt;/code&amp;gt; to get the era data. This enables output of the last year of the previous era (for example, Shōwa 64 is the same year as Heisei 1).&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Code !! Output&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{#invoke:Japanese calendar|link|year=1950}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; || {{#invoke:Japanese calendar|link|year=1950}}&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{#invoke:Japanese calendar|link|era=Shōwa period}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; || {{#invoke:Japanese calendar|link|era=Shōwa period}}&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{#invoke:Japanese calendar|link|era=昭和}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; || {{#invoke:Japanese calendar|link|era=昭和}}&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{#invoke:Japanese calendar|link|era=Shōwa}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; || {{#invoke:Japanese calendar|link|era=Shōwa}}&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{#invoke:Japanese calendar|link_year|year=1989}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; || {{#invoke:Japanese calendar|link_year|year=1989}}&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{#invoke:Japanese calendar|link_year|year=1989|era=Shōwa period}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; || {{#invoke:Japanese calendar|link_year|year=1989|era=Shōwa period}}&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{#invoke:Japanese calendar|link_year|year=1990}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; || {{#invoke:Japanese calendar|link_year|year=1990}}&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{#invoke:Japanese calendar|link_year|year=1990|era=Shōwa period}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; || {{#invoke:Japanese calendar|link_year|year=1990|era=Shōwa period}}&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==== Functions ====&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Code !! Description !! Example&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;baseyear&amp;lt;/code&amp;gt; || The first year of the specified era. || &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{#invoke:Japanese calendar|baseyear|era=Heisei}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; &amp;amp;rarr; {{#invoke:Japanese calendar|baseyear|era=Heisei}}&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;endyear&amp;lt;/code&amp;gt; || The last year of the specified era. || &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{#invoke:Japanese calendar|endyear|era=Shōwa period}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; &amp;amp;rarr; {{#invoke:Japanese calendar|endyear|era=Shōwa period}}&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;year&amp;lt;/code&amp;gt; || The year for the specified era, without the era name. Defaults to the newer era, if more than one is applicable. || &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{#invoke:Japanese calendar|year|year=1989}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; &amp;amp;rarr; {{#invoke:Japanese calendar|year|year=1989}}&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;kanjiyear&amp;lt;/code&amp;gt; || The same as &amp;lt;code&amp;gt;&amp;#039;&amp;#039;year&amp;#039;&amp;#039;&amp;lt;/code&amp;gt;, but in [[kanji]]. The first year of an era is changed to the kanji 元, and the others are changed to [[Halfwidth and fullwidth forms|full-width]] numbers. || &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{#invoke:Japanese calendar|kanjiyear|year=1989}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; &amp;amp;rarr; {{#invoke:Japanese calendar|kanjiyear|year=1989}}&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;article&amp;lt;/code&amp;gt; || The Wikipedia article for the era, unlinked. || &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{#invoke:Japanese calendar|article|year=1950}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; &amp;amp;rarr; {{#invoke:Japanese calendar|article|year=1950}}&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;label&amp;lt;/code&amp;gt; || The name of the era. Same as &amp;lt;code&amp;gt;&amp;#039;&amp;#039;article&amp;#039;&amp;#039;&amp;lt;/code&amp;gt; for [[WP:DAB|undisambiguated]] titles. || &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{#invoke:Japanese calendar|label|year=1950}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; &amp;amp;rarr; {{#invoke:Japanese calendar|label|year=1950}}&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;link&amp;lt;/code&amp;gt; || A link to the Wikipedia article of the specified era. || &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{#invoke:Japanese calendar|link|year=1950}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; &amp;amp;rarr; {{#invoke:Japanese calendar|link|year=1950}}&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;kanji&amp;lt;/code&amp;gt; || The kanji for the specified era. || &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{#invoke:Japanese calendar|kanji|year=1950}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; &amp;amp;rarr; {{#invoke:Japanese calendar|kanji|year=1950}}&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;label_year&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;&amp;#039;&amp;#039;label&amp;#039;&amp;#039;&amp;lt;/code&amp;gt; followed by &amp;lt;code&amp;gt;&amp;#039;&amp;#039;year&amp;#039;&amp;#039;&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{#invoke:Japanese calendar|label_year|year=1989}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; &amp;amp;rarr; {{#invoke:Japanese calendar|label_year|year=1989}}&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;link_year&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;&amp;#039;&amp;#039;link&amp;#039;&amp;#039;&amp;lt;/code&amp;gt; followed by &amp;lt;code&amp;gt;&amp;#039;&amp;#039;year&amp;#039;&amp;#039;&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{#invoke:Japanese calendar|link_year|year=1989}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; &amp;amp;rarr; {{#invoke:Japanese calendar|link_year|year=1989}}&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;label_kanjiyear&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;&amp;#039;&amp;#039;label&amp;#039;&amp;#039;&amp;lt;/code&amp;gt; followed by &amp;lt;code&amp;gt;&amp;#039;&amp;#039;kanjiyear&amp;#039;&amp;#039;&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{#invoke:Japanese calendar|label_kanjiyear|year=1989}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; &amp;amp;rarr; {{#invoke:Japanese calendar|label_kanjiyear|year=1989}}&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;link_kanjiyear&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;&amp;#039;&amp;#039;link&amp;#039;&amp;#039;&amp;lt;/code&amp;gt; followed by &amp;lt;code&amp;gt;&amp;#039;&amp;#039;kanjiyear&amp;#039;&amp;#039;&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{#invoke:Japanese calendar|link_kanjiyear|year=1989}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; &amp;amp;rarr; {{#invoke:Japanese calendar|link_kanjiyear|year=1989}}&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==== Next, previous and old ====&lt;br /&gt;
If the &amp;lt;code&amp;gt;&amp;#039;&amp;#039;next&amp;#039;&amp;#039;&amp;lt;/code&amp;gt; parameter is specified, the module outputs the data for the subsequent era; if the &amp;lt;code&amp;gt;&amp;#039;&amp;#039;previous&amp;#039;&amp;#039;&amp;lt;/code&amp;gt; parameter is specified it outputs the data for the previous one. If the &amp;lt;code&amp;gt;&amp;#039;&amp;#039;old&amp;#039;&amp;#039;&amp;lt;/code&amp;gt; parameter is specified, the module outputs the data for the &amp;quot;old&amp;quot; era. This is the same as the current era unless the year is set to the first year of the specified era. If this is the case, then &amp;lt;code&amp;gt;&amp;#039;&amp;#039;old&amp;#039;&amp;#039;&amp;lt;/code&amp;gt; outputs the data for the previous era. However, if the module could not find a valid previous era then the data for the current era is returned.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Code !! Output&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{#invoke:Japanese calendar|baseyear|era=Shōwa period}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; || {{#invoke:Japanese calendar|baseyear|era=Shōwa period}}&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{#invoke:Japanese calendar|baseyear|era=Shōwa period|next=yes}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; || {{#invoke:Japanese calendar|baseyear|era=Shōwa period|next=yes}}&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{#invoke:Japanese calendar|baseyear|era=Shōwa period|previous=yes}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; || {{#invoke:Japanese calendar|baseyear|era=Shōwa period|previous=yes}}&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{#invoke:Japanese calendar|baseyear|era=Shōwa period|old=yes}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; || {{#invoke:Japanese calendar|baseyear|era=Shōwa period|old=yes}}&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{#invoke:Japanese calendar|link|year=1880}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; || {{#invoke:Japanese calendar|link|year=1880}}&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{#invoke:Japanese calendar|link|year=1880|next=yes}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; || {{#invoke:Japanese calendar|link|year=1880|next=yes}}&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{#invoke:Japanese calendar|link|year=1880|previous=yes}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; || {{#invoke:Japanese calendar|link|year=1880|previous=yes}}&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{#invoke:Japanese calendar|link|year=1880|old=yes}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; || {{#invoke:Japanese calendar|link|year=1880|old=yes}}&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{#invoke:Japanese calendar|link_year|year=1926}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; || {{#invoke:Japanese calendar|link_year|year=1926}}&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{#invoke:Japanese calendar|link_year|year=1926|old=yes}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; || {{#invoke:Japanese calendar|link_year|year=1926|old=yes}}&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{#invoke:Japanese calendar|link_year|year=1927}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; || {{#invoke:Japanese calendar|link_year|year=1927}}&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{#invoke:Japanese calendar|link_year|year=1927|old=yes}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; || {{#invoke:Japanese calendar|link_year|year=1927|old=yes}}&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== From another Lua module ===&lt;br /&gt;
First of all, the era class must be loaded, like this:&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code lang=&amp;quot;lua&amp;quot;&amp;gt;local era = require( &amp;#039;Module:Japanese calendar&amp;#039; ).era&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Once the class is loaded, you can make a new era object using &amp;lt;code&amp;gt;era:new()&amp;lt;/code&amp;gt;: &lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code lang=&amp;quot;lua&amp;gt;local myEra = era:new{ year = &amp;#039;&amp;#039;year&amp;#039;&amp;#039;, era = &amp;#039;&amp;#039;article name or kanji&amp;#039;&amp;#039; }&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Either &amp;lt;code&amp;gt;&amp;#039;&amp;#039;year&amp;#039;&amp;#039;&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;&amp;#039;&amp;#039;era&amp;#039;&amp;#039;&amp;lt;/code&amp;gt; must be specified. It is also possible to use an &amp;lt;code&amp;gt;index&amp;lt;/code&amp;gt; field, corresponding to the index of [[Module:Japanese calendar/data]], but this is for internal use only and will change as new eras are added.&lt;br /&gt;
&lt;br /&gt;
==== Properties ====&lt;br /&gt;
Era objects have a number of properties. Their values might be &amp;lt;code&amp;gt;nil&amp;lt;/code&amp;gt; if the module did not have enough information to process them, or the values could be &amp;lt;code&amp;gt;false&amp;lt;/code&amp;gt; if they correspond to an invalid era. You can specify properties with the dot syntax:&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code lang=&amp;quot;lua&amp;quot;&amp;gt;local article = myEra.article&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The properties are as follows:&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;gregorianYear&amp;lt;/code&amp;gt;: the year in the [[Gregorian calendar]]. Same as the input year.&lt;br /&gt;
* &amp;lt;code&amp;gt;startYear&amp;lt;/code&amp;gt;: the first year of the specified era.&lt;br /&gt;
* &amp;lt;code&amp;gt;endYear&amp;lt;/code&amp;gt;: the last year of the specified era.&lt;br /&gt;
* &amp;lt;code&amp;gt;eraYear&amp;lt;/code&amp;gt;: the year of the specified era, without the era name.&lt;br /&gt;
* &amp;lt;code&amp;gt;eraYearKanji&amp;lt;/code&amp;gt;: a string representing the era year in [[kanji]]. The first year of an era is changed to the kanji 元, and the others are changed to [[Halfwidth and fullwidth forms|full-width]] numbers. Note: even though the output may often look like a number, it will always be a string value.&lt;br /&gt;
* &amp;lt;code&amp;gt;article&amp;lt;/code&amp;gt;: the Wikipedia article for the era, unlinked.&lt;br /&gt;
* &amp;lt;code&amp;gt;label&amp;lt;/code&amp;gt;: the name of the era. Same as &amp;lt;code&amp;gt;article&amp;lt;/code&amp;gt; unless the article title is [[WP:DAB|disambiguated]].&lt;br /&gt;
* &amp;lt;code&amp;gt;kanji&amp;lt;/code&amp;gt;: the name of the era in kanji.&lt;br /&gt;
&lt;br /&gt;
==== Methods ====&lt;br /&gt;
Era objects have three methods. Methods can be specified with the colon syntax:&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code lang=&amp;quot;lua&amp;quot;&amp;gt;local nextEra = myEra:getNextEra()&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The methods are as follows:&lt;br /&gt;
* &amp;lt;code lang=&amp;quot;lua&amp;quot;&amp;gt;era:getNextEra()&amp;lt;/code&amp;gt; - gets the era object for the next era. Returns &amp;lt;code&amp;gt;nil&amp;lt;/code&amp;gt; if it doesn&amp;#039;t exist.&lt;br /&gt;
* &amp;lt;code lang=&amp;quot;lua&amp;quot;&amp;gt;era:getPreviousEra()&amp;lt;/code&amp;gt; - gets the era object for the previous era. Returns &amp;lt;code&amp;gt;nil&amp;lt;/code&amp;gt; if it doesn&amp;#039;t exist.&lt;br /&gt;
* &amp;lt;code lang=&amp;quot;lua&amp;quot;&amp;gt;era:getOldEra()&amp;lt;/code&amp;gt; - gets the era object for the &amp;quot;old&amp;quot; era. This is the same as the current era object unless eraYear equals 1. If eraYear equals 1 then this returns the era object for the previous era. If the module could not find a valid previous era object then the current era object is returned.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;{{Sandbox other||&lt;br /&gt;
[[Category:Time, date and calendar modules]]&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>Wikipedia&gt;Gonnym</name></author>
	</entry>
</feed>