Template:SetDatePropertyCompletionRate
Revision as of 02:28, 9 June 2017 by Hakob Barseghyan (talk | contribs)
This template is called from within other category templates (e.g. Author, Topic, Theory) to store the completion rate of a given date property. The template checks whether the Year, Month, and Day components of the date are present. Depending on the value of |requireddateprecision=
, the template calculates the completion rate and stores the value in a property titled CR_{{{propertyname}}}
.
NOTE: As any "set" template, it doesn't print anything on the page, but merely sets the appropriate values.
Parameters:
|propertyname=
- the name of the property for which a completion rate is to be calculated.|propertyvalueyear=
- the year value.|propertyvaluemonth=
- the month value.|propertyvalueday=
- the day value.|requireddateprecision=
- the required date precision; allowed values areYear
,Month
, andDay
; the default isDay
.|returnvalue=
- if nonempty, the calculated value is returned.