Difference between revisions of "Template:Delayed"
Jump to navigation
Jump to search
imported>Addbot m (Bot: Migrating interwiki links, now provided by Wikidata on d:q14337329) |
imported>Sardanaphalus (moved categorization to /doc page) |
||
| Line 1: | Line 1: | ||
| − | <includeonly>{{#if:{{{1|}}}|{{#ifexpr: {{#time:U}} > {{#time:U|{{{1}}}}}|{{{2|}}}|{{{3|}}}}}|<span style="font-size: large; color: red">[[Template:Delayed]] usage error: Expiration parameter required.</span>}}</includeonly><noinclude> | + | <includeonly>{{#if:{{{1|}}} |
| − | {{ | + | | {{#ifexpr:{{#time:U}}>{{#time:U|{{{1}}}}} |{{{2|}}} |{{{3|}}}}} |
| − | + | | <span style="font-size:large;color:red;">[[Template:Delayed]] usage error: Expiration parameter required.</span> | |
| − | + | }}</includeonly><noinclude> | |
| + | {{Documentation}} | ||
</noinclude> | </noinclude> | ||
Latest revision as of 20:47, 16 November 2014
- 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-01-09|foo|bar}}displaysfoo{{delayed|2026-01-11|foo|bar}}displaysfoo(today's date){{delayed|2026-01-13|foo|bar}}displaysbar{{delayed|2026-01-16|2={{db-talk}}}}displays nothing now, but will transclude {{db-talk}} 5 days from now.
| The above documentation is transcluded from Template:Delayed/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |