الگو:Adt/توضیحات
ظاهر
< الگو:Adt
این زیرصفحهٔ مستندات الگو:Adt است. این شامل اطلاعات استفاده، الگوها، پیوندهای بین زبانی و سایر اطلاعات است که در اصل الگو صفحه قرار نمیگیرد. |
این الگو همیشه باید جانشانی شود (از {{جا:Adt}} استفاده کنید). |
Adt creates the 'accessdate' field and value in YYYY-MM-DD format for most Citation templates.
Access dates may be implemented in three formats and should be consistent throughout the article:
- YYYY-MM-DD: ۲۰۲۴-۰۶-۲۹
- MYD: ژوئن ۲۹, ۲۰۲۴
- DMY: ۲۹ ژوئن ۲۰۲۴
Usage[ویرایش]
This template MUST be subst'd.
When subst'd, the template provides the YYYY-MM-DD date field and word string
- "accessdate=CURRENTYEAR-CURRENTMONTH-CURRENTDAY" (all numeric with proper leading zero's)
Alternatively, it can be used to record an older date:
- "accessdate={{{3}}}-{{{2}}}-{{{1}}}", of which any one, two, or all three may be specified, and again will add proper leading zero's and format the output.
Examples[ویرایش]
- |
{{جا:adt|three days ago}}
— generates the string with the date of three days ago.
Given: |{{جا:adt|5}}
it will generate:|accessdate=۲۰۲۴-۰۶-05
- |
{{جا:adt|three days ago|lastmonth}}
— generates the string with the date of three days ago, which was in the different last month.
Given: |{{جا:adt|3|10}}
it will generate:|accessdate=۲۰۲۴-10-03
- "Last year"—has been left as an exercise for the pupil!