Template: TeacherClasses: Difference between revisions

From TSAS Library
Jump to: navigation, search
No edit summary
No edit summary
Line 1: Line 1:
<noinclude>
<noinclude>
This is the 'TeacherClasses' template. It pulls from the table Classes and filters by pagename for teacher, using [[Template:ClassDisplay]] to format. It should be called in the following format:
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:
<pre>
<pre>
{{TeacherClasses}}
{{TeacherClasses}}
</pre>
</pre>
Edit the page to see the source code.
Which yields the following for teacher [[Ademola Adeyemi]]:
 
{{#tweekihide: sidebar-right}}{{#cargo_query:
tables=Classes
|fields=Classes.Name, Classes.description, Classes.Requiredby
|where=Classes.Teacher="Ademola Adeyemi"
|order by=Classes.Name ASC
|format=template
|template=ClassDisplay
|named args=yes
}}
 
{{#if:{{CapstoneTeacherFilter|}}|
==Capstones==
<div class="card-columns">{{CapstoneTeacherFilter}}</div>}}
</noinclude><includeonly>
</noinclude><includeonly>
{{#tweekihide: sidebar-right}}{{#cargo_query:
{{#tweekihide: sidebar-right}}{{#cargo_query:

Revision as of 23:23, 14 January 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