Difference between revisions of "Template:Delayed/doc"

From blackwiki
Jump to navigation Jump to search
imported>Quarl
(«" | thing" → "/time | text", "(optional) thing" → "text", +"** Text to show before/after may be omitted, but the date/time stamp must be given."»)
imported>Quarl
(«+"2="»)
Line 5: Line 5:
 
** <code>&#123;{delayed|{{#time:Y-m-d|-2 days}}|foo|bar}&#125;</code> displays <code>foo</code>
 
** <code>&#123;{delayed|{{#time:Y-m-d|-2 days}}|foo|bar}&#125;</code> displays <code>foo</code>
 
** <code>&#123;{delayed|{{#time:Y-m-d|+2 days}}|foo|bar}&#125;</code> displays <code>bar</code>
 
** <code>&#123;{delayed|{{#time:Y-m-d|+2 days}}|foo|bar}&#125;</code> displays <code>bar</code>
** <code>&#123;{delayed|{{#time:Y-m-d|+5 days}}|&#123;{db-talk}&#125;}&#125;</code> displays nothing now, but will display {{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 display {{tl|db-talk}} 5 days from now.

Revision as of 03:34, 9 March 2007

  • 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.
  • Examples
    • {{delayed|2026-04-02|foo|bar}} displays foo
    • {{delayed|2026-04-06|foo|bar}} displays bar
    • {{delayed|2026-04-09|2={{db-talk}}}} displays nothing now, but will display {{db-talk}} 5 days from now.