Difference between revisions of "Template:SetDatePropertyValueFromAnotherProperty"

From Encyclopedia of Scientonomy
Jump to navigation Jump to search
 
Line 12: Line 12:
 
-->{{#if: {{{property|}}}{{{sourceobject|}}}{{{sourceproperty|}}}<!--
 
-->{{#if: {{{property|}}}{{{sourceobject|}}}{{{sourceproperty|}}}<!--
 
  --><!--  
 
  --><!--  
  -->|setting {{SetDatePropertyValue<!--
+
  -->|{{SetDatePropertyValue<!--
 
   -->|property={{{property|}}}<!--
 
   -->|property={{{property|}}}<!--
 
   -->|year={{#show: {{{sourceobject|}}} |?{{{sourceproperty|}}} Year|link=none}}<!--
 
   -->|year={{#show: {{{sourceobject|}}} |?{{{sourceproperty|}}} Year|link=none}}<!--

Latest revision as of 20:58, 24 August 2016

This template is used to copy the date type value of one property to another property. The template assumes that the data in the source property has been previously stored with Template:SetDatePropertyValue or this template.

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 to store date in.
  • |sourceobject= - the source object whose property value will be copied.
  • |sourceproperty= - the source property which will be copied.