Difference between revisions of "Template:CourseList"

From TSAS Library
Jump to: navigation, search
Line 11: Line 11:
</noinclude><includeonly>
</noinclude><includeonly>
{{#cargo_query:tables=Courses
{{#cargo_query:tables=Courses
|where=Courses.{{{1}}}="{{PAGENAME}}"
|where=Courses.{{{1}}} HOLDS "{{PAGENAME}}"
|fields=Courses._pageName=coursename,description,teacher,requiredby
|fields=Courses._pageName=coursename,description,teacher,requiredby
|format=template
|format=template

Revision as of 16:13, 23 April 2020

This is the 'Course List' template; it should be called in the following format:

{{CourseList|COLUMNNAME}}

Where column name can equal:

  • teacher
  • requiredby

It transcludes the template {{CourseDisplay}}, which manages the individual entries. Edit the page to see the source code.