Actions

Template

Dateswitch

From NEC Retro

Revision as of 08:14, 31 December 2021 by Ccawley2011 (talk | contribs) (Created page with "<includeonly>{{#vardefine:dsoutput|{{{1|}}}}}{{#forargs: | dateborder | text | {{#ifeq: {{#var:dateborder}} | date || {{#ifexpr:{{age|{{#var:dateborder}}|{{{date|}}}|lowonly=y...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Displays different text depending on the date.

Usage

Leave "date" blank to use the current date.

{{dateswitch
| date=2015-05-05
| earlier
| 2013-08-25=middle
| 2018-01-01=later
}}

returns:

middle