Template: TeacherClasses: Difference between revisions
From TSAS Library
JStallings (talk | contribs) No edit summary Tag: Reverted |
JStallings (talk | contribs) No edit summary Tag: Manual revert |
||
Line 4: | Line 4: | ||
{{TeacherClasses}} | {{TeacherClasses}} | ||
</pre> | </pre> | ||
Which yields the following for teacher [[ | Which yields the following for teacher [[Ademola Adeyemi]]: | ||
{{#tweekihide: sidebar-right}}{{#cargo_query: | |||
{{#cargo_query: | |||
tables=Classes | tables=Classes | ||
|fields=Classes.Name, Classes.description, Classes.Requiredby | |fields=Classes.Name, Classes.description, Classes.Requiredby | ||
|where=Classes.Teacher=" | |where=Classes.Teacher="Ademola Adeyemi" AND Classes.Offered="Currently" | ||
|order by=Classes.Name ASC | |order by=Classes.Name ASC | ||
|format=template | |format=template | ||
Line 24: | Line 15: | ||
|named args=yes | |named args=yes | ||
}} | }} | ||
{{#if:{{CapstoneTeacherFilter|}}| | {{#if:{{CapstoneTeacherFilter|}}| | ||
==Capstones== | ==Capstones== | ||
<div class="card-columns">{{CapstoneTeacherFilter}}</div>}} | <div class="card-columns">{{CapstoneTeacherFilter}}</div>}} | ||
</noinclude><includeonly>{{#tweekihide: sidebar-right}} | </noinclude><includeonly> | ||
{{#tweekihide: sidebar-right}}{{#cargo_query: | |||
{{#cargo_query: | |||
tables=Classes | tables=Classes | ||
|fields=Classes.Name, Classes.description, Classes.Requiredby | |fields=Classes.Name, Classes.description, Classes.Requiredby | ||
Line 61: | Line 29: | ||
|named args=yes | |named args=yes | ||
}} | }} | ||
{{#if:{{CapstoneTeacherFilter|}}| | {{#if:{{CapstoneTeacherFilter|}}| | ||
==Capstones== | ==Capstones== | ||
<div class="card-columns">{{CapstoneTeacherFilter}}</div>}} | <div class="card-columns">{{CapstoneTeacherFilter}}</div>}} |
Revision as of 13:37, 20 February 2022
This is the 'TeacherClasses' template. It pulls from the table Classes and filters by pagename for teacher, using Template:ClassDisplay to format. Because "Classes.Teacher" is not an included field, it is not displayed. It should be called in the following format:
{{TeacherClasses}}
Which yields the following for teacher Ademola Adeyemi:
Error: operator for the virtual field 'Classes.Teacher' must be 'HOLDS', 'HOLDS NOT', 'HOLDS LIKE' or 'HOLDS NOT LIKE'.
Capstones
No results