Template:Class infobox: Difference between revisions

From Absit Omen Lexicon
mNo edit summary
mNo edit summary
 
(6 intermediate revisions by the same user not shown)
Line 7: Line 7:
{{#if:{{{hidec|}}}|{{!}}-|{{!}}-
{{#if:{{{hidec|}}}|{{!}}-|{{!}}-
! class="infoboxsubheading" colspan="2" style="background: #{{#if:{{{bgcolor2|}}}|{{{bgcolor2}}}|545454}}" {{!}} '''Class Information'''}}
! class="infoboxsubheading" colspan="2" style="background: #{{#if:{{{bgcolor2|}}}|{{{bgcolor2}}}|545454}}" {{!}} '''Class Information'''}}
{{#if:{{{professor|}}}|
{{!}}-
{{!}}-
{{!}} class="infoboxlabel" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}} Professor
{{!}} class="infoboxlabel" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}} Professor
{{!}} class="infoboxcell" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}; {{{css|}}}" {{!}}
{{!}} class="infoboxcell" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}; {{{css|}}}" {{!}}
{{{professor|}}}
{{#cargo_query:
tables=Occupations
|fields=_pageName, date_started=,date_ended=
|where=type="Hogwarts" AND department="{{{name|}}}" AND current_occupation="1"
|limit=2
|default=OPEN
|more results text=
|format=template
|template=Class infobox/professor
}}
{{!}}-
{{!}}-
|}}{{#if:{{{classroom|}}}|
{{#if:{{{classroom|}}}|
{{!}}-
{{!}}-
{{!}} class="infoboxlabel" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}} Classroom
{{!}} class="infoboxlabel" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}} Classroom
Line 49: Line 57:
{{{equipment|}}}
{{{equipment|}}}
{{!}}-
{{!}}-
|}}{{#if:{{{previous|}}}|
|}}
{{!}}-
{{!}}-
{{!}} class="infoboxlabel" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}} [[Hogwarts Staff Timeline|Previous]]<br />[[Hogwarts Staff Timeline|Professor(s)]]
{{!}} class="infoboxlabel" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}} [[Hogwarts Staff Timeline|Previous]]<br />[[Hogwarts Staff Timeline|Professor(s)]]
{{!}} class="infoboxcell" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}; {{{css|}}}" {{!}}
{{!}} class="infoboxcell" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}; {{{css|}}}" {{!}}
{{{previous|}}}
{{#cargo_query:
tables=Occupations
|fields=_pageName, date_started,date_ended
|where=type="Hogwarts" AND department="{{{name|}}}" AND current_occupation="0"
|default=No Previous Professors
|order by=date_ended DESC
|more results text=
|format=template
|template=Class infobox/professor
}}
{{!}}-
{{!}}-
|}}{{#if:{{{links|}}}|
{{#if:{{{links|}}}|
{{!}}-
{{!}}-
! class="infoboxsubheading" colspan="2" style="background: #{{#if:{{{bgcolor2|}}}|{{{bgcolor2}}}|545454}}" {{!}} '''Related Links'''
! class="infoboxsubheading" colspan="2" style="background: #{{#if:{{{bgcolor2|}}}|{{{bgcolor2}}}|545454}}" {{!}} '''Related Links'''

Latest revision as of 19:24, 13 July 2022

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

Usage

{{Class infobox
|image=''class image, maximum 250px''
|name=''Full title''
|professor=''Name of Professor''
|classroom=''Classroom board''
|format=''Class format''
|type=''Class type, core or elective.''
|threads=''Link to class' thread tag.''
|textbooks=''Known textbooks required by students''
|equipment=''Known equipment required by students''
|previous=''Previous Professors''
|link=''Related Links, separated by comma''
}}

Clean template

{{Class infobox
|image=
|name=
|professor=
|classroom=
|format=
|type=
|threads=
|textbooks=
|equipment=
|previous=
|links=
}}

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