Difference between revisions of "Template:Course"
From TSAS Library
JStallings (talk | contribs) (Created page with "<noinclude> This is the "Course" template. It should be called in the following format: <pre> {{Course |department= |teacher= |sessions= |prerequisites= |note= |grcode= |offer...") |
JStallings (talk | contribs) |
||
Line 19: | Line 19: | ||
{{#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=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 | |||
| bodystyle = border: 0px; background-color: #ffffff; | |||
| titlestyle = display: none; | |||
| headerstyle = text-align: left; | |||
| label2 = Department | |||
| data2 = {{#if:{{{department|}}}|[[{{{department|}}}]]}} | |||
| label3 = Teacher | |||
| data3 = {{#arraymap:{{{teacher|}}}| |x|[[x]]}} | |||
| label5 = Sessions | |||
| data5 = {{{sessions|}}} | |||
| label6 = Prerequisites | |||
| data6 = {{#arraymap:{{{prerequisites|}}}|,|x|[[x]]}} | |||
| label7 = Note | |||
| data7 = {{{note|}}} | |||
| label8 = GR Code | |||
| data8 = {{#if:{{{grcode|}}}|[[{{{grcode|}}}]]}} | |||
| label9 = Offered | |||
| data9 = {{{offered|}}} | |||
| label10 = Open to | |||
| data10 = {{#arraymap:{{{opento|}}}|,|x|[[x]]}} | |||
| label11 = Required by | |||
| data11 = {{#arraymap:{{{requiredby|}}}|,|x|[[x]]}} | |||
}} | |||
{{{description|}}} | |||
[[Category:Courses]] | [[Category:Courses]] | ||
</includeonly> | </includeonly> |
Revision as of 19:26, 22 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.