Difference between revisions of "Template:Delayed/doc"
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>{{delayed | future date | | + | *'''Syntax''': <code>{{delayed | future date/time | text to show after expiration | text to show before expiration}}</code> |
| + | ** Text to show before/after may be omitted, but the date/time stamp must be given. | ||
| + | |||
*'''Examples''' | *'''Examples''' | ||
** <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>foo</code> | ||
** <code>{{delayed|{{#time:Y-m-d|+2 days}}|foo|bar}}</code> displays <code>bar</code> | ** <code>{{delayed|{{#time:Y-m-d|+2 days}}|foo|bar}}</code> displays <code>bar</code> | ||
** <code>{{delayed|{{#time:Y-m-d|+5 days}}|{{db-talk}}}}</code> displays nothing now, but will display {{tl|db-talk}} 5 days from now. | ** <code>{{delayed|{{#time:Y-m-d|+5 days}}|{{db-talk}}}}</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}}displaysfoo{{delayed|2026-04-06|foo|bar}}displaysbar{{delayed|2026-04-09|{{db-talk}}}}displays nothing now, but will display {{db-talk}} 5 days from now.