Difference between revisions of "Template:Display date"

From Wikispooks
Jump to navigation Jump to search
(clarify internals)
(Comment out)
 
Line 1: Line 1:
 
<noinclude>[[Category:Property Templates]]This template uses [[Template:FormatDate]] to create the [[Property:Display date]] for pages which have any of [[Property:Start]], [[Property:End]], [[Property:Occurred on]]/[[Property:Has publicationDate]].<br/>
 
<noinclude>[[Category:Property Templates]]This template uses [[Template:FormatDate]] to create the [[Property:Display date]] for pages which have any of [[Property:Start]], [[Property:End]], [[Property:Occurred on]]/[[Property:Has publicationDate]].<br/>
''It assumes that no pages will ever have both [[Property:Occurred on]] (events only) and [[Property:Has publicationDate]] (documents only).</noinclude><includeonly>[[Display date::{{FormatDate|{{#show: {{PAGENAME}} | ?Start}}|{{#show: {{PAGENAME}} | ?End}}|{{#show: {{PAGENAME}} | ?Occurred on}}{{#show: {{PAGENAME}} | ?Has publicationDate}}}}| ]]</includeonly>
+
''It assumes that no pages will ever have both [[Property:Occurred on]] (events only) and [[Property:Has publicationDate]] (documents only).</noinclude><includeonly><!--[[Display date::{{FormatDate|{{#show: {{PAGENAME}} | ?Start}}|{{#show: {{PAGENAME}} | ?End}}|{{#show: {{PAGENAME}} | ?Occurred on}}{{#show: {{PAGENAME}} | ?Has publicationDate}}}}| ]]--></includeonly>

Latest revision as of 14:25, 15 June 2019

This template uses Template:FormatDate to create the Property:Display date for pages which have any of Property:Start, Property:End, Property:Occurred on/Property:Has publicationDate.
It assumes that no pages will ever have both Property:Occurred on (events only) and Property:Has publicationDate (documents only).