Difference between revisions of "Template:Dates"

From comp.tf
Jump to navigation Jump to search
(Created page with "<includeonly>{{#ifeq:{{{1|}}}|{{{4|}}}| {{#ifeq:{{lc:{{{2|}}}}}|{{lc:{{{5|}}}}}| {{#ifeq:{{{3|}}}|{{{6|}}}| {{month|{{{2|}}}}} {{{3|}}}, {{{1|}}}| {{month|{{{2|}}}}} {{{3|}}}...")
 
Line 1: Line 1:
<includeonly>{{#ifeq:{{{1|}}}|{{{4|}}}|
+
<includeonly>{{#ifeq:{{{1|}}}|{{{4|}}}|<!--
{{#ifeq:{{lc:{{{2|}}}}}|{{lc:{{{5|}}}}}|
+
-->{{#ifeq:{{lc:{{{2|}}}}}|{{lc:{{{5|}}}}}|<!--
{{#ifeq:{{{3|}}}|{{{6|}}}|
+
-->{{#ifeq:{{{3|}}}|{{{6|}}}|<!--
{{month|{{{2|}}}}} {{{3|}}}, {{{1|}}}|
+
-->{{month|{{{2|}}}}} {{{3|}}}, {{{1|}}}|<!--
{{month|{{{2|}}}}} {{{3|}}} - {{{6|}}}, {{{1|}}}}}|
+
-->{{month|{{{2|}}}}} {{{3|}}} - {{{6|}}}, {{{1|}}}}}|<!--
{{month|{{{2|}}}}} {{{3|}}} - {{month|{{{5|}}}}} {{{6|}}}, {{{1|}}}|
+
-->{{month|{{{2|}}}}} {{{3|}}} - {{month|{{{5|}}}}} {{{6|}}}, {{{1|}}}|<!--
{{month|{{{2|}}}}} {{{3|}}}, {{{1|}}} - {{month|{{{5|}}}}} {{{6|}}}, {{{4|}}}
+
-->{{month|{{{2|}}}}} {{{3|}}}, {{{1|}}} - {{month|{{{5|}}}}} {{{6|}}}, {{{4|}}}<!--
}}</includeonly><noinclude>{{Documentation}}[[Category:Templates]]</noinclude>
+
-->}}</includeonly><noinclude>{{Documentation}}[[Category:Templates]]</noinclude>

Revision as of 00:07, 16 April 2020

(view - edit) Documentation

When given two dates, this template will return the dates in a standardized, properly formatted word form.

{{dates|Start year|Start month|Start date|End year|End month|End date|

  • Start year - The year for the starting date.
  • Start month - The month for the starting date. Can be written in any form (1, 01, jan, january will all return "January")
  • Start date - The date for the starting date.
  • End year - The year for the ending date.
  • End month - The month for the ending date. Can be written in any form (1, 01, jan, january will all return "January")
  • End date - The date for the ending date.
You type You get
{{dates|2010|01|01|2011|02|03}} 2011|January 01 - February 03, 2010
{{dates|2010|01|01|2010|03|01}} 2010|January 01 - March 01, 2010
{{dates|2010|01|01|2010|01|07}} 2010|January 01 - 07, 2010
{{dates|2010|01|01|2010|01|01}} 2010|January 01, 2010