Template talk:IntFixCal

Current source code (pretty-printed and annotated)
Main template : Helper sub-template, only considers common years, because the leap day is already handled by the parent template:

Description
gives the ordinal day of the year starting at 0, therefore its maximum value for the last day of December is 364 in common years and 365 in leap years. (This is always the same for the Gregorian and the International Fixed calendar.) The IFC leap day comes after its sixth 4-week month, and thus is always the 169th day of the year. This day 169 is Gregorian 18 June in common years and 17 June in leap years. However, z is 168 then! Likewise, the value for NYD is 364! The expressions in the sub-template also assume a day number starting at 1.

I’ll go ahead and fix these issues by bulk-replacing  with. This could be written more elegantly, of course. — Christoph Päper 14:34, 4 March 2024 (UTC)