Difference between revisions of "Template:Delayed/doc"
Jump to navigation
Jump to search
imported>Kri (Added example with todays date) |
imported>Vanisaac |
||
| (One intermediate revision by one other user not shown) | |||
| Line 1: | Line 1: | ||
{{Documentation subpage}} | {{Documentation subpage}} | ||
| − | + | ||
*'''Syntax''': <code>{{delayed | future date/time | text to show after expiration | text to show before expiration}}</code> | *'''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. | ** Text to show before/after may be omitted, but the date/time stamp must be given. | ||
| Line 9: | Line 9: | ||
** <code>{{delayed|{{#time:Y-m-d|+0 days}}|foo|bar}}</code> displays <code>{{delayed|{{#time:Y-m-d|+0 days}}|foo|bar}}</code> (today's date) | ** <code>{{delayed|{{#time:Y-m-d|+0 days}}|foo|bar}}</code> displays <code>{{delayed|{{#time:Y-m-d|+0 days}}|foo|bar}}</code> (today's date) | ||
** <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}}|2={{db-talk}}}}</code> displays nothing now, but will transclude {{tl|db-talk}} 5 days from now. | + | ** <code>{{delayed|{{#time:Y-m-d|+5 days}}|2={{db-talk}}}}</code> displays nothing now, but will transclude {{tl|db-talk}} 5 days from now. |
| − | |||
| − | |||
| − | </includeonly> | + | <includeonly>{{Sandbox other|| |
| + | [[Category:Time, date and calendar templates]] | ||
| + | }}</includeonly> | ||
Latest revision as of 23:12, 24 April 2020
| 40px | This is a documentation subpage for Template:Delayed. It contains usage information, categories and other content that is not part of the original template page. |
- 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}}displaysfoo{{delayed|2026-03-31|foo|bar}}displaysfoo(today's date){{delayed|2026-04-02|foo|bar}}displaysbar{{delayed|2026-04-05|2={{db-talk}}}}displays nothing now, but will transclude {{db-talk}} 5 days from now.