Template:Classes: Difference between revisions

From Absit Omen Lexicon
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

[view] [edit] [history] [purge] Documentation icon Template documentation

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
  • astro
Astronomy
  • charms
Charms
  • defense against the dark arts
  • dada
Defense Against the Dark Arts
  • herbology
  • herb
Herbology
  • history of magic
  • hom
History of Magic
  • potions
Potions
  • transfiguration
  • transfig
Transfiguration
  • ancient runes
  • runes
Ancient Runes
  • arithmancy
Arithmancy Roster
  • care of magical creatures
  • comc
Care of Magical Creatures
  • divination
  • divine
Divination
  • flying
Flying
  • muggle studies
  • muggle
Muggle Studies
If you feel other input abbreviations should be added, contact Cody.

The above documentation is transcluded from Template:Classes/doc. (edit | history)
Please add categories and interwikis to the /doc subpage. Subpages of this template.