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.

  • {{nengo|1492}} -> Meio
  • {{nengo|1776}} -> An'ei
  • {{nengo|1864}} -> Genji
  • {{nengo|1941}} -> Shōwa period
  • {{nengo|2024}} -> Heisei