Template:Today cell/doc

From Nordic Larp Wiki
< Template:Today cell
Revision as of 07:20, 28 August 2018 by en>Jonesey95 (update with align variable to fix linter problems)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Shows a formatted version of the current date, yesterday's date, or tomorrow's date

Usage

  • {{Today cell}}
Today is
  • {{Today cell|align=right}} (default is left-aligned)
Today is
  • {{Today cell|+1 day}}
Tomorrow:
  • {{Today cell|-1 day}}
Yesterday:
  • {{Today cell|+1 month|label=Next month:}}
Next month:
  • {{Today cell|-1 month|label=Last month:}}
Last month:
  • {{Today cell|-1 month|label=Last month:|align=right}}
Last month:

Technical details

This template uses the #date parserfunction to compute the current, previous, and future dates. Any offset accepted by this parserfunction can be used here. See the MediaWiki Help:Extension:ParserFunctions page for more details.

See also