Jump to content

Template:Grade/doc

From Wikipedia, the free encyclopedia

This template is designed principally to expand one parameter- for example an American K-12 grade into grade, ages, and English year groups. It can work from grades, year groups and ages.

Usage

[edit]
  • {{Grade|4}} gives: grade 4 (age 9–10)
  • {{Grade|4|informal=yes}} gives: 4th grade (age 9–10)
  • {{Grade|4|plural=yes}} gives: grade 4 (ages 9–10)
  • {{Grade|4|plural=yes|yeargroup=true}} gives: grade 4 (ages 9–10), year 5
  • {{Grade|4|plural=yes|yearform=true}} gives: grade 4 (ages 9–10), junior 3
  • {{Grade|8|informal=yes|plural=yes|yearform=true}} gives: grade 8 (ages 13–14), third form
  • {{Grade|8|by-year=true|plural=yes|yearform=true}} gives: grade 7 (ages 12–13), second form
  • {{Grade|R|by-year=true|plural=yes|yearform=true}} gives: Pre-K (ages 4–5), reception
  • {{Grade|13|by-year=true|yearform=true}} gives: grade 12 (age 17–18), upper sixth
  • {{Grade|4|by-age=true|plural=yes|yearform=true}} gives: Pre-K (ages 4–5), reception
  • {{Grade|13|by-age=true|yeargroup=true|yearform=true}} gives: grade 8 (age 13–14), year 9, third form

Parameters

[edit]
Parameter Explanation
plural set to yes to print ages otherwise age  Done
informal set to yes to print nth grade otherwise grade n  Done
by-year set to true to formulate the calculation using the UK numbering system  Done
by-age set to true to formulate the calculation on the child age on 31 August  Done
yeargroup set to true to append the British year system  Done
yearform set to true to append the former British form system  Done