Difference between revisions of "Template:Educational assignment"

From blackwiki
Jump to navigation Jump to search
imported>MSGJ
(adjust whitespace to improve readaiblity, plus a few tweaks)
imported>Voice of Clam
(Updating to sandbox as per editrequest)
Line 1: Line 1:
 
{{main other||{{tmbox
 
{{main other||{{tmbox
|image = [[File:Books-aj.svg aj ashton 01.svg|50px]]
+
|image = [[File:Books-aj.svg aj ashton 01.svg|50px]]
|style = text-align:center;
+
|style = text-align:center;
|text  = This article {{#switch:{{{current|}}}
+
|text  = This article {{#if:{{{date|}}} {{{day|}}}
   |yes=is currently
+
   |was
   |no=was
+
   |{{#iferror:
  |is currently or was
+
    {{#ifexpr:{{gsd|year={{{year|}}}|month={{{month|{{CURRENTMONTH}}}}}|day={{CURRENTDAY}}}}<{{gsd|year={{CURRENTYEAR}}|month={{CURRENTMONTH}}|day={{CURRENTDAY}}}}
}} the subject of an [[Wikipedia:School and university projects|educational assignment]]{{#if:{{{date|}}}
+
      |was
   |&#32;{{#ifeq:{{{in}}}|yes
+
      |is currently
  |in
+
    }}
  |on
+
    |is currently or was
  }} {{{date}}}
+
  }}
}}.{{#if:{{{link|}}}
+
}} the subject of an [[Wikipedia:School and university projects|educational assignment]]{{#if:{{{date|}}}
  |&#32;Further details are available [[{{{link}}}|here]].
+
   |&#32;that ended on {{date|{{{date}}}|{{{dateformat|}}}}}
}}
+
  |{{#if:{{{day|}}}
}}<includeonly>[[Category:Wikipedia articles as assignments]]</includeonly>
+
    |{{#ifeq:{{{dateformat|}}}|mdy
}}<noinclude>
+
        |&#32;that ended on {{MONTHNAME|{{{month}}}}} {{{day}}}, {{{year}}}
{{documentation}}
+
        |&#32;that ended on {{{day}}} {{MONTHNAME|{{{month}}}}} {{{year}}}
</noinclude>
+
      }}
 +
    |{{#if:{{{month|}}}
 +
        |&#32;in {{MONTHNAME|{{{month}}}}} {{{year}}}
 +
        |{{#if:{{{year|}}}
 +
          |&#32;in {{{year}}}
 +
        }}
 +
      }}
 +
  }}
 +
}}.{{#if:{{{link|}}}|&#32;Further details are available [[{{{link}}}|here]].}}}}
 +
}}

Revision as of 07:10, 18 July 2010