Difference between revisions of "Template:Delayed/doc"

From blackwiki
Jump to navigation Jump to search
imported>Sardanaphalus
(category)
imported>Vanisaac
m (→‎top: clean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other)
 
Line 11: Line 11:
 
** <code>&#123;{delayed|{{#time:Y-m-d|+5 days}}|2=&#123;{db-talk}&#125;}&#125;</code> displays nothing now, but will transclude {{tl|db-talk}} 5 days from now.
 
** <code>&#123;{delayed|{{#time:Y-m-d|+5 days}}|2=&#123;{db-talk}&#125;}&#125;</code> displays nothing now, but will transclude {{tl|db-talk}} 5 days from now.
  
<includeonly>
+
<includeonly>{{Sandbox other||
 
[[Category:Time, date and calendar templates]]
 
[[Category:Time, date and calendar templates]]
</includeonly>
+
}}</includeonly>

Latest revision as of 23:12, 24 April 2020

  • Syntax: {{delayed | future date/time | text to show after expiration | text to show before expiration}}
    • Text to show before/after may be omitted, but the date/time stamp must be given.
    • Date/timestamp is in any format accepted by the {{#date}} ParserFunction, such as YYYY-MM-DD HH:MM.
  • Examples
    • {{delayed|2026-03-29|foo|bar}} displays foo
    • {{delayed|2026-03-31|foo|bar}} displays foo (today's date)
    • {{delayed|2026-04-02|foo|bar}} displays bar
    • {{delayed|2026-04-05|2={{db-talk}}}} displays nothing now, but will transclude {{db-talk}} 5 days from now.