Difference between revisions of "Template:GetDatePropertyValuePart"

From Encyclopedia of Scientonomy
Jump to navigation Jump to search
(Created page with "<noinclude> This template is used to return the given part of a date type property. The template assumes that the data is previously sotred with Template:SetDatePropertyValu...")
 
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
<noinclude>
 
<noinclude>
This template is used to return the given part of a date type property. The template assumes that the data is previously sotred with [[Template:SetDatePropertyValue]]. if the value part is unassigned, and empty string is returned.
+
This template is used to return the given part of a date type property. The template assumes that the data is previously stored with [[Template:SetDatePropertyValue]]. If the respective value part is unassigned, an empty string is returned.
  
'''NOTE:''' As any "set" template, it doesn't print anything on the page, but merely sets the appropriate values.  
+
'''NOTE:''' As any "printing" template, it doesn't store any values anywhere, but merely prints them on the page.
  
 
'''Parameters:'''
 
'''Parameters:'''
 
* <code><nowiki>|object=</nowiki></code> - the full page name of the object.
 
* <code><nowiki>|object=</nowiki></code> - the full page name of the object.
 
* <code><nowiki>|property=</nowiki></code> - the name of the property.
 
* <code><nowiki>|property=</nowiki></code> - the name of the property.
* <code><nowiki>|part=</nowiki></code> - three values are acceptable: Year, Month, Day.
+
* <code><nowiki>|part=</nowiki></code> - the acceptable values are: Era, Year, Month, Day, Approximate. The values are ''Case Sensitive''.
  
</noinclude>
+
</noinclude><includeonly><!--
<includeonly><!--
 
 
-->{{#if: {{{object|}}}{{{property|}}}{{{part|}}}<!--
 
-->{{#if: {{{object|}}}{{{property|}}}{{{part|}}}<!--
 
  --><!-- set individual values and build the overall date string
 
  --><!-- set individual values and build the overall date string
 
  -->|{{#show: {{{object|}}}|?{{{property|}}} {{{part|}}}|link=none}}<!--
 
  -->|{{#show: {{{object|}}}|?{{{property|}}} {{{part|}}}|link=none}}<!--
-->|<!-- empty string otherwise
 
 
-->}}<!-- if property
 
-->}}<!-- if property
 
--></includeonly>
 
--></includeonly>

Latest revision as of 20:16, 24 August 2016

This template is used to return the given part of a date type property. The template assumes that the data is previously stored with Template:SetDatePropertyValue. If the respective value part is unassigned, an empty string is returned.

NOTE: As any "printing" template, it doesn't store any values anywhere, but merely prints them on the page.

Parameters:

  • |object= - the full page name of the object.
  • |property= - the name of the property.
  • |part= - the acceptable values are: Era, Year, Month, Day, Approximate. The values are Case Sensitive.