Difference between revisions of "Template:Delayed"

From blackwiki
Jump to navigation Jump to search
imported>Quarl
(«+"<includeonly>", +"</includeonly>"»)
imported>Sardanaphalus
(moved categorization to /doc page)
 
(8 intermediate revisions by 7 users not shown)
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|}}}}}
{{template usage|{{/doc}}}}
+
              | <span style="font-size:large;color:red;">[[Template:Delayed]] usage error: Expiration parameter required.</span>
 
+
            }}</includeonly><noinclude>
[[Category:Function templates|Delayed]]
+
{{Documentation}}
 
 
 
 
 
 
 
</noinclude>
 
</noinclude>

Latest revision as of 20:47, 16 November 2014

50px Template documentation[view] [edit] [history] [purge]
  • 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-13|foo|bar}} displays foo
    • {{delayed|2026-01-15|foo|bar}} displays foo (today's date)
    • {{delayed|2026-01-17|foo|bar}} displays bar
    • {{delayed|2026-01-20|2={{db-talk}}}} displays nothing now, but will transclude {{db-talk}} 5 days from now.