Template:AD/BC year

From Holidays
Jump to navigation Jump to search

2024

Template documentation[view] [edit] [history] [purge]

Use this template to convert astronomically numbered years to AD or BC years. If the parameter given is positive, then the template will just return back the same value.

Examples (for years near the beginning of the Common Era)

  • {{AD/BC year|-2}} gives 3 BC (expected answer: 3 BC)
  • {{AD/BC year|-1}} gives 2 BC (expected answer: 2 BC)
  • {{AD/BC year|0}} gives 1 BC (expected answer: 1 BC)
  • {{AD/BC year|1}} gives 1 (expected answer: 1)
  • {{AD/BC year|2}} gives 2 (expected answer: 2)
  • {{AD/BC year|3}} gives 3 (expected answer: 3)