42,316
edits
(create template) |
m (remove template) |
||
Line 2: | Line 2: | ||
<!-- Categories go at the bottom of this page and interwikis go in Wikidata. --> | <!-- Categories go at the bottom of this page and interwikis go in Wikidata. --> | ||
The ''' | The '''tl Start date and age''' template displays the date that an event or entity started or was created. It also includes a duplicate, machine-readable date in the [[ISO 8601]] format (which is hidden by [[CSS]]), for use inside other templates which emit [[microformat]]s. The hidden date degrades gracefully when CSS is not available. | ||
== Usage == | == Usage == | ||
;Common usage | ;Common usage | ||
: <code><nowiki> | : <code><nowiki>Start date and age|yyyy|mm|dd</nowiki></code> to display formatted as: | ||
: {{xt| | : {{xt|Start date and age|2010|03|25}} | ||
: <code><nowiki> | : <code><nowiki>Start date and age|yyyy|mm|dd|df=yes</nowiki></code> to display formatted as: | ||
: {{xt| | : {{xt|Start date and age|2010|03|25|df=yes}} | ||
;Full syntax | ;Full syntax | ||
: <code><nowiki> | : <code><nowiki>Start date and age|yyyy|mm|dd|df=yes|p=yes|br=yes</nowiki></code> to display formatted as: | ||
: {{xt| | : {{xt|Start date and age|2010|03|25|df=yes|p=yes|br=yes}} | ||
== Parameters == | == Parameters == | ||
Line 61: | Line 61: | ||
| colspan="2" bgcolor="#DDD" | '''Full date (year, month, day)''' | | colspan="2" bgcolor="#DDD" | '''Full date (year, month, day)''' | ||
|- | |- | ||
| <code><nowiki> | | <code><nowiki>Start date and age|2010|01|02</nowiki></code> | ||
| | | Start date and age|2010|01|02 | ||
|- | |- | ||
| <code><nowiki> | | <code><nowiki>Start date and age|2008|Jan|09|df=no</nowiki></code> | ||
| | | Start date and age|2008|Jan|09|df=no | ||
|- | |- | ||
| <code><nowiki> | | <code><nowiki>Start date and age|2003|January|05|mf=yes</nowiki></code> | ||
| | | Start date and age|2003|January|05|mf=yes | ||
|- | |- | ||
| <code><nowiki> | | <code><nowiki>Start date and age|2010|1|2|df=yes</nowiki></code> | ||
| | | Start date and age|2010|1|2|df=yes | ||
|- | |- | ||
| <code><nowiki> | | <code><nowiki>Start date and age|2008|Jan|9|df=y</nowiki></code> | ||
| | | Start date and age|2008|Jan|9|df=y | ||
|- | |- | ||
| <code><nowiki> | | <code><nowiki>Start date and age|2003|January|5|df=1</nowiki></code> | ||
| | | Start date and age|2003|January|5|df=1 | ||
|- | |- | ||
| 100 days ago:<br /><code><nowiki> | | 100 days ago:<br /><code><nowiki>Start date and age|</nowiki>#time:Y|now-100 days}}|#time:n|now-100 days}}|#time:j|now-100 days</code> | ||
| | | Start date and age|#time:Y|now-100 days|#time:n|now-100 days|#time:j|now-100 days | ||
|- | |- | ||
| Yesterday:<br /><code><nowiki> | | Yesterday:<br /><code><nowiki>Start date and age|</nowiki>{{#time:Y|now-1 days}}|{{#time:n|now-1 days}}|{{#time:j|now-1 days}}</code> | ||
| | | Start date and age{{#time:Y|now-1 days}}|{{#time:n|now-1 days}}|{{#time:j|now-1 days}} | ||
|- | |- | ||
| Today:<br /><code><nowiki> | | Today:<br /><code><nowiki>Start date and age</nowiki>{{#time:Y|now}}|{{#time:n|now}}|{{#time:j|now}}</code> | ||
| | | Start date and age|{{#time:Y|now}}|{{#time:n|now}}|{{#time:j|now}} | ||
|- | |- | ||
| colspan="2" bgcolor="#DDD" | '''Year and month''' | | colspan="2" bgcolor="#DDD" | '''Year and month''' | ||
|- | |- | ||
| <code><nowiki> | | <code><nowiki>Start date and age|2001|9</nowiki></code> | ||
| | | Start date and age|2001|9 | ||
|- | |- | ||
| <code><nowiki> | | <code><nowiki>Start date and age|2002|09</nowiki></code> | ||
| | | Start date and age|2002|09 | ||
|- | |- | ||
| <code><nowiki> | | <code><nowiki>Start date and age|2003|Sep</nowiki></code> | ||
| | | Start date and age|2003|Sep | ||
|- | |- | ||
| <code><nowiki> | | <code><nowiki>Start date and age|2004|September</nowiki></code> | ||
| | | Start date and age|2004|September | ||
|- | |- | ||
| colspan="2" bgcolor="#DDD" | '''Year only''' | | colspan="2" bgcolor="#DDD" | '''Year only''' | ||
|- | |- | ||
| <code><nowiki> | | <code><nowiki>Start date and age|2005</nowiki></code> | ||
| | | Start date and age|2005 | ||
|} | |} | ||
Line 115: | Line 115: | ||
| colspan="2" bgcolor="#DDD" | '''Full date (year, month, day)''' | | colspan="2" bgcolor="#DDD" | '''Full date (year, month, day)''' | ||
|- | |- | ||
| <code><nowiki> | | <code><nowiki>Start date and age|2003|02|15|p=yes</nowiki></code> | ||
| | | Start date and age|2003|02|15|p=yes | ||
|- | |- | ||
| <code><nowiki> | | <code><nowiki>Start date and age|2003|02|15|df=y|p=y</nowiki></code> | ||
| | | Start date and age|2003|02|15|df=y|p=yes | ||
|- | |- | ||
| colspan="2" bgcolor="#DDD" | '''Year and month''' | | colspan="2" bgcolor="#DDD" | '''Year and month''' | ||
|- | |- | ||
| <code><nowiki> | | <code><nowiki>Start date and age|2003|02|p=1</nowiki></code> | ||
| | | Start date and age|2003|02|p=1 | ||
|- | |- | ||
| colspan="2" bgcolor="#DDD" | '''Year only''' | | colspan="2" bgcolor="#DDD" | '''Year only''' | ||
|- | |- | ||
| <code><nowiki> | | <code><nowiki>Start date and age|2003|paren=yes</nowiki></code> | ||
| | | Start date and age|2003|paren=yes | ||
|} | |} | ||
Line 139: | Line 139: | ||
| colspan="2" bgcolor="#DDD" | '''Full date (year, month, day)''' | | colspan="2" bgcolor="#DDD" | '''Full date (year, month, day)''' | ||
|- | |- | ||
| <code><nowiki> | | <code><nowiki>Start date and age|2003|02|15|br=yes</nowiki></code> | ||
| | | Start date and age|2003|02|15|br=yes | ||
|- | |- | ||
| <code><nowiki> | | <code><nowiki>Start date and age|2003|02|15|df=y|br=y</nowiki></code> | ||
| | | Start date and age|2003|02|15|df=y|br=y | ||
|- | |- | ||
| colspan="2" bgcolor="#DDD" | '''Year and month''' | | colspan="2" bgcolor="#DDD" | '''Year and month''' | ||
|- | |- | ||
| <code><nowiki> | | <code><nowiki>Start date and age|2003|02|br=1</nowiki></code> | ||
| | | Start date and age|2003|02|br=1 | ||
|- | |- | ||
| colspan="2" bgcolor="#DDD" | '''Year only''' | | colspan="2" bgcolor="#DDD" | '''Year only''' | ||
|- | |- | ||
| <code><nowiki> | | <code><nowiki>Start date and age|2003|br=yes</nowiki></code> | ||
| | | Start date and age|2003|br=yes | ||
|} | |} | ||
Line 163: | Line 163: | ||
| colspan="2" bgcolor="#DDD" | '''Full date (year, month, day)''' | | colspan="2" bgcolor="#DDD" | '''Full date (year, month, day)''' | ||
|- | |- | ||
| <code><nowiki> | | <code><nowiki>Start date and age|2003|02|15|p=yes|br=yes</nowiki></code> | ||
| | | Start date and age|2003|02|15|p=yes|br=yes | ||
|- | |- | ||
| <code><nowiki> | | <code><nowiki>Start date and age|2003|02|15|df=y|p=y|br=y</nowiki></code> | ||
| | | Start date and age|2003|02|15|df=y|p=y|br=y | ||
|- | |- | ||
| colspan="2" bgcolor="#DDD" | '''Year and month''' | | colspan="2" bgcolor="#DDD" | '''Year and month''' | ||
|- | |- | ||
| <code><nowiki> | | <code><nowiki>Start date and age|2003|02|p=1|br=1</nowiki></code> | ||
| | | Start date and age|2003|02|p=1|br=1 | ||
|- | |- | ||
| colspan="2" bgcolor="#DDD" | '''Year only''' | | colspan="2" bgcolor="#DDD" | '''Year only''' | ||
|- | |- | ||
| <code><nowiki> | | <code><nowiki>Start date and age|2003|paren=yes|br=yes</nowiki></code> | ||
| | | Start date and age|2003|paren=yes|br=yes | ||
|} | |} | ||
Line 187: | Line 187: | ||
== Use in microformats == | == Use in microformats == | ||
UF-hcal-part | |||
== See also == | == See also == |
edits