Template:Classes: Difference between revisions
mNo edit summary |
mNo edit summary |
||
Line 53: | Line 53: | ||
{{!}}- | {{!}}- | ||
{{!}}class="hlist"{{!}} | {{!}}class="hlist"{{!}} | ||
{{#arraymap:{{{newt|}}}|,|@@|*[[Enrolled in::@@ (class){{!}}@@]]|\n}} | |||
{{#arraymap:{{{elective|}}}|,|@@|*[[Enrolled in::@@ (class){{!}}@@]]|\n}} | {{#arraymap:{{{elective|}}}|,|@@|*[[Enrolled in::@@ (class){{!}}@@]]|\n}} | ||
{{!}}} | {{!}}} | ||
}}<noinclude> | }}<noinclude> | ||
{{Documentation}}</noinclude> | {{Documentation}}</noinclude> |
Latest revision as of 23:28, 20 October 2014
This template allows the easy mostly automatic creation of the Hogwarts Rosters. It has different outputs depending on a students year which must be set by filling out the birth date information in the {{Character infobox}} template. It does however need to be added to student pages and have electives filled in.
First and Second Years
For First and Second year students the template outputs the core classes and takes no parameters (electives).
Example: {{classes}} outputs the following for a first year student. {{#dplvar:set |schoolyear|First Year}}
Third through Fifth Year
Starting in Third Year students have electives in addition to their core classes, so the {{classes}} template takes parameters.
Example: {{classes|arithmancy|care of magical creatures}} will output the core classes and the specified elective classes.{{#dplvar:set |schoolyear|Fourth Year}}
Sixth and Seventh Years
After O.W.L.s students choose which N.E.W.T. level classes to continue on with, so for Sixth and Seventh year students, {{classes}} does not output anything by default. All N.E.W.T. level classes must be input as parameters.
Example: {{classes|arithmancy|care of magical creatures|potions|charms|defense against the dark arts}} {{#dplvar:set |schoolyear|Sixth Year}}
Class Inputs
Input | Class |
---|---|
Input capitalization does not matter. | |
|
Astronomy |
|
Charms |
|
Defense Against the Dark Arts |
|
Herbology |
|
History of Magic |
|
Potions |
|
Transfiguration |
|
Ancient Runes |
|
Arithmancy Roster |
|
Care of Magical Creatures |
|
Divination |
|
Flying |
|
Muggle Studies |
If you feel other input abbreviations should be added, contact Cody. |
The above documentation is transcluded from Template:Classes/doc. (edit | history) |