Template:Event banners/doc: Difference between revisions

→‎Considerations: scheduling issues arise regardless if the year rolls over
(split off from template page; document new parameters: enablescheduling, below, belowstyle)
 
(→‎Considerations: scheduling issues arise regardless if the year rolls over)
 
(4 intermediate revisions by the same user not shown)
Line 30:
| enablescheduling =
| maxevents = 3
| above = EVENTEvent BANNERSbanners
| header1 = Upcoming Events
| below =
Line 80:
 
=== Intentionally putting an event out of order ===
If you want to ''intentionally'' put one event out of order, for whatever reason, and scheduling is enabled, you can safely do so provided that there are no more than <code>maxevents - 1</code> events in betweenafter the out-of-order event and its expiration date. This trick works by exploiting the template's logic and there's a high potential for messing this up, so don't do this unless you know what you're doing.
 
== Considerations ==
* Because the MediaWiki software uses extensive caching, your scheduled content '''will not update immediately''' upon reaching the scheduled time. If you're impatient, use [[Special:Purge]] on the target page to flush the server's cache and force the page to update.
* During the middle of the year, it's generally fine to omit the year from dates, because MediaWiki will assume the current year. However, for the very same reason, ''when it's near the end of the year, don't omit the year from dates''. If you have events both in this year and the next without specifying the year, this results in scheduling issues.