Template:Classes: Difference between revisions
mNo edit summary |
mNo edit summary |
||
Line 1: | Line 1: | ||
{{#Switch:{{#var:schoolyear}} | {{#Switch:{{#var:schoolyear}} | ||
|First Year | |First Year={{{!}}class="wikitable" | ||
{{!}}- | |||
!{{PAGENAME}}'s Classes | |||
{{!}}- | |||
{{!}}class="hlist"{{!}} | |||
*[[Enrolled in::Astronomy (class)|Astronomy]] | |||
*[[Enrolled in::Charms (class)|Charms]] | |||
*[[Enrolled in::Defense Against the Dark Arts (class)|Defense Against the Dark Arts]] | |||
*[[Enrolled in::Herbology (class)|Herbology]] | |||
*[[Enrolled in::History of Magic (class)|History of Magic]] | |||
*[[Enrolled in::Potions (class)|Potions]] | |||
*[[Enrolled in::Transfiguration (class)|Transfiguration]] | |||
*[[Enrolled in::Flying (class)|Flying]] | |||
{{!}}} | |||
|Second Year={{{!}}class="wikitable" | |Second Year={{{!}}class="wikitable" | ||
{{!}}- | {{!}}- | ||
Line 6: | Line 19: | ||
{{!}}- | {{!}}- | ||
{{!}}class="hlist"{{!}} | {{!}}class="hlist"{{!}} | ||
*[[Enrolled in::Astronomy (class)|Astronomy]] | |||
*[[Enrolled in::Charms (class)|Charms]] | |||
*[[Enrolled in::Defense Against the Dark Arts (class)|Defense Against the Dark Arts]] | |||
*[[Enrolled in::Herbology (class)|Herbology]] | |||
*[[Enrolled in::History of Magic (class)|History of Magic]] | |||
*[[Enrolled in::Potions (class)|Potions]] | |||
*[[Enrolled in::Transfiguration (class)|Transfiguration]] | |||
{{!}}} | {{!}}} | ||
|Third Year | |Third Year | ||
Line 16: | Line 35: | ||
!Core | !Core | ||
{{!}}class="hlist"{{!}} | {{!}}class="hlist"{{!}} | ||
*[[Enrolled in::Astronomy (class)|Astronomy]] | |||
*[[Enrolled in::Charms (class)|Charms]] | |||
*[[Enrolled in::Defense Against the Dark Arts (class)|Defense Against the Dark Arts]] | |||
*[[Enrolled in::Herbology (class)|Herbology]] | |||
*[[Enrolled in::History of Magic (class)|History of Magic]] | |||
*[[Enrolled in::Potions (class)|Potions]] | |||
*[[Enrolled in::Transfiguration (class)|Transfiguration]] | |||
{{!}}- | {{!}}- | ||
!Elective | !Elective | ||
Line 28: | Line 53: | ||
{{!}}- | {{!}}- | ||
{{!}}class="hlist"{{!}} | {{!}}class="hlist"{{!}} | ||
{{#arraymap:{{{elective|}}}|,|@@|*[[Enrolled in::@@ (class){{!}}@@]]|\n}} | {{#arraymap:{{{elective|}}}|,|@@|*[[Enrolled in::@@ (class){{!}}@@]]|\n}} | ||
{{!}}} | {{!}}} | ||
}}<noinclude> | }}<noinclude> | ||
{{Documentation}}</noinclude> | {{Documentation}}</noinclude> |
Revision as of 07:55, 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) |