Difference between revisions of "Template:Deadline"

From BlogNomic Wiki
Jump to navigation Jump to search
Line 4: Line 4:
 
Wrapping this template around a timestamp or datestamp will cause the date to be bolded and highlighted in red if that time is not in the future.
 
Wrapping this template around a timestamp or datestamp will cause the date to be bolded and highlighted in red if that time is not in the future.
  
This template was created as a test in August 2024 - in practice it may not update itself frequently enough to be reliable, although in use cases where the deadline only applies to wiki gamestate actions, it may still work usefully as an immediately retrospective alert. (If you take a move but doing so causes a deadline date to become red, that may be a sign that your move forgot to bear this deadline in mind.)
+
This template was created as a test in August 2024 - in practice it may not update itself frequently enough to be reliable, although in use cases where the deadline only applies to wiki gamestate actions, it may still work usefully as an immediately retrospective alert. (If you take a move but doing so causes a deadline date to become red, that may be a sign that your move forgot to bear this deadline in mind.) ''Update:'' It looks like the sidebar embed of a gamestate page is displaying and updating this live, with only the wiki page itself being cached.
  
 
Examples:
 
Examples:

Revision as of 11:42, 24 August 2024

Usage

Wrapping this template around a timestamp or datestamp will cause the date to be bolded and highlighted in red if that time is not in the future.

This template was created as a test in August 2024 - in practice it may not update itself frequently enough to be reliable, although in use cases where the deadline only applies to wiki gamestate actions, it may still work usefully as an immediately retrospective alert. (If you take a move but doing so causes a deadline date to become red, that may be a sign that your move forgot to bear this deadline in mind.) Update: It looks like the sidebar embed of a gamestate page is displaying and updating this live, with only the wiki page itself being cached.

Examples:

  • {{deadline|2024-08-23 10:12}} displays as 2024-08-23 10:12
  • {{deadline|1 January 2024}} displays as 1 January 2024
  • {{deadline|12:00, 2040-01-01}} displays as 12:00, 2040-01-01
  • {{deadline|31 December 2099}} displays as 31 December 2099

Less specific dates will also work, assuming the current year (with the outputs being correct when this documentation page was last refreshed on 2024-11-10):-

  • {{deadline|January 1}} displays as January 1
  • {{deadline|June 1}} displays as June 1
  • {{deadline|October 1}} displays as October 1
  • {{deadline|December 31}} displays as December 31