Difference between revisions of "Template:Delayed/doc"

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

Revision as of 03:30, 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|{{db-talk}}}} displays nothing now, but will display {{db-talk}} 5 days from now.