Difference between revisions of "Template:Course"

From TSAS Library
Jump to: navigation, search
 
(23 intermediate revisions by the same user not shown)
Line 17: Line 17:
</pre>
</pre>
Edit the page to see the template text.
Edit the page to see the template text.
{{#cargo_declare:_table=Courses|department=Page|teacher=List (,) of Page|sessions=Integer|prerequisites=List (,) of Page|note=String|grcode=Page|offered=Integer|opento=List (,) of Page|requiredby=List (,) of Page|description=Text}}
{{#cargo_declare:_table=Courses|department=Page|teacher=List (,) of Page|sessions=Integer|prerequisites=List (,) of Page|note=String|grcode=List (,) of Page|offered=Integer|opento=List (,) of Page|requiredby=List (,) of Page|description=Text}}
</noinclude><includeonly>{{#cargo_store:_table=Courses|department={{{department|}}}|teacher={{{teacher|}}}|sessions={{{sessions|}}}|prerequisites={{{prerequisites|}}}|note={{{note|}}}|grcode={{{grcode|}}}|offered={{{offered|}}}|opento={{{opento|}}}|requiredby={{{requiredby|}}}|description={{{description|}}} }}
</noinclude><includeonly>{{#cargo_store:_table=Courses|department={{{department|}}}|teacher={{{teacher|}}}|sessions={{{sessions|}}}|prerequisites={{{prerequisites|}}}|note={{{note|}}}|grcode={{{grcode|}}}|offered={{{offered|}}}|opento={{{opento|}}}|requiredby={{{requiredby|}}}|description={{{description|}}} }}
{{Infobox
{{Infobox
Line 34: Line 34:
| data7      = {{{note|}}}
| data7      = {{{note|}}}
| label8      = GR Code
| label8      = GR Code
| data8      = {{#if:{{{grcode|}}}|[[{{{grcode|}}}]]}}
| data8      = {{#arraymap:{{{grcode|}}}|,|x|[[x]]}}
| label9      = Offered
| label9      = Offered
| data9      = {{{offered|}}}
| data9      = {{{offered|}}}
Line 40: Line 40:
| data10      = {{#arraymap:{{{opento|}}}|,|x|[[x]]}}
| data10      = {{#arraymap:{{{opento|}}}|,|x|[[x]]}}
| label11    = Required by
| label11    = Required by
| data11      = {{#arraymap:{{{requiredby|}}}|,|x|[[x]]}}
| data11      = {{#arraymap:{{{requiredby|}}}|,|x|[[x]]|<br />}}
}}
}}



Latest revision as of 10:48, 24 April 2020

This is the "Course" template. It should be called in the following format:

{{Course
|department=
|teacher=
|sessions=
|prerequisites=
|note=
|grcode=
|offered=
|opento=
|requiredby=
|description=
}}

Edit the page to see the template text. This template defines the table "Courses". View table.