Template:yearssince: Difference between revisions
imported>HRWikiMirrorBot Reimported from hrwiki.org Wayback HTML→wikitext (full reconvert) |
imported>HRWikiMirrorBot Reimported from hrwiki.org Wayback HTML→wikitext (full reconvert) |
||
| Line 1: | Line 1: | ||
<!-- | <!-- Wayback HTML body (hrwiki.org); RawHtml --> | ||
Outputs the number of whole years since a specified date. If the date is on or after 1 January 1970, it can be entered directly in a variety of formats. Otherwise, it must be specified using several parameters. | <html> | ||
<p>Outputs the number of whole years since a specified date. If the date is on or after 1 January 1970, it can be entered directly in a variety of formats. Otherwise, it must be specified using several parameters. <b>If you specify only the year, it is recommended to declare it using the <i>y</i> parameter to avoid having it be interpreted as a time.</b> | |||
</p> | |||
<a id="Usage" name="Usage"></a><h4> <span class="mw-headline"><b>Usage</b></span></h4> | |||
<ul><li><code>{{yearssince| some date }}</code> | |||
</li><li><code>{{yearssince| d=day | m=month | y=year }}</code> | |||
</li></ul> | |||
<a id="Examples" name="Examples"></a><h4> <span class="mw-headline"><b>Examples</b></span></h4> | |||
<table border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"> | |||
<tr> | |||
<td> <code>{{yearssince| 15 Nov 2004 }}</code> </td><td> 19 | |||
</td></tr> | |||
<tr> | |||
<td> <code>{{yearssince| January 1, 2000 }}</code> </td><td> 23 | |||
</td></tr> | |||
<tr> | |||
<td> <code>{{yearssince| 10/25/76 }}</code> </td><td> 47 | |||
</td></tr> | |||
<tr> | |||
<td> <code>{{yearssince| July 1983 }}</code> </td><td> 40 | |||
</td></tr> | |||
<tr> | |||
<td> <code>{{yearssince| d=29 | m=5 | y=1952 }}</code> </td><td> 71 | |||
</td></tr> | |||
<tr> | |||
<td> <code>{{yearssince| y=1995 }}</code> </td><td> 28 | |||
</td></tr> | |||
<tr> | |||
<td> <code>{{yearssince| y=1215 }}</code> </td><td> 808 | |||
</td></tr></table> | |||
<div class="visualClear"></div> | |||
</html> | |||
Latest revision as of 21:00, 18 July 2026
Outputs the number of whole years since a specified date. If the date is on or after 1 January 1970, it can be entered directly in a variety of formats. Otherwise, it must be specified using several parameters. If you specify only the year, it is recommended to declare it using the y parameter to avoid having it be interpreted as a time.
Usage
{{yearssince| some date }}{{yearssince| d=day | m=month | y=year }}
Examples
{{yearssince| 15 Nov 2004 }} | 19 |
{{yearssince| January 1, 2000 }} | 23 |
{{yearssince| 10/25/76 }} | 47 |
{{yearssince| July 1983 }} | 40 |
{{yearssince| d=29 | m=5 | y=1952 }} | 71 |
{{yearssince| y=1995 }} | 28 |
{{yearssince| y=1215 }} | 808 |