Template:Days in year/doc
From Wikipedia, the free encyclopedia
This template tells you how many days are in a given year (365 or 366). If no parameters are passed, the current year is assumed. For years in the BC era, count back from 1 BC starting with zero (i.e. 1 BC is 0, 2 BC is -1, etc.) For more information on the calculation of what is and is not a leap year, see Template:IsLeapYear.
- Syntax
{{Days in year}}(days in current year){{Days in year|year}}(days in given year){{subst:Days in year|subst=subst:}}(substitute days in current year){{Days in year|year|subst=subst:}}(substitute days in given year)
- Examples
{{Days in year}}: 366{{Days in year|2006}}: 365{{Days in year|2004}}: 366{{Days in year|2000}}: 366{{Days in year|1900}}: 365{{Days in year|0}}: 366 (1 BC){{Days in year|-4}}: 366 (5 BC)

