Difference between revisions of "Template:Japanese year"
Jump to navigation
Jump to search
en>HJ Mitchell m (Removed protection from "Template:Japanese year": only 14 transclusions, most of them outside mainspace; no need for protection) |
m (1 revision imported) |
(No difference)
|
Latest revision as of 02:19, 2 January 2019
This template employs intricate features of template syntax.
You are encouraged to familiarise yourself with its setup and parser functions before editing the template. If your edit causes unexpected problems, please undo it quickly, as this template may appear on a large number of pages. You can conduct experiments, and should test all major changes, in either this template's sandbox, the general template sandbox, or your user space before changing anything here. |
This template converts a year number in the Gregorian calendar into the corresponding era year in the Japanese calendar. It depends on the {{Nengo}}, {{Japanese era}}, and {{Japanese year number}} templates. If the era cannot be determined by the {{Nengo}} template, the output of this template will be blank. If the given year is a transitional year between eras, the new era's year will be given for the entire year, disregarding month and day of the actual transition date.
This template expects the Gregorian year to be passed either using the named year
parameter or the first unnamed parameter, i.e. {{Japanese year|year=2006}}
or {{Japanese year|2006}}
.
Sample output
Wikitext | Output |
{{Japanese year|476}} | |
{{Japanese year|1988}} | Shōwa 63 |
{{Japanese year|1989}} | Heisei 1 |
{{Japanese year|2006}} | Heisei 18 |
The above documentation is transcluded from Template:Japanese year/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |