সাঁচ:Show by date
এক্সপ্ৰেছন ত্ৰুটী: অপৰিচিত বিৰামচিহ্ন কেৰেক্টাৰ "২"
Usage
[সম্পাদনা কৰক]This template will automatically display one of two statements based on whether a particular date has been reached.
{{show by date|year|month|day|text before|text after}}
- Parameters 1, 2, and 3 are the Year, Month, and Day that the template should show the text after. Until that date, the text before is shown. If the day is omitted, the template will activate on the first day of the specified month. If the month is also omitted, the template will activate on 1 January of the specified year. If the year is also omitted, the template will activate immediately.
- Parameter 4 (text before) is the text to be shown if the current date is before the date specified in the previous parameters; it may be left empty if only the text after needs to be displayed at the specified date
- Parameter 5 (text after) is the text to be shown if the current date is on or after the date specified in the previous parameters; it may be left empty if only the text before needs to be displayed until the specified date
The template is particularly useful on low-activity articles where dated statements may not receive prompt attention. As the template's usage grows, a WP:BOT could be employed to substitute the template with just the text after as the given dates elapse and the particular uses of the template have served their purpose in each case.
Limitations
[সম্পাদনা কৰক]In the current version of the template, statements will be switched on the date according to Wikipedia time (00:00 UTC). If the actual event point is a few hours before or after this, it probably makes little difference in the grander scheme of time. However, it will make a significant difference if the actual event is more than 12 hours before or after this. For example, an event that takes place on November 15 at 8:00 pm Pacific Standard Time (UTC−08:00) corresponds to 04:00, November 16 (UTC).
Tackling the complexities of a time-sensitive version of this template would be a good future research and development project, though.
Examples
[সম্পাদনা কৰক]Code | Result |
---|---|
{{show by date|2011|01|01|Show this before 2011|Show this after 2011}} has started | এক্সপ্ৰেছন ত্ৰুটী: অপৰিচিত বিৰামচিহ্ন কেৰেক্টাৰ "২" has started |
{{show by date|2012|01|01|Show this before 2012|Show this after 2012}} has started | এক্সপ্ৰেছন ত্ৰুটী: অপৰিচিত বিৰামচিহ্ন কেৰেক্টাৰ "২" has started |
{{show by date|2010|09|01|Show this before September 2010|Show this as of September 2010}} | এক্সপ্ৰেছন ত্ৰুটী: অপৰিচিত বিৰামচিহ্ন কেৰেক্টাৰ "২" |
{{show by date|2010|09|06|Show this before 06 Sep 2010|Show this as of 06 Sep 2010}} | এক্সপ্ৰেছন ত্ৰুটী: অপৰিচিত বিৰামচিহ্ন কেৰেক্টাৰ "২" |
{{show by date|2010|09|06|Show this before 06 Sep 2010|}} | এক্সপ্ৰেছন ত্ৰুটী: অপৰিচিত বিৰামচিহ্ন কেৰেক্টাৰ "২" |
{{show by date|2010|09|06||Show this as of 06 Sep 2010}} | এক্সপ্ৰেছন ত্ৰুটী: অপৰিচিত বিৰামচিহ্ন কেৰেক্টাৰ "২" |
{{show by date|2010|01|23|Show this before 23 Jan 2010|Show this as of 23 Jan 2010}} | এক্সপ্ৰেছন ত্ৰুটী: অপৰিচিত বিৰামচিহ্ন কেৰেক্টাৰ "২" |
{{show by date|2010|01|24|Show this before 24 Jan 2010|Show this as of 24 Jan 2010}} | এক্সপ্ৰেছন ত্ৰুটী: অপৰিচিত বিৰামচিহ্ন কেৰেক্টাৰ "২" |
{{show by date|2010|01|31|Show this before 31 Jan 2010|Show this as of 31 Jan 2010}} | এক্সপ্ৰেছন ত্ৰুটী: অপৰিচিত বিৰামচিহ্ন কেৰেক্টাৰ "২" |
{{show by date|2010|02|28|Show this before 28 Feb 2010|Show this as of 28 Feb 2010}} | এক্সপ্ৰেছন ত্ৰুটী: অপৰিচিত বিৰামচিহ্ন কেৰেক্টাৰ "২" |
Related templates
[সম্পাদনা কৰক]- {{Update after}} - shows an inline upate maintenance tag when a specified date is reached
- {{Out of date}} is used to mark an article whose factual accuracy may be compromised (although this may be disputed) due to out of date information. This template adds the article to Category:Articles with obsolete information.
- {{As of}}
See also
[সম্পাদনা কৰক]
|
The above documentation is transcluded from সাঁচ:Show by date/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories and interwikis to the /doc subpage. Subpages of this template. |