Template:Character infobox/education: Difference between revisions

From Absit Omen Lexicon
mNo edit summary
mNo edit summary
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{!}}-
<includeonly>! class="infoboxsubheading" colspan="2"  {{!}} Education
{{#if:{{{hidey|}}}||{{#if:{{#varexists:birthDate}}|{{#vardefineecho:yearCalc|{{year/calc|{{#var:birthYear}}|{{#var:birthMonth}}}} }}
{{#vardefineecho:schoolyear|{{#switch:{{#var:yearCalc}}
| 1= First Year
| 2= Second Year
| 3= Third Year
| 4= Fourth Year
| 5= Fifth Year
| 6= Sixth Year
| 7= Seventh Year
|#default=test
}}}}
{{#ifexpr:{{#var:yearCalc}}>7| {{#vardefine:gradyear|Class of {{Year/grad|{{{1}}}|{{{2}}}}}}}}}
|}}}}
! class="infoboxsubheading" colspan="2"  {{!}} '''Education'''
{{!}}-
{{!}}-
{{#Switch:{{lc:{{#var:house}}
{{#Switch:{{lc:{{#var:house}}}}
|gryffindor
|gryffindor
|ravenclaw
|ravenclaw
Line 22: Line 8:
{{!}} class="infoboxlabel" {{!}} School
{{!}} class="infoboxlabel" {{!}} School
{{!}} class="infoboxcell" {{!}}
{{!}} class="infoboxcell" {{!}}
[[School attended::Hogwarts]]
[[Hogwarts]]
{{!}}-
{{!}}-
{{!}} class="infoboxlabel" {{!}} House
{{!}} class="infoboxlabel" {{!}} House
{{!}} class="infoboxcell" {{!}}
{{!}} class="infoboxcell" {{!}}
[[in house::{{#var:house}}]]
[[{{#var:house}}]]
{{!}}-
{{!}}-
{{#if:{{#varexists:schoolyear}}|
{{!}} class="infoboxlabel" {{!}} Year
{{!}} class="infoboxcell" {{!}}
{{#var:schoolyear}}{{#var:gradyear}}
{{!}}-
|}}
|g
|r
|s
|h=
{{!}} class="infoboxlabel" {{!}} School
{{!}} class="infoboxcell" {{!}}
[[School attended::Hogwarts]]
{{!}}-
{{!}} class="infoboxlabel" {{!}} House
{{!}} class="infoboxcell" {{!}}
[[in house::{{#var:house}}]]
{{!}}-
{{#if:{{#varexists:schoolyear}}|
{{!}} class="infoboxlabel" {{!}} Year
{{!}} class="infoboxcell" {{!}}
{{#var:schoolyear}}{{#var:gradyear}}
{{!}}-
|}}
|durmstrang institute
|durmstrang institute
|beauxbatons academy
|beauxbatons academy
Line 63: Line 25:
{{!}} class="infoboxlabel" {{!}} School
{{!}} class="infoboxlabel" {{!}} School
{{!}} class="infoboxcell" {{!}}
{{!}} class="infoboxcell" {{!}}
[[School attended::{{#var:house}}]]
[[{{#var:house}}]]
{{!}}-
{{!}}-
{{#if:{{#varexists:schoolyear}}|
|home schooled=
{{!}} class="infoboxlabel" {{!}} Year
{{!}} class="infoboxcell" {{!}}
{{#var:schoolyear}}{{#var:gradyear}}
{{!}}-
|}}
|d
|b
|w
|n
|rr
|p
|bg
|go
|m=
{{!}} class="infoboxlabel" {{!}} School
{{!}} class="infoboxcell" {{!}}
[[School attended::{{#var:house}}]]
{{!}}-
{{#if:{{#varexists:schoolyear}}|
{{!}} class="infoboxlabel" {{!}} Year
{{!}} class="infoboxcell" {{!}}
{{#var:schoolyear}}{{#var:gradyear}}
{{!}}-
|}}
|home schooled
|hs=
{{!}} class="infoboxlabel" {{!}}
{{!}} class="infoboxlabel" {{!}}
{{!}} class="infoboxcell" {{!}}
{{!}} class="infoboxcell" {{!}}
Line 99: Line 35:
{{!}} class="infoboxlabel" {{!}} School/House
{{!}} class="infoboxlabel" {{!}} School/House
{{!}} class="infoboxcell" {{!}}
{{!}} class="infoboxcell" {{!}}
[[School attended::Undecided]]
Undecided
{{!}}-
{{!}}-
{{#if:{{#varexists:schoolyear}}|
{{!}} class="infoboxlabel" {{!}} Year
{{!}} class="infoboxcell" {{!}}
{{#var:schoolyear}}{{#var:gradyear}}
{{!}}-
|}}
|other school =
|other school =
{{!}} class="infoboxlabel" {{!}} School
{{!}} class="infoboxlabel" {{!}} School
{{!}} class="infoboxcell" {{!}}
{{!}} class="infoboxcell" {{!}}
[[School attended::Other]]
Other
{{!}}-
{{!}}-
{{#if:{{#varexists:schoolyear}}|
{{!}} class="infoboxlabel" {{!}} Year
{{!}} class="infoboxcell" {{!}}
{{#var:schoolyear}}{{#var:gradyear}}
{{!}}-
|}}
|#default=
|#default=
{{!}} class="infoboxlabel" {{!}} School/House
{{!}} class="infoboxlabel" {{!}} School/House
{{!}} class="infoboxcell" {{!}}
{{!}} class="infoboxcell" {{!}}
[[School attended::Unknown]]
Unknown House or School
{{!}}-
{{!}}-
{{#if:{{#varexists:schoolyear}}|
}}
{{!}} class="infoboxlabel" {{!}} Year
{{#if:{{#varexists:schoolYear}}|
{{!}} class="infoboxcell" {{!}}
{{!}} class="infoboxlabel" {{!}} Year
{{#var:schoolyear}}{{#var:gradyear}}
{{!}} class="infoboxcell" {{!}}
{{!}}-
{{#var:schoolYear}}
|}}
{{!}}-|}}
}}</includeonly>
{{#if:{{#varexists:gradYear}}|
{{!}} class="infoboxlabel" {{!}} Class of
{{!}} class="infoboxcell" {{!}}
{{#var:gradYear}}
{{!}}-|}}</includeonly><noinclude>{{documentation}}
</noinclude>

Latest revision as of 08:24, 23 November 2015

[create] Documentation icon Template documentation
Please add categories and interwikis to the /doc subpage. Subpages of this template.