Template: TeacherClasses: Difference between revisions
From TSAS Library
JStallings (talk | contribs) No edit summary Tag: Manual revert |
JStallings (talk | contribs) No edit summary |
||
Line 9: | Line 9: | ||
tables=Classes | tables=Classes | ||
|fields=Classes.Name, Classes.description, Classes.Requiredby | |fields=Classes.Name, Classes.description, Classes.Requiredby | ||
|where=Classes.Teacher | |where=Classes.Teacher HOLDS "Ademola Adeyemi" AND Classes.Offered="Currently" | ||
|order by=Classes.Name ASC | |order by=Classes.Name ASC | ||
|format=template | |format=template | ||
Line 23: | Line 23: | ||
tables=Classes | tables=Classes | ||
|fields=Classes.Name, Classes.description, Classes.Requiredby | |fields=Classes.Name, Classes.description, Classes.Requiredby | ||
|where=Classes.Teacher | |where=Classes.Teacher HOLDS "{{PAGENAME}}" AND Classes.Offered="Currently" | ||
|order by=Classes.Name ASC | |order by=Classes.Name ASC | ||
|format=template | |format=template |
Revision as of 07:34, 19 April 2024
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:
No results
Capstones
No results