• Home
  • Random
  • Recent changes
  • Special pages
  • Settings
  • About MOASSpedia
  • Disclaimers
MOASSpedia
  • 216.73.216.55
  • Talk
  • Watchlist
  • Contributions
  • Log in

Template:Show by/iso

Template Discussion
  • Language
  • Watch
  • History
  • Edit
    • Page information
    • Permanent link
    • What links here
< Template:Show by
Template documentation[view] [edit] [history] [purge]
This template should not be substituted.

Usage

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.
The above documentation is transcluded from Template:Show by/iso/doc. (edit | history)
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "https://moasspedia.org/w/index.php?title=Template:Show_by/iso&oldid=30881"
Last edited on 26 February 2015, at 13:23

MOASSpedia

Content is available under Creative Commons Attribution-ShareAlike unless otherwise noted.
  • This page was last edited on 26 February 2015, at 13:23.
  • Content is available under Creative Commons Attribution-ShareAlike unless otherwise noted.
  • Privacy policy
  • About MOASSpedia
  • Disclaimers
  • Desktop