Template:SetDatePropertyValueFromDateString

From Encyclopedia of Scientonomy
Revision as of 09:34, 24 August 2016 by Hakob Barseghyan (talk | contribs) (Created page with "<noinclude> This template takes a date string in <code><nowiki>yyyy/mm/dd</nowiki></code> format and stores it as a complex date property value using Template:SetDatePropert...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This template takes a date string in yyyy/mm/dd format and stores it as a complex date property value using Template:SetDatePropertyValue. This whole headache is necessary to support incomplete date values with BC support.

The template will store up to four values:

  • {{{property|}}} - the combined date.
  • {{{property|}}} Year - the year part.
  • {{{property|}}} Month - the month part.
  • {{{property|}}} Day - the day part.

NOTE: As any "set" template, it doesn't print anything on the page, but merely sets the appropriate values.

Parameters:

  • |property= - the name of the property.
  • |datestring= - the date value in yyyy/mm/dd format. The month and day are optional. YYYY BC and YYYY BCE formats are allowed for BC years.