Open main menu

Changes

no edit summary
<noinclude>
This template is used to return a nicely formatted string of "on 24 August 2016", "in August 2016", or "in 2016" depending on which parts of the date type property are given. The template assumes that the data is has been previously stored with [[Template:SetDatePropertyValue]].
'''NOTE:''' As any "printing" template, it doesn't store any values anywhere, but merely prints them on the page.
--><!-- check if the date part is assigned
-->|{{#if: {{#show: {{{object|}}}|?{{{property|}}} Day|link=none}}|on|in}}<!-- "on" if the day is stored on, "in" otherwise
-->{{#ifeq: {{#show: {{{object|}}}|?{{{property|}}} Approximate|link=none|}}|Yes|&#32;''circa''|}}<!-- add circa. if necessary
-->&#32;{{#show: {{{object|}}}|?{{{property|}}}|link={{{link|}}}}}<!-- add the date itself
-->}}<!-- if property
--></includeonly>