Difference between revisions of "Template:Course Links"

From Georgia Tech Student Wiki
 
(5 intermediate revisions 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-->
Link: {{{subject}}} and {{{number}}} [https://oscar.gatech.edu/bprod/bwckctlg.p_display_courses?term_in=202202&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]
 
  +
<!--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"
  +
|- style="font-weight:bold; text-align:center;"
  +
! colspan="2" |{{{subject}}} {{{number}}}
  +
|-
  +
! colspan="2" |Course Links
  +
|-
  +
! colspan="2" |[https://critique.gatech.edu/course?courseID={{{subject}}}%20{{{number}}} Course Critique]
  +
|-
 
! 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}}]
  +
}}
  +
{{#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}}]
  +
}}
  +
|-
  +
|}

Latest revision as of 23:47, 26 August 2023

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