الگو:Trim date: تفاوت میان نسخهها
fa>Neveselbert (Reverting edit(s) by Neveselbert (talk) to rev. 1058803382 by Ahecht: Reverting good faith edits (RW 16.1)) |
Wikivahdat (بحث | مشارکتها) جز (۱ نسخه واردشده) |
(بدون تفاوت)
|
نسخهٔ کنونی تا ۲۱ نوامبر ۲۰۲۲، ساعت ۰۷:۵۰
Not recognized as a date. Years must have 4 digits (use leading zeros for years < 1000).
Usage
{{Trim date|1=date}}
Trims all hidden text and microformats from dates output by {{Start date}}, {{Start-date}}, {{End date}}, and {{End-date}}. This template is of interest to template writers only.
For example, {{#time:Y|{{End date|2007|3|30}}}}
produces:
Error: Invalid time.
However, {{#time:Y|{{Trim date|{{End date|2007|3|30}}}}}}
produces:
۲۰۰۷
See also
- {{Start date}}
- {{Start-date}}
- {{End date}}
- {{End-date}}