Template:Nengo/sandbox
Appearance
This is the template sandbox page for Template:Nengo (diff). |
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 takes one parameter, a four-digit year between 1394 and the present year, and returns the Japanese era name corresponding to that year.
Examples
[edit]- {{nengo|1400}} → Ōei
- {{nengo|1500}} → Meiō
- {{nengo|1600}} → Keichō
- {{nengo|1700}} → Genroku
- {{nengo|1800}} → Kansei
- {{nengo|1870}} → Meiji
- {{nengo|1920}} → Taishō
- {{nengo|1930}} → Shōwa
- {{nengo|1990}} → Heisei
- {{nengo|2020}} → Reiwa
See also
[edit]- {{Japanese era}}
- {{Japan current era date}}
- {{Japanese year}}
- {{Japanese year number}}