Difference between revisions of "Template:CourseList"

From TSAS Library
Jump to: navigation, search
Line 12: Line 12:
{{#cargo_query:tables=Courses
{{#cargo_query:tables=Courses
|where=Courses.{{{1}}} HOLDS "{{PAGENAME}}"
|where=Courses.{{{1}}} HOLDS "{{PAGENAME}}"
|fields=Courses._pageName=coursename,description,teacher,requiredby
|fields=Courses._pageName=coursename,description,teacher,TRIM(requiredby)
|format=template
|format=template
|template=CourseDisplay
|template=CourseDisplay

Revision as of 11:19, 24 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.