Template:Character infobox/education: Difference between revisions
From Absit Omen Lexicon
(Created page with "<includeonly>{{!}}- {{#if:{{{hidey|}}}||{{#if:{{{birthYear|}}}{{{birthMonth|}}}| {{#vardefine:schoolyear|{{#switch: {{#vardefineecho:yearCalc|{{year/calc|{{{1|}}}|{{{2|}}}}}...") |
mNo edit summary |
||
Line 1: | Line 1: | ||
<includeonly>{{!}}- | <includeonly>{{!}}- | ||
{{#if:{{{hidey|}}}||{{#if:{{{ | {{#if:{{{hidey|}}}||{{#if:{{{1}}}{{{2|}}}| | ||
{{#vardefine:schoolyear|{{#switch: {{#vardefineecho:yearCalc|{{year/calc|{{{1|}}}|{{{2|}}}}} }} | {{#vardefine:schoolyear|{{#switch: {{#vardefineecho:yearCalc|{{year/calc|{{{1|}}}|{{{2|}}}}} }} | ||
| 1= First Year | | 1= First Year | ||
Line 11: | Line 11: | ||
}}}} | }}}} | ||
{{#ifexpr:{{#var:yearCalc}}>7| {{#vardefine:gradyear|Class of {{Year/grad|{{{1}}}|{{{2}}}}}}}}} | {{#ifexpr:{{#var:yearCalc}}>7| {{#vardefine:gradyear|Class of {{Year/grad|{{{1}}}|{{{2}}}}}}}}} | ||
|}}}}{{#Switch:{{lc:{{{ | |}}}}{{#Switch:{{lc:{{{3}}}}} | ||
|gryffindor | |gryffindor | ||
|ravenclaw | |ravenclaw | ||
Line 23: | Line 23: | ||
{{!}} class="infoboxlabel" {{!}} House | {{!}} class="infoboxlabel" {{!}} House | ||
{{!}} class="infoboxcell" {{!}} | {{!}} class="infoboxcell" {{!}} | ||
[[in house::{{{ | [[in house::{{{3}}}]] | ||
{{!}}- | {{!}}- | ||
{{#if:{{#varexists:schoolyear}}| | {{#if:{{#varexists:schoolyear}}| | ||
Line 41: | Line 41: | ||
{{!}} class="infoboxlabel" {{!}} House | {{!}} class="infoboxlabel" {{!}} House | ||
{{!}} class="infoboxcell" {{!}} | {{!}} class="infoboxcell" {{!}} | ||
[[in house::{{house|{{{ | [[in house::{{house|{{{3}}}}}]] | ||
{{!}}- | {{!}}- | ||
{{#if:{{#varexists:schoolyear}}| | {{#if:{{#varexists:schoolyear}}| | ||
Line 60: | Line 60: | ||
{{!}} class="infoboxlabel" {{!}} School | {{!}} class="infoboxlabel" {{!}} School | ||
{{!}} class="infoboxcell" {{!}} | {{!}} class="infoboxcell" {{!}} | ||
[[School attended::{{{ | [[School attended::{{{3}}}]] | ||
{{!}}- | {{!}}- | ||
{{#if:{{#varexists:schoolyear}}| | {{#if:{{#varexists:schoolyear}}| | ||
Line 79: | Line 79: | ||
{{!}} class="infoboxlabel" {{!}} School | {{!}} class="infoboxlabel" {{!}} School | ||
{{!}} class="infoboxcell" {{!}} | {{!}} class="infoboxcell" {{!}} | ||
[[School attended::{{house|{{{ | [[School attended::{{house|{{{3}}}}}]] | ||
{{!}}- | {{!}}- | ||
{{#if:{{#varexists:schoolyear}}| | {{#if:{{#varexists:schoolyear}}| |