Template: Class

From TSAS Library
Revision as of 19:40, 11 May 2019 by JStallings (talk | contribs)
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 1 completes criteria={{{1}}} so should include quotation marks and the use of {{=}} to transclude an equals sign.

Param 2 completes sort={{{1}}}, but is not working at the moment...

Variables
coursename sessions offered CC
description prerequisites opento FA
department note requiredby LA
teacher grcode 09-12 ST

Use

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

Yields

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

[[{{{coursename}}}]]

{{{teacher}}}

{{{description}}}

{{{requiredby}}}

</repeat>