Usage edit

This template is designed to be used by the wrapper template {{subst:Show by}}. This will insert the {{Show by/iso}} template using an ISO 8601 formatted date and time.

{{Show by/iso|date/time|text before|text after|demo=}}

  • Parameter 1 (date/time) is the date and/or time that the template should show the text after. Until that date and time, the text before is shown. The date/time parameter can be in any format accepted by PHP's strtotime() function (see mw:Help:Extension:ParserFunctions#.23time for more information).
  • Parameter 2 (text before) is the text to be shown if the current date is before the date specified in the previous parameters; it may be left empty if only the text after needs to be displayed at the specified date
  • Parameter 3 (text after) is the text to be shown if the current date is on or after the date specified in the previous parameters; it may be left empty if only the text before needs to be displayed until the specified date
  • The demo parameter (demo=) can be used to test the template. Set to "before" to always show text before or "after" to always show text after.