Tɛmplet:Japanese year
Yi palo
This tɛmplet 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.
Sample output
[mali mi di yibu sheena n-niŋ]Wikitext | Output |
{{Japanese year|1400}} | [[Ōei|Tɛmplet:Japanese era]] Expression error: Ti bi baŋ a yɛltɔɣa bahibu bia maa "[". |
{{Japanese year|1500}} | [[Meiō|Tɛmplet:Japanese era]] Expression error: Ti bi baŋ a yɛltɔɣa bahibu bia maa "[". |
{{Japanese year|1600}} | [[Keichō|Tɛmplet:Japanese era]] Expression error: Ti bi baŋ a yɛltɔɣa bahibu bia maa "[". |
{{Japanese year|1700}} | [[Genroku|Tɛmplet:Japanese era]] Expression error: Ti bi baŋ a yɛltɔɣa bahibu bia maa "[". |
{{Japanese year|1800}} | [[Kansei|Tɛmplet:Japanese era]] Expression error: Ti bi baŋ a yɛltɔɣa bahibu bia maa "[". |
{{Japanese year|1870}} | Meiji 3 |
{{Japanese year|1920}} | Taishō 9 |
{{Japanese year|1930}} | Shōwa 5 |
{{Japanese year|1990}} | Heisei 2 |