Template:Date-o-matic

From Moegirlpedia
Revision as of 05:58, 15 February 2020 by 公的驱逐舰 (talk | contribs) (Created page with "{{replace|1={{replace|1={{#time:{{{1|"<span style='color:red;'>No formatting string provided!</span>"}}}|{{{2|now}}}|{{{3|en}}}|{{{4|false}}}}}|2=J|3={{#time:j|{{#var:date-o-m...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

No formatting string provided!

Template-info.svg Template Documentation  [View] [Edit] [History] [Refresh]

The Date-o-matic is a small set of expansions upon {{#time}} parser function. It is made up by three parts:

  1. {{date-o-matic}}. Analogous to {{#time}}, with two codes are added to the format string:
    • % gives the day in ordinal number. {{date-o-matic|F %, Y}} yields November 25th, 2024.
    • ^ gives the day in ordinal number, with the ordinal suffix superscripted. {{date-o-matic|F ^, Y}} yields November 25th, 2024.
    • Currently, there is no escape implementations. Use {{#time}} if these characters must be used.
  2. {{date-o-matic/horoscope}}. Return the horoscope sign for the provided date.
  3. {{date-o-matic/fromnow}}. Return the length of time from now to the provided time.