Template:Class infobox: Difference between revisions
From Absit Omen Lexicon
mNo edit summary |
mNo edit summary |
||
(9 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'''}} | ||
{{!}}- | {{!}}- | ||
{{!}} 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|}}}" {{!}} | ||
{{{ | {{#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|}}}| | |||
{{!}}- | {{!}}- | ||
{{!}} class="infoboxlabel" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}} Classroom | {{!}} class="infoboxlabel" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}} Classroom | ||
{{!}} class="infoboxcell" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}; {{{css|}}}" {{!}} | {{!}} class="infoboxcell plainlinks" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}; {{{css|}}}" {{!}} | ||
{{{classroom|}}} | {{{classroom|}}} | ||
{{!}}- | {{!}}- | ||
Line 34: | Line 42: | ||
{{!}}- | {{!}}- | ||
{{!}} class="infoboxlabel" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}} Class Threads | {{!}} class="infoboxlabel" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}} Class Threads | ||
{{!}} class="infoboxcell" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}; {{{css|}}}" {{!}} | {{!}} class="infoboxcell plainlinks" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}; {{{css|}}}" {{!}} | ||
{{{threads|}}} | {{{threads|}}} | ||
{{!}}- | {{!}}- | ||
Line 49: | Line 57: | ||
{{{equipment|}}} | {{{equipment|}}} | ||
{{!}}- | {{!}}- | ||
|}} | |}} | ||
{{!}}- | {{!}}- | ||
{{!}} class="infoboxlabel" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}} Previous<br />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|}}}" {{!}} | ||
{{{ | {{#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|}}}| | |||
{{!}}- | {{!}}- | ||
! class="infoboxsubheading" colspan="2" style="background: #{{#if:{{{bgcolor2|}}}|{{{bgcolor2}}}|545454}}" {{!}} '''Related Links''' | ! class="infoboxsubheading" colspan="2" style="background: #{{#if:{{{bgcolor2|}}}|{{{bgcolor2}}}|545454}}" {{!}} '''Related Links''' | ||
{{!}}- | {{!}}- | ||
{{!}} class="infoboxcell" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}; {{{css|}}}" colspan="2" {{!}} | {{!}} class="infoboxcell plainlinks" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}; {{{css|}}}" colspan="2" {{!}} | ||
{{{links|}}} | {{{links|}}} | ||
{{!}}- | {{!}}- |
Latest revision as of 19:24, 13 July 2022
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) |