Difference between revisions of "Template:Course Links"
From Georgia Tech Student Wiki
(Prototype table for course links. Added some weird conditional logic for templates; need a way to signal whether registration info is open for new semesters or not (so we can show and hide the oscar links). Right now, if the registration semester (or secondary registration semester) are the same as the current one, they are ignored.) |
|||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
+ | <!--This is pretty complicated, but basically I'm trying to have it so that additional rows are only active if the relevant registration semester is "active", and different from the current semester. As a placeholder, I'm just checking to see if the registration semester is different from the current semester--> |
||
+ | <!--See [https://www.mediawiki.org/wiki/Help:Extension:ParserFunctions] for info on the #if conditional--> |
||
+ | <!--Also, see [https://en.wikipedia.org/wiki/Help:Conditional_tables] for how to escape some of the conditional code so it plays ok with the table formatting--> |
||
{| class="wikitable" |
{| class="wikitable" |
||
|- style="font-weight:bold; text-align:center;" |
|- style="font-weight:bold; text-align:center;" |
||
Line 9: | Line 12: | ||
! colspan="2" |[https://oscar.gatech.edu/bprod/bwckctlg.p_display_courses?term_in={{OSCAR_CURRENT_SEMESTER}}&one_subj={{{subject}}}&sel_crse_strt={{{number}}}&sel_crse_end={{{number}}}&sel_subj=&sel_levl=&sel_schd=&sel_coll=&sel_divs=&sel_dept=&sel_attr= OSCAR {{OSCAR_CURRENT_SEMESTER_NAME}}] |
! colspan="2" |[https://oscar.gatech.edu/bprod/bwckctlg.p_display_courses?term_in={{OSCAR_CURRENT_SEMESTER}}&one_subj={{{subject}}}&sel_crse_strt={{{number}}}&sel_crse_end={{{number}}}&sel_subj=&sel_levl=&sel_schd=&sel_coll=&sel_divs=&sel_dept=&sel_attr= OSCAR {{OSCAR_CURRENT_SEMESTER_NAME}}] |
||
|- |
|- |
||
− | + | {{#ifeq: {{OSCAR_REGISTRATION_SEMESTER}} | {{OSCAR_CURRENT_SEMESTER}}|| |
|
− | {{!}} | |
||
{{!}}[https://oscar.gatech.edu/bprod/bwckctlg.p_display_courses?term_in={{OSCAR_REGISTRATION_SEMESTER}}&one_subj={{{subject}}}&sel_crse_strt={{{number}}}&sel_crse_end={{{number}}}&sel_subj=&sel_levl=&sel_schd=&sel_coll=&sel_divs=&sel_dept=&sel_attr= {{OSCAR_REGISTRATION_SEMESTER_NAME}}] |
{{!}}[https://oscar.gatech.edu/bprod/bwckctlg.p_display_courses?term_in={{OSCAR_REGISTRATION_SEMESTER}}&one_subj={{{subject}}}&sel_crse_strt={{{number}}}&sel_crse_end={{{number}}}&sel_subj=&sel_levl=&sel_schd=&sel_coll=&sel_divs=&sel_dept=&sel_attr= {{OSCAR_REGISTRATION_SEMESTER_NAME}}] |
||
}} |
}} |
||
− | + | {{#ifeq: {{OSCAR_REGISTRATION_SEMESTER_SECONDARY}} | {{OSCAR_CURRENT_SEMESTER}}|| |
|
− | {{!}} | |
||
{{!}}[https://oscar.gatech.edu/bprod/bwckctlg.p_display_courses?term_in={{OSCAR_REGISTRATION_SEMESTER_SECONDARY}}&one_subj={{{subject}}}&sel_crse_strt={{{number}}}&sel_crse_end={{{number}}}&sel_subj=&sel_levl=&sel_schd=&sel_coll=&sel_divs=&sel_dept=&sel_attr= {{OSCAR_REGISTRATION_SEMESTER_SECONDARY_NAME}}] |
{{!}}[https://oscar.gatech.edu/bprod/bwckctlg.p_display_courses?term_in={{OSCAR_REGISTRATION_SEMESTER_SECONDARY}}&one_subj={{{subject}}}&sel_crse_strt={{{number}}}&sel_crse_end={{{number}}}&sel_subj=&sel_levl=&sel_schd=&sel_coll=&sel_divs=&sel_dept=&sel_attr= {{OSCAR_REGISTRATION_SEMESTER_SECONDARY_NAME}}] |
||
}} |
}} |
Latest revision as of 23:47, 26 August 2023
{{{subject}}} {{{number}}} | |
---|---|
Course Links | |
Course Critique | |
OSCAR Fall 2023 |