Open main menu

Changes

no edit summary
'''Parameters:'''
* <code><nowiki>|propertynameproperty=</nowiki></code> - the name of the property.
* <code><nowiki>|year=</nowiki></code> - the year.
* <code><nowiki>|month=</nowiki></code> - the month.
* <code><nowiki>|day=</nowiki></code> - the day.
</noinclude><includeonly>hello world <!---->{{#if: {{{propertynameproperty|}}}<!-- --><!-- set individual values and build the overall date string -->|{{#if: {{{year|}}}<!-- -->| store year {{#ifset: {{{property|}}} Year={{{year|}}}| }}<!-- store year --> check month {{#if: {{{month|}}}<!-- -->| store month {{#set: {{{property|}}} Month={{{month|}}}|}}<!-- store month --> check day {{#if: {{{day|}}}<!-- -->| store day {{#set: {{{property|}}} Day={{{day|}}}|}}<!-- store day --> all present {{#vardefine: varDate|{{{day|}}} {{{month|}}} {{{year|}}}}}<!-- all components are present -->| month and year present {{#vardefine: varDate|{{{month|}}} {{{year|}}}}}<!-- only month and year are present -->}}<!-- if day -->|year present{{#vardefine: varDate|{{{year|}}}}}<!-- only year is present -->}}<!-- if month --><!-- --><!--set the overall date -->store value {{#set: {{{property|}}}={{#var: varDate}}|}}<!-- -->}}<!-- if year
-->}}<!-- if property
--></includeonly>