Difference between pages "Template:Educational assignment" and "Template:Educational assignment/sandbox"

(Difference between pages)
Jump to navigation Jump to search
Page 1
Page 2
imported>WOSlinker
m (Changed protection level of Template:Educational assignment: allow template editors to modify ([Edit=Protected template] (indefinite) [Move=Protected template] (indefinite)))
 
imported>Jason Quinn
(trying to fix a logic error in template.... doesn't give proper output if date is in the future)
 
Line 3: Line 3:
 
|style = text-align:center;
 
|style = text-align:center;
 
|text  = This article {{#if:{{{date|}}} {{{day|}}}
 
|text  = This article {{#if:{{{date|}}} {{{day|}}}
   |was  
+
   |is currently or was  
 
   |{{#iferror:
 
   |{{#iferror:
 
     {{#ifexpr:{{gsd|year={{{year|}}}|month={{{month|{{CURRENTMONTH}}}}}|day={{CURRENTDAY}}}}<{{gsd|year={{CURRENTYEAR}}|month={{CURRENTMONTH}}|day={{CURRENTDAY}}}}
 
     {{#ifexpr:{{gsd|year={{{year|}}}|month={{{month|{{CURRENTMONTH}}}}}|day={{CURRENTDAY}}}}<{{gsd|year={{CURRENTYEAR}}|month={{CURRENTMONTH}}|day={{CURRENTDAY}}}}
Line 11: Line 11:
 
     |is currently or was
 
     |is currently or was
 
   }}
 
   }}
}} the subject of an [[Wikipedia:Student assignments|educational assignment]]{{#if:{{{date|}}}
+
}} the subject of an educational assignment{{#if:{{{project|}}}
 +
  |&#32;supported by {{{project}}}
 +
    }}
 +
{{#if:{{{date|}}}
 
   |&#32;that ended on {{date|{{{date}}}|{{{dateformat|}}}}}
 
   |&#32;that ended on {{date|{{{date}}}|{{{dateformat|}}}}}
 
   |{{#if:{{{day|}}}
 
   |{{#if:{{{day|}}}