Template:Fdate

From blackwiki
Revision as of 22:18, 13 July 2015 by imported>Zfish118 (Zfish118 moved page User:Zfish118/template:fdate to Template:Fdate: making template live)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Template documentation[view] [edit] [history] [purge]

Usage

If a date is input as the first parameter, the template will format that date (use the second parameter to specify an output format - see template:date). If no date in input, the template will return nothing.

Example:

  • "{{fdate|7/4/15}}" renders as: "4 July 2015"
  • "{{fdate|7/4/15|dmy}}" renders as: "4 July 2015"
  • "{{fdate|7/4/15|mdy}}" renders as: "July 4, 2015"

  • "{{fdate|}}" yields: ""
  • "{{fdate||dmy}}" yields: ""
  • "{{fdate||mdy}}" yields: ""