Work in progress — This wiki is an active migration / mirror of Homestar Runner Wiki and is not finished yet. Account registration and public editing are turned off until the migration is further along. For status updates, see the migration thread on the forums.

Template:yearssince: Difference between revisions

From HR Wiki Twice
Jump to navigationJump to search
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:
<!-- Mirrored from Homestar Runner Wiki (hrwiki.org) via Wayback Machine -->
<!-- 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. '''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.'''
<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>


==== Usage ====


* {{yearssince| some date }}
* {{yearssince| d=day | m=month | y=year }}


==== Examples ====
 
<div class="visualClear"></div>
{| class="wikitable"
</html>
|-
| {{yearssince&#124; 15 Nov 2004 }}
| 19
|-
| {{yearssince&#124; January 1, 2000 }}
| 23
|-
| {{yearssince&#124; 10/25/76 }}
| 47
|-
| {{yearssince&#124; July 1983 }}
| 40
|-
| {{yearssince&#124; d=29 · m=5 · y=1952 }}
| 71
|-
| {{yearssince&#124; y=1995 }}
| 28
|-
| {{yearssince&#124; y=1215 }}
| 808
|}
[[Category:Date and Time Formatting Templates]]



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