Template: Class

From TSAS Library
Jump to: navigation, search

<repeat table="Courses" criteria="{{{1}}}" sort="{{{2}}}">

[[{{{coursename}}}]]

{{{teacher}}}

{{{description}}}

{{{requiredby}}}

</repeat> Plain course layout drawing from Courses table (data).

Param Value
1 criteria=
2 sort=
3 Add pipe to hide teacher
4 Add pipe to hide description
Variables
coursename sessions offered CC
description prerequisites opento FA
department note requiredby LA
teacher grcode 09-12 ST

Use

Current Offerings

{{class|offered{{=}}19-20||}}

Teacher Courses

Note Note:Add a space into Param 3 to remove teacher name

{{class|teacher{{=}}{{PAGENAME}}, grcode{{=}}EL|coursename|}}
{{class|teacher{{=}}{{PAGENAME}}, grcode!{{=}}EL|coursename|}}

Department List

{{class|department{{=}}{{PAGENAME}}, grcode{{=}}EL|coursename}}
{{class|department{{=}}{{PAGENAME}}, grcode!{{=}}EL|coursename}}

Yields

<repeat table="Courses" criteria="offered=19-20" sort="coursename">

[[{{{coursename}}}]]

{{{teacher}}}

{{{requiredby}}}

</repeat>