Template:Year/doc: Difference between revisions

From Absit Omen Lexicon
(Created page with "This template returns the current year of a student, or the year a non-student character graduated. It uses the Current Date Template to determine th...")
 
mNo edit summary
Line 11: Line 11:
:<nowiki>{{Year|1981|7}}</nowiki> returns "{{Year|1981|7}}"
:<nowiki>{{Year|1981|7}}</nowiki> returns "{{Year|1981|7}}"
:<nowiki>{{Year|1960|11}}</nowiki> returns "{{Year|1960|11}}"
:<nowiki>{{Year|1960|11}}</nowiki> returns "{{Year|1960|11}}"
<noinclude>[[Category:Template Documentation]]</noinclude>

Revision as of 01:44, 8 October 2012

This template returns the current year of a student, or the year a non-student character graduated. It uses the Current Date Template to determine the current date. Enter the Birth year as the first value and the birth month as the second value.

Syntax
{{Year|birthYear|birthmonth}}
Example
{{Year|1997|8}} returns "Graduate (Class of 2015)"
{{Year|1997|9}} returns "Graduate (Class of 2016)"
{{Year|1994|9}} returns "Graduate (Class of 2013)"
{{Year|1990|06}} returns "Graduate (Class of 2008)"
{{Year|1981|7}} returns "Graduate (Class of 1999)"
{{Year|1960|11}} returns "Graduate (Class of 1979)"