Difference between revisions of "Template:Recurrence date/doc"

From Nookipedia, the Animal Crossing wiki
(Add iso example)
 
(5 intermediate revisions by 2 users not shown)
Line 4: Line 4:
 
</pre>
 
</pre>
  
This template is to be used with [[Template:Recurrence]] to generate dates for events that do not take place on a specific date, but instead occur at specific times of the year (e.g. second Sunday of October). The weekday and month can be specified, with the <code>week</code> parameter being the specific week of the month on which the event occurs (e.g. the second week).
+
This template is to be used with [[Template:Recurrence]] to generate dates for events that do not take place on a specific date, but instead occur at specific times of the year (e.g. second Sunday of October). The weekday and month can be specified, with the <code>week</code> parameter being the specific week of the month on which the event occurs (e.g. the second week). By default, all months are abbreviated, but <code>showfullmonth=yes</code> is used to display the full month's name (e.g. January instead of Jan). <code>iso=yes</code> can be provided to receive the date in ISO 8601 format (YYYY-MM-DD).
  
By default dates are generated for the current year. <code>next=yes</code> can be used to generate dates for the next year.
+
By default dates are generated for the current year. <code>next=yes</code> can be used to generate dates for the next year. To remove the month entirely, use <code>nomonth=yes</code>.
  
 
===Example===
 
===Example===
Line 14: Line 14:
  
 
{{Recurrence date|day=Sunday|month=October|week=Second}}
 
{{Recurrence date|day=Sunday|month=October|week=Second}}
 +
 +
<pre>
 +
{{Recurrence date|day=Sunday|month=October|week=Second|iso=yes}}
 +
</pre>
 +
 +
{{Recurrence date|day=Sunday|month=October|week=Second|iso=yes}}

Latest revision as of 01:30, April 3, 2021

Usage

{{Recurrence date|day=|month=|week=}}

This template is to be used with Template:Recurrence to generate dates for events that do not take place on a specific date, but instead occur at specific times of the year (e.g. second Sunday of October). The weekday and month can be specified, with the week parameter being the specific week of the month on which the event occurs (e.g. the second week). By default, all months are abbreviated, but showfullmonth=yes is used to display the full month's name (e.g. January instead of Jan). iso=yes can be provided to receive the date in ISO 8601 format (YYYY-MM-DD).

By default dates are generated for the current year. next=yes can be used to generate dates for the next year. To remove the month entirely, use nomonth=yes.

Example

{{Recurrence date|day=Sunday|month=October|week=Second}}

Oct 13

{{Recurrence date|day=Sunday|month=October|week=Second|iso=yes}}

2024-10-13