Template:Year: Difference between revisions
From Absit Omen Lexicon
mNo edit summary |
mNo edit summary |
||
Line 13: | Line 13: | ||
|h | |h | ||
|r | |r | ||
|s=<div id="housecrest">[[File:{{House|{{{3}}}}}.png|30px|link={{{3}}}]]</div>}}|}}</includeonly><noinclude> | |s=<div id="housecrest">[[File:{{House|{{{3}}}}}.png|30px|link={{House|{{{3}}}}}]]</div>}}|}}</includeonly><noinclude> | ||
{{Documentation}} | {{Documentation}} | ||
</noinclude> | </noinclude> |
Revision as of 19:28, 2 March 2013
This template returns the current year of a student, or the year a non-student character graduated. It uses the Current Date Module 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}}
- The Year template can also take a Hogwarts House specifier. g=Gryffindor, r=Ravenclaw, h=Hufflepuff, s=Slytherin. Also d=Durmstrang Institute, b=Beauxbatons Academy, w=Salem Witches Institute
- {{Year|birthYear|birthmonth|firstletterofhouse}}
- Example
- {{Year|2006|8|g}} returns "Expression error: Unrecognized punctuation character "["."
- {{Year|1997|8|g}} returns "Expression error: Unrecognized punctuation character "["."
- {{Year|1998|3}} returns "Expression error: Unrecognized punctuation character "["."
- {{Year|1994|9}} returns "Expression error: Unrecognized punctuation character "["."
- {{Year|1990|06}} returns "Expression error: Unrecognized punctuation character "["."
- {{Year|1981|7|r}} returns "Expression error: Unrecognized punctuation character "["."
- {{Year|1960|11}} returns "Expression error: Unrecognized punctuation character "["."
The year template invokes Module:Year. It also makes use of Module:Date and Module:CurrentDate to set the date by which the year is calculated.
The above documentation is transcluded from Template:Year/doc. (edit | history) |