Difference between revisions of "Template:Course Links"

From Georgia Tech Student Wiki
(add comment explaining conditional logic)
 
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}}||
<!-- 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 -->
 
|{{#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}}|
+
{{#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 00:47, 27 August 2023

{{{subject}}} {{{number}}}
Course Links
Course Critique
OSCAR Fall 2023