Difference between revisions of "Template:Educational assignment/doc"
imported>Funandtrvl (updte) |
imported>Zyxw m (Since <tt> is obsolete in HTML5, replace it with <kbd> – see HTML element#tt, Wikipedia:HTML5, and mw:Help:Extension:Linter/obsolete-tag. using AWB) |
||
| Line 17: | Line 17: | ||
!width=50%|Result | !width=50%|Result | ||
|- | |- | ||
| − | |< | + | |<kbd><nowiki>{{Educational assignment}}</nowiki></kbd> |
|{{Educational assignment}} | |{{Educational assignment}} | ||
|- | |- | ||
| − | |< | + | |<kbd><nowiki>{{Educational assignment|date=2010-06-30|link=Wikipedia:WikiProject Public art}}</nowiki></kbd> |
|{{Educational assignment|date=2010-06-30|link=Wikipedia:WikiProject Public art}} | |{{Educational assignment|date=2010-06-30|link=Wikipedia:WikiProject Public art}} | ||
|- | |- | ||
| − | |< | + | |<kbd><nowiki>{{Educational assignment|date=2010-06-30|dateformat=mdy}}</nowiki></kbd> |
|{{Educational assignment|date=2010-06-30|dateformat=mdy}} | |{{Educational assignment|date=2010-06-30|dateformat=mdy}} | ||
|- | |- | ||
| − | |< | + | |<kbd><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></kbd> |
|{{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|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)}} | ||
|- | |- | ||
| − | |< | + | |<kbd><nowiki>{{Educational assignment|month=7|year=2010}}</nowiki></kbd> |
|{{Educational assignment|month=7|year=2010}} | |{{Educational assignment|month=7|year=2010}} | ||
|- | |- | ||
| − | |< | + | |<kbd><nowiki>{{Educational assignment|year=2008}}</nowiki></kbd> |
|{{Educational assignment|year=2008}} | |{{Educational assignment|year=2008}} | ||
|} | |} | ||
| Line 45: | Line 45: | ||
|- | |- | ||
| style="text-align:center;" |date | | style="text-align:center;" |date | ||
| − | |The date when the educational assignment ended. Enter the date in any method accepted by the template {{tl|date}}, such as "< | + | |The date when the educational assignment ended. Enter the date in any method accepted by the template {{tl|date}}, such as "<kbd>2010-07-01</kbd>", "<kbd>1 July 2010</kbd>" or "<kbd>July 1, 2010</kbd>". 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 "<kbd>dateformat=mdy</kbd>". 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'''. |
|- | |- | ||
| style="text-align:center;" |day | | style="text-align:center;" |day | ||
| − | |rowspan=3|Instead of using {{para|date}}, you can enter the date when the educational assignment ended 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, "< | + | |rowspan=3|Instead of using {{para|date}}, you can enter the date when the educational assignment ended 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, "<kbd>7</kbd>" instead of "<kbd>July</kbd>"). |
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. | 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. | ||
| Line 57: | Line 57: | ||
|- | |- | ||
| style="text-align:center;" |link | | style="text-align:center;" |link | ||
| − | |The name of a Wikipedia page where there is a description of the project, like this: "< | + | |The name of a Wikipedia page where there is a description of the project, like this: "<kbd>Wikipedia:WikiProject Public art</kbd>". |
|} | |} | ||
Revision as of 15:45, 5 August 2018
| This is a documentation subpage for Template:Educational assignment. It contains usage information, categories and other content that is not part of the original template page. |
| This template employs intricate features of template syntax.
You are encouraged to familiarise yourself with its setup and parser functions before editing the template. If your edit causes unexpected problems, please undo it quickly, as this template may appear on a large number of pages. You can conduct experiments, and should test all major changes, in either this template's sandbox, the general template sandbox, or your user space before changing anything here. |
Contents
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:Student assignments.
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 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|month=7|year=2010}} |
| ||
| {{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", "1 July 2010" or "July 1, 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 ended 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 Public art". |
See also
{{WAP assignment}}