Difference between revisions of "Template:FormatDate"

From Wikispooks
Jump to navigation Jump to search
(created)
 
(Link Year)
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>[[Category:String Templates]]This template creates a human-readable date from the 3 date options.<br/>
+
<noinclude>[[Category:String manipulation templates]]This template creates a human-readable date from the 3 date options.<br/>
 
Usage:<br/>
 
Usage:<br/>
 
<pre>{{FormatDate|Start|End|Occurred}}</pre>
 
<pre>{{FormatDate|Start|End|Occurred}}</pre>
</noinclude><includeonly>{{#if: {{{1|}}}{{{2|}}}|{{#if:{{{2|}}}|{{{1|}}}-{{{2}}}|{{{1|}}}-Present}}|{{{3|}}}}}</includeonly>
+
</noinclude><includeonly>{{#if: {{{1|}}}{{{2|}}}|{{#if:{{{2|}}}|{{#ifeq: {{{1|}}}|{{{2|}}}|{{LinkYear|{{{1}}}}}|{{LinkYear|{{{1|}}}}} - {{LinkYear|{{{2}}}}}}}|{{LinkYear|{{{1|}}}}} - Present}}|{{LinkYear|{{{3|}}}}}}}</includeonly>

Latest revision as of 15:27, 22 September 2016

This template creates a human-readable date from the 3 date options.
Usage:

{{FormatDate|Start|End|Occurred}}