Difference between revisions of "Template:Class"
From TSAS Library
JStallings (talk | contribs) |
JStallings (talk | contribs) |
||
| (4 intermediate revisions by the same user not shown) | |||
| Line 7: | Line 7: | ||
</repeat><noinclude> | </repeat><noinclude> | ||
Plain course layout drawing from [[Table:Courses|Courses table]] ([https://{{SERVERNAME}}/w/index.php?title=Table:Courses&action=viewdata data]). | Plain course layout drawing from [[Table:Courses|Courses table]] ([https://{{SERVERNAME}}/w/index.php?title=Table:Courses&action=viewdata data]). | ||
{| class="wikitable" | |||
Param | |- | ||
! Param !! Value | |||
|- | |||
| 1 || criteria= | |||
|- | |||
| 2 || sort= | |||
|- | |||
| 3 || Add pipe to hide teacher | |||
|- | |||
| 4 || Add pipe to hide description | |||
|} | |||
{| class="wikitable" | {| class="wikitable" | ||
| Line 28: | Line 35: | ||
===Current Offerings=== | ===Current Offerings=== | ||
<pre>{{class|offered{{=}}19-20||}}</pre> | <pre>{{class|offered{{=}}19-20||}}</pre> | ||
===Teacher Courses== | ===Teacher Courses=== | ||
{{tip}}Add a space into Param 3 to remove teacher name | {{tip}}Add a space into Param 3 to remove teacher name | ||
<pre>{{class|teacher{{=}}{{PAGENAME}}, grcode{{=}}EL|coursename | <pre>{{class|teacher{{=}}{{PAGENAME}}, grcode{{=}}EL|coursename|}}</pre> | ||
<pre>{{class|teacher{{=}}{{PAGENAME}}, grcode!{{=}}EL|coursename | <pre>{{class|teacher{{=}}{{PAGENAME}}, grcode!{{=}}EL|coursename|}}</pre> | ||
===Department List=== | ===Department List=== | ||
<pre>{{class|department={{PAGENAME | <pre>{{class|department{{=}}{{PAGENAME}}, grcode{{=}}EL|coursename}}</pre> | ||
<pre>{{class|department={{PAGENAME | <pre>{{class|department{{=}}{{PAGENAME}}, grcode!{{=}}EL|coursename}}</pre> | ||
==Yields== | ==Yields== | ||
{{class|offered{{=}}19-20|coursename}} | {{class|offered{{=}}19-20|coursename|4=}} | ||
{{Documentation}} | {{Documentation}} | ||
</noinclude> | </noinclude> | ||
Latest revision as of 11:12, 12 May 2019
<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 |
| 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>
File:Test Template Info-Icon - Version (2).svg Template documentation[view] [edit] [history] [purge]
| The above documentation is transcluded from Template:Class/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |