Many thanks to our Patrons who cover ~2/3 of our hosting bill. Please join them if you can.
Difference between revisions of "Template:FormatDate"
Jump to navigation
Jump to search
(created) |
(Tidy) |
||
Line 2: | Line 2: | ||
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|}}}|{{{1}}}|{{{1|}}}-{{{2}}}}}|{{{1|}}}-Present}}|{{{3|}}}}}</includeonly> |
Revision as of 19:02, 3 January 2014
This template creates a human-readable date from the 3 date options.
Usage:
{{FormatDate|Start|End|Occurred}}