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
Imported from hrwiki.org via Wayback Machine (HTML→wikitext)
 
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; HTML converted to wikitext. Formatting may be imperfect. -->
<!-- Mirrored from Homestar Runner Wiki (hrwiki.org) via Wayback Machine -->
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.'''
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.'''


<span id="usage"></span>
==== Usage ====
==== <span class="mw-headline">'''Usage'''</span> ====


* <code>{{yearssince| some date }}</code>
* {{yearssince| some date }}
* <code>{{yearssince| d=day | m=month | y=year }}</code>
* {{yearssince| d=day | m=month | y=year }}


<span id="examples"></span>
==== Examples ====
==== <span class="mw-headline">'''Examples'''</span> ====


{| class="wikitable" border="1" cellspacing="0" cellpadding="5" style="border-collapse:collapse"
{| class="wikitable"
|-
|-
| <code>{{yearssince| 15 Nov 2004 }}</code>
| {{yearssince&#124; 15 Nov 2004 }}
| 19
| 19
|-
|-
| <code>{{yearssince| January 1, 2000 }}</code>
| {{yearssince&#124; January 1, 2000 }}
| 23
| 23
|-
|-
| <code>{{yearssince| 10/25/76 }}</code>
| {{yearssince&#124; 10/25/76 }}
| 47
| 47
|-
|-
| <code>{{yearssince| July 1983 }}</code>
| {{yearssince&#124; July 1983 }}
| 40
| 40
|-
|-
| <code>{{yearssince| d=29 | m=5 | y=1952 }}</code>
| {{yearssince&#124; d=29 · m=5 · y=1952 }}
| 71
| 71
|-
|-
| <code>{{yearssince| y=1995 }}</code>
| {{yearssince&#124; y=1995 }}
| 28
| 28
|-
|-
| <code>{{yearssince| y=1215 }}</code>
| {{yearssince&#124; y=1215 }}
| 808
| 808
|}
|}
 
[[Category:Date and Time Formatting Templates]]
<div id="catlinks" class="catlinks">
 
<div id="mw-normal-catlinks">
 
[/wiki/Special:Categories Category]: <span dir="ltr">[[Category:Date and Time Formatting Templates|Date and Time Formatting Templates]]</span>
 
</div>
 
</div>



Latest revision as of 14:24, 14 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

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