Open main menu
Home
Random
Donate
Recent changes
Special pages
Community portal
Preferences
About Stockhub
Disclaimers
Search
User menu
Talk
Contributions
Create account
Log in
Editing
Module:Japanese calendar/doc
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
==== Year and era ==== The <code>''year''</code> parameter is the year in the [[Gregorian calendar]]. The <code>''era''</code> parameter can either be the article name for that era, or the era's name in [[kanji]]. (Transcribed English era names can usually be used, but will not work if they are ambiguous.) Either <code>''year''</code> or <code>''era''</code> must be specified. If both are specified, the module defaults to using <code>''era''</code> 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). {| class="wikitable" |- ! Code !! Output |- | <code><nowiki>{{#invoke:Japanese calendar|link|year=1950}}</nowiki></code> || {{#invoke:Japanese calendar|link|year=1950}} |- | <code><nowiki>{{#invoke:Japanese calendar|link|era=Shōwa period}}</nowiki></code> || {{#invoke:Japanese calendar|link|era=Shōwa period}} |- | <code><nowiki>{{#invoke:Japanese calendar|link|era=昭和}}</nowiki></code> || {{#invoke:Japanese calendar|link|era=昭和}} |- | <code><nowiki>{{#invoke:Japanese calendar|link|era=Shōwa}}</nowiki></code> || {{#invoke:Japanese calendar|link|era=Shōwa}} |- | <code><nowiki>{{#invoke:Japanese calendar|link_year|year=1989}}</nowiki></code> || {{#invoke:Japanese calendar|link_year|year=1989}} |- | <code><nowiki>{{#invoke:Japanese calendar|link_year|year=1989|era=Shōwa period}}</nowiki></code> || {{#invoke:Japanese calendar|link_year|year=1989|era=Shōwa period}} |- | <code><nowiki>{{#invoke:Japanese calendar|link_year|year=1990}}</nowiki></code> || {{#invoke:Japanese calendar|link_year|year=1990}} |- | <code><nowiki>{{#invoke:Japanese calendar|link_year|year=1990|era=Shōwa period}}</nowiki></code> || {{#invoke:Japanese calendar|link_year|year=1990|era=Shōwa period}} |- |}
Summary:
Please note that all contributions to Stockhub may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Stockhub:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)