Template:Senior status
Appearance
No
Template documentation
This template is rated as alpha. It is ready for third party input, and may be used on a few pages to see if problems arise, but should be watched. Suggestions for new features or changes in their input and output mechanisms are welcome. |
This is an alpha-quality template to calculate senior status eligibility for U.S. federal judges. To qualify for senior status, a judge must be at least 65 years of age, and the combination of the judge's age and years of service in federal courts must be at least 80 years.
Parameters are |born=
and |appointed=
, each of which takes a year value.
If the sum of the current year minus |born=
(i.e. age, approximately; full dates would be required for exact calculations) and |appointed=
is greater than 79, and the age is greater than 64, the template outputs "Yes". If not, it outputs "No".
Do not use this template in articles until it has been fully tested. It is currently coded to display nothing if used in articles.
To do before releasing for general use
- Check for invalid parameters (output nothing or error message for unnamed parameters)
- Create test cases for invalid and unreasonable parameters
- Better documentation
- Check edge cases where someone might not have had their birthday in this year (possible values for a given combination of dates 40 years ago might be 78, 79, or 80, depending on the date). Do we need to accept full birth dates? Should we output the year of eligibility for senior status instead of Yes/No text?