This template uses the #expr parser function to calculate centuries, decades, and year numbers surrounding the year parameter.
Negative numbers are passed through, not as "BC" but negative.
Variables are not used, as they were not a supported feature when this template was created, so calculations are made twice, as needed, to determine results.