Difference between revisions of "Template:Course"

From TSAS Library
Jump to: navigation, search
(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...")
 
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|}}} }}
'''Department:''' {{#if:{{{department|}}}|[[{{{department|}}}]]}}
{{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|}}}|&nbsp;|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]]}}
}}


'''Teacher:''' {{#arraymap:{{{teacher|}}}|,|x|[[x]]}}
{{{description|}}}
 
 
'''Sessions:''' {{{sessions|}}}
 
'''Prerequisites:''' {{#arraymap:{{{prerequisites|}}}|,|x|[[x]]}}
 
 
'''Note:''' {{{note|}}}
 
'''GR Code:''' {{#if:{{{grcode|}}}|[[{{{grcode|}}}]]}}
 
'''Offered:''' {{{offered|}}}
 
'''Open to:''' {{#arraymap:{{{opento|}}}|,|x|[[x]]}}
 
 
'''Required by:''' {{#arraymap:{{{requiredby|}}}|,|x|[[x]]}}
 
 
'''Description:''' {{{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.