Difference between revisions of "Template:Educational assignment/doc"

From blackwiki
Jump to navigation Jump to search
imported>MSGJ
imported>Sgconlaw
(Updated documentation subpage)
Line 1: Line 1:
<includeonly>{{template doc page transcluded}}</includeonly><noinclude>{{template doc page viewed directly}}</noinclude>
+
{{Documentation subpage}} {{intricate}}
  
==Usage==
+
===Usage===
This template is to be placed on the '''[[Wikipedia:Talk page|talk pages]]''' of articles that are currently the subject of an educational assignment. More information on these assignments can be found at [[Wikipedia:School and university projects]].
+
This template is to be placed on the '''[[Wikipedia:Talk page|talk page]]''' of an article that is currently or was formerly the subject of an educational assignment. More information on these assignments can be found at "[[Wikipedia:School and university projects]]".
  
This template has one optional parameter, <tt>link</tt>. If there is a place where there is a description of the project, please add it to the parameter.
+
The template automatically places articles into "[[:Category:Wikipedia articles as assignments]]".
  
* Without parameters: <tt><nowiki>{{EducationalAssignment}}</nowiki></tt>
+
===Syntax===
* Optional '''link''' parameter: <tt><nowiki>{{EducationalAssignment|link=Wikipedia:School and university projects#PROJECT TITLE}}</nowiki></tt>
+
<pre>
* Optional assignment end '''date''' parameter: <tt><nowiki>{{EducationalAssignment|date=2007-12-31}}</nowiki></tt>
+
{{Educational assignment|date=|day=|month=|year=|dateformat=|link=}}
*: ''date=YYYY-MM-DD''  where YYYY is the year, MM is the 1-12 month, and DD is day of the month.
+
</pre>
* All optional parameters: <tt><nowiki>{{EducationalAssignment|date=YYYY-MM-DD|link=Wikipedia:School and university projects#PROJECT TITLE}}</nowiki></tt>
 
  
This template automatically places articles into [[:Category:Wikipedia articles as assignments]].
+
{| class=wikitable
 +
|-
 +
!Example
 +
!Result
 +
|-
 +
|<tt><nowiki>{{Educational assignment}}</nowiki></tt>
 +
|{{Educational assignment}}
 +
|-
 +
|<tt><nowiki>{{Educational assignment|date=2010-06-30|link=Wikipedia:WikiProject Wikipedia Saves Public Art}}</nowiki></tt>
 +
|{{Educational assignment|date=2010-06-30|link=Wikipedia:WikiProject Wikipedia Saves Public Art}}
 +
|-
 +
|<tt><nowiki>{{Educational assignment|date=2010-06-30|dateformat=mdy}}</nowiki></tt>
 +
|{{Educational assignment|date=2010-06-30|dateformat=mdy}}
 +
|-
 +
|<tt><nowiki>{{Educational assignment|day=30|month=4|year=2010|link=Wikipedia:School and university projects#School of Law, Singapore Management University: Constitutional and Administrative Law Wikipedia Project (January–April 2010)}}</nowiki></tt>
 +
|{{Educational assignment|day=30|month=4|year=2010|link=Wikipedia:School and university projects#School of Law, Singapore Management University: Constitutional and Administrative Law Wikipedia Project (January–April 2010)}}
 +
|-
 +
|{{tlx|Educational assignment|month={{CURRENTMONTH}}|year={{CURRENTYEAR}}}}
 +
|{{Educational assignment|month={{CURRENTMONTH}}|year={{CURRENTYEAR}}}}
 +
|-
 +
|<tt><nowiki>{{Educational assignment|year=2008}}</nowiki></tt>
 +
{{Educational assignment|year=2008}}
 +
|}
  
<includeonly>
+
===Parameters===
<!-- ADD CATEGORIES BELOW THIS LINE -->
+
All the parameters of the template are optional.
 +
 
 +
{| class=wikitable
 +
|-
 +
!Parameter
 +
!Description
 +
|-
 +
|align=center|date
 +
|The date when the educational assignment ended. Enter the date in any method accepted by the template {{tl|date}}, such as "<tt>2010-07-01</tt>" or "<tt>1 July 2010</tt>". If you wish to alter the manner in which the date is stated, use the {{para|dateformat}} parameter. By default, the template displays dates in a day-month-year format; for a month-day-year format, use "<tt>dateformat=mdy</tt>". For full instructions on the formats available, see {{tl|date}}. '''Use ''either'' {{para|date}} ''or'' {{para|day}}, {{para|month}} and {{para|year}} to enter a date, not both'''.
 +
|-
 +
|align=center|day
 +
|rowspan=3|Instead of using {{para|date}}, you can enter the date when the educational assignment using {{para|day}}, {{para|month}} and {{para|year}}. You can also enter only a month and year, or a year alone. Type the month as a numeral (that is, "<tt>7</tt>" instead of "<tt>July</tt>").
 +
 
 +
If you enter only a month and year, or a year alone, the template checks to see if this partial date is earlier than or the same as the current month and/or year. If it is earlier, the template automatically indicates that the article was an educational assignment in the specified month and/or year. Otherwise, it indicates that the article is currently an educational assignment in the specified month and/or year.
 +
|-
 +
|align=center|month
 +
|-
 +
|align=center|year
 +
|-
 +
|align=center|link
 +
|The name of a Wikipedia page where there is a description of the project, like this: "<tt>Wikipedia:WikiProject Wikipedia Saves Public Art</tt>".
 +
|}<includeonly>
 +
 
 +
<!--Add categories and interwikis below this line-->
 
[[Category: Non-subject-matter-related article-talk header templates|{{PAGENAME}}]]
 
[[Category: Non-subject-matter-related article-talk header templates|{{PAGENAME}}]]
<!-- ADD INTERWIKIS BELOW THIS LINE -->
+
 
 
[[ko:틀:과제 문서]]
 
[[ko:틀:과제 문서]]
 
[[pt:Predefinição:Projecto educacional]]</includeonly>
 
[[pt:Predefinição:Projecto educacional]]</includeonly>

Revision as of 08:02, 18 July 2010

Usage

This template is to be placed on the talk page of an article that is currently or was formerly the subject of an educational assignment. More information on these assignments can be found at "Wikipedia:School and university projects".

The template automatically places articles into "Category:Wikipedia articles as assignments".

Syntax

{{Educational assignment|date=|day=|month=|year=|dateformat=|link=}}
Example Result
{{Educational assignment}}
{{Educational assignment|date=2010-06-30|link=Wikipedia:WikiProject Wikipedia Saves Public Art}}
{{Educational assignment|date=2010-06-30|dateformat=mdy}}
{{Educational assignment|day=30|month=4|year=2010|link=Wikipedia:School and university projects#School of Law, Singapore Management University: Constitutional and Administrative Law Wikipedia Project (January–April 2010)}}
{{Educational assignment}}
{{Educational assignment|year=2008}}

Parameters

All the parameters of the template are optional.

Parameter Description
date The date when the educational assignment ended. Enter the date in any method accepted by the template {{date}}, such as "2010-07-01" or "1 July 2010". If you wish to alter the manner in which the date is stated, use the |dateformat= parameter. By default, the template displays dates in a day-month-year format; for a month-day-year format, use "dateformat=mdy". For full instructions on the formats available, see {{date}}. Use either |date= or |day=, |month= and |year= to enter a date, not both.
day Instead of using |date=, you can enter the date when the educational assignment using |day=, |month= and |year=. You can also enter only a month and year, or a year alone. Type the month as a numeral (that is, "7" instead of "July").

If you enter only a month and year, or a year alone, the template checks to see if this partial date is earlier than or the same as the current month and/or year. If it is earlier, the template automatically indicates that the article was an educational assignment in the specified month and/or year. Otherwise, it indicates that the article is currently an educational assignment in the specified month and/or year.

month
year
link The name of a Wikipedia page where there is a description of the project, like this: "Wikipedia:WikiProject Wikipedia Saves Public Art".