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...")
 
 
(24 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|}}} }}
'''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      = {{#arraymap:{{{grcode|}}}|,|x|[[x]]}}
| label9      = Offered
| data9      = {{{offered|}}}
| label10    = Open to
| data10      = {{#arraymap:{{{opento|}}}|,|x|[[x]]}}
| label11    = Required by
| data11      = {{#arraymap:{{{requiredby|}}}|,|x|[[x]]|<br />}}
}}


'''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>

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.