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.)
(add comment explaining conditional logic)
Line 9: Line 9:
 
! 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}}]
 
|-
 
|-
  +
<!-- 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}}|
 
|{{#ifeq: {{OSCAR_REGISTRATION_SEMESTER}} | {{OSCAR_CURRENT_SEMESTER}}|
 
{{!}} |
 
{{!}} |

Revision as of 23:40, 26 August 2023

<-- 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 -->
{{{subject}}} {{{number}}}
Course Links
Course Critique
OSCAR Fall 2023