<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
	<id>https://wiki.dzmuh.com/index.php?action=history&amp;feed=atom&amp;title=%D0%A8%D0%B0%D0%B1%D0%BB%D0%BE%D0%BD%3A%D0%9F%D1%80%D0%BE%D1%88%D0%BB%D0%BE_%D0%B2%D1%80%D0%B5%D0%BC%D0%B5%D0%BD%D0%B8%2Fdoc</id>
	<title>Шаблон:Прошло времени/doc - История изменений</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.dzmuh.com/index.php?action=history&amp;feed=atom&amp;title=%D0%A8%D0%B0%D0%B1%D0%BB%D0%BE%D0%BD%3A%D0%9F%D1%80%D0%BE%D1%88%D0%BB%D0%BE_%D0%B2%D1%80%D0%B5%D0%BC%D0%B5%D0%BD%D0%B8%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://wiki.dzmuh.com/index.php?title=%D0%A8%D0%B0%D0%B1%D0%BB%D0%BE%D0%BD:%D0%9F%D1%80%D0%BE%D1%88%D0%BB%D0%BE_%D0%B2%D1%80%D0%B5%D0%BC%D0%B5%D0%BD%D0%B8/doc&amp;action=history"/>
	<updated>2026-06-19T12:55:34Z</updated>
	<subtitle>История изменений этой страницы в вики</subtitle>
	<generator>MediaWiki 1.38.4</generator>
	<entry>
		<id>https://wiki.dzmuh.com/index.php?title=%D0%A8%D0%B0%D0%B1%D0%BB%D0%BE%D0%BD:%D0%9F%D1%80%D0%BE%D1%88%D0%BB%D0%BE_%D0%B2%D1%80%D0%B5%D0%BC%D0%B5%D0%BD%D0%B8/doc&amp;diff=11243&amp;oldid=prev</id>
		<title>Dzmuh: Новая страница: «{{docpage}} {{OnLua|TimeAgo}} &lt;includeonly&gt; {{Шаблон из википедии|Прошло времени}} &lt;/includeonly&gt;  The '''Time ago''' template calculates the amount of time which has passed since a provided timestamp.  The result is a string similar to one of the examples below.  This template ''should not'' be used with &quot;subst&quot; unless you don't want the stamp to change as the user refreshes the page.  Note that due to Wikipedia's caching mecha...»</title>
		<link rel="alternate" type="text/html" href="https://wiki.dzmuh.com/index.php?title=%D0%A8%D0%B0%D0%B1%D0%BB%D0%BE%D0%BD:%D0%9F%D1%80%D0%BE%D1%88%D0%BB%D0%BE_%D0%B2%D1%80%D0%B5%D0%BC%D0%B5%D0%BD%D0%B8/doc&amp;diff=11243&amp;oldid=prev"/>
		<updated>2023-02-27T22:51:22Z</updated>

		<summary type="html">&lt;p&gt;Новая страница: «{{docpage}} {{OnLua|TimeAgo}} &amp;lt;includeonly&amp;gt; {{Шаблон из википедии|Прошло времени}} &amp;lt;/includeonly&amp;gt;  The &amp;#039;&amp;#039;&amp;#039;Time ago&amp;#039;&amp;#039;&amp;#039; template calculates the amount of time which has passed since a provided timestamp.  The result is a string similar to one of the examples below.  This template &amp;#039;&amp;#039;should not&amp;#039;&amp;#039; be used with &amp;quot;subst&amp;quot; unless you don&amp;#039;t want the stamp to change as the user refreshes the page.  Note that due to Wikipedia&amp;#039;s caching mecha...»&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{docpage}}&lt;br /&gt;
{{OnLua|TimeAgo}}&lt;br /&gt;
&amp;lt;includeonly&amp;gt;&lt;br /&gt;
{{Шаблон из википедии|Прошло времени}}&lt;br /&gt;
&amp;lt;/includeonly&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The '''Time ago''' template calculates the amount of time which has passed since a provided timestamp.  The result is a string similar to one of the examples below.  This template ''should not'' be used with &amp;quot;subst&amp;quot; unless you don't want the stamp to change as the user refreshes the page.&lt;br /&gt;
&lt;br /&gt;
Note that due to Wikipedia's caching mechanisms, you may need to [[WP:PURGE|purge]] a page using this template to update the dynamic value. See the section [[#Purge|Purge]] below.&lt;br /&gt;
&lt;br /&gt;
The result is rounded down. &amp;quot;Month&amp;quot; is defined as 31 days.&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
* &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{&amp;lt;/nowiki&amp;gt;'''Time ago'''|''timestamp''&amp;lt;nowiki&amp;gt;}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The timestamp can be almost any solid, readable format but to avoid ambiguity mistakes, one of the styles below is preferred.&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;magnitude&amp;lt;/code&amp;gt; parameter can be set to explicitly use certain unit. Allowed values are: &amp;lt;code&amp;gt;seconds&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;minutes&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;hours&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;days&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;weeks&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;months&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;years&amp;lt;/code&amp;gt;.&lt;br /&gt;
* &amp;lt;code&amp;gt;min_magnitude&amp;lt;/code&amp;gt; parameter can be set to use the specified unit or bigger units. Allowed values are: &amp;lt;code&amp;gt;seconds&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;minutes&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;hours&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;days&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;months&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;years&amp;lt;/code&amp;gt;.&lt;br /&gt;
* &amp;lt;code&amp;gt;ago&amp;lt;/code&amp;gt; parameter can be set to override the default usage of the text &amp;quot;&amp;lt;code&amp;gt;ago&amp;lt;/code&amp;gt;&amp;quot;. If the parameter is blank but not missing (i.e. &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{time ago|2008|ago=}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;), then the text &amp;quot;ago&amp;quot; is suppressed altogether. For future dates, setting &amp;quot;ago&amp;quot; as blank but not missing will suppress the text &amp;quot;time&amp;quot; (i.e. &amp;quot;2 years&amp;quot; instead of &amp;quot;2 years' time&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
=== Spelling out numbers ===&lt;br /&gt;
Numbers from 1 to 100 can be spelled out in their equivalent English word by using the &amp;lt;code&amp;gt;spellout&amp;lt;/code&amp;gt; parameter. If &amp;lt;code&amp;gt;spellout&amp;lt;/code&amp;gt; is set to &amp;quot;yes&amp;quot;, &amp;quot;y&amp;quot;, &amp;quot;true&amp;quot; or &amp;quot;1&amp;quot;, all numbers from 1 to 100 will be spelled out. If &amp;lt;code&amp;gt;spellout&amp;lt;/code&amp;gt; is set to &amp;quot;auto&amp;quot;, only numbers from 1 to 9 will be spelled out, as per the recommendations at [[MOS:NUMERAL]].&lt;br /&gt;
&lt;br /&gt;
It is also possible to set a custom maximum value for spelling out by using the &amp;lt;code&amp;gt;spelloutmax&amp;lt;/code&amp;gt; parameter. For example, setting {{para|spellout|yes}} and {{para|spelloutmax|24}} will result in all numbers less than or equal to 24 being spelled out, and all numbers greater than 24 appearing as numerals.&lt;br /&gt;
&lt;br /&gt;
=== Purge link ===&lt;br /&gt;
Add the parameter {{para|purge|yes}} to add a [[WP:PURGE|purge]] link.&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
* {{tlc|Time ago| -83 minutes}} → '''{{Time ago|-83 minutes}}'''&lt;br /&gt;
* {{tlc|Time ago| -334 minutes}} → '''{{Time ago|-334 minutes}}'''&lt;br /&gt;
* {{tlc|Time ago| +334 minutes}} → '''{{Time ago|+334 minutes}}'''&lt;br /&gt;
* {{tlc|Time ago|&amp;lt;nowiki&amp;gt;{{REVISIONTIMESTAMP}}&amp;lt;/nowiki&amp;gt;}} → '''{{Time ago|{{REVISIONTIMESTAMP}}}}'''&lt;br /&gt;
* {{tlc|Time ago| Jan 21, 2001 3:45 PM}} → '''{{Time ago|Jan 21 2001 3:45 PM}}'''&lt;br /&gt;
* ''Wrong:'' {{tlc|Time ago| 3:45 pm, 21 Jan 2001}} → '''{{Time ago|3:45 pm, 21 Jan 2001}}'''&lt;br /&gt;
* {{tlc|Time ago|20010121154500}} → '''{{Time ago|20010121154500}}'''&lt;br /&gt;
* {{tlc|Time ago| Nov 6 2008}} → '''{{Time ago|Nov 6 2008}}'''&lt;br /&gt;
* {{tlc|Time ago| Nov 6 2008|3=magnitude=weeks}} → '''{{Time ago| Nov 6 2008|magnitude=weeks}}'''&lt;br /&gt;
* {{tlc|Time ago| Nov 6 2008|3=min_magnitude=days}} → '''{{Time ago|Nov 6 2008|min_magnitude=days}}'''&lt;br /&gt;
* {{tlc|Time ago| Nov 6 2008|3=min_magnitude=years}} → '''{{Time ago|Nov 6 2008|min_magnitude=years}}'''&lt;br /&gt;
* {{tlc|Time ago| Nov 6 2008|3=ago=in the past}} → '''{{Time ago|Nov 6 2008|ago=in the past}}'''&lt;br /&gt;
* {{tlc|Time ago| Nov 6 2008|3=purge=yes}} → '''{{Time ago|Nov 6 2008|purge=yes}}'''&lt;br /&gt;
* {{tlc|Time ago| 2008-11-06}} → '''{{Time ago|2008-11-06}}'''&lt;br /&gt;
* {{tlc|Time ago|195909}} → '''{{Time ago|195909}}'''&lt;br /&gt;
* ''Wrong:'' {{tlc|Time ago|196009}} → '''{{Time ago|196009}}'''&lt;br /&gt;
&lt;br /&gt;
== TemplateData ==&lt;br /&gt;
&amp;lt;templatedata&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
	&amp;quot;description&amp;quot;: &amp;quot;This template calculates the amount of time which has passed since a provided timestamp.&amp;quot;,&lt;br /&gt;
	&amp;quot;params&amp;quot;: {&lt;br /&gt;
		&amp;quot;1&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Timestamp&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Base timestamp for calculation of passed time. Example format: Nov 6 2008, see template documentation for other supported formats.&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;,&lt;br /&gt;
			&amp;quot;required&amp;quot;: true&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;magnitude&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;magnitude&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Explicitly sets a specific unit to display return value. Allowed values are: seconds, minutes, hours, days, weeks, months and years.&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;,&lt;br /&gt;
			&amp;quot;required&amp;quot;: false&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;min_magnitude&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;min_magnitude&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Sets a minimum unit to display return value. Allowed values are: seconds, minutes, hours, days, months and years.&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;,&lt;br /&gt;
			&amp;quot;required&amp;quot;: false&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;ago&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;ago&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Override the default usage of the text 'ago'. If it is blank but not missing then 'ago' will be removed completely; for future dates, this will remove the text 'time' as well.&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;,&lt;br /&gt;
			&amp;quot;required&amp;quot;: false&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;purge&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Purge link&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Add the parameter purge=yes to add a WP:PURGE link.&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;,&lt;br /&gt;
			&amp;quot;required&amp;quot;: false&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;spellout&amp;quot;: {&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string/line&amp;quot;,&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Spell out numbers&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;If set to \&amp;quot;yes\&amp;quot;, \&amp;quot;y\&amp;quot;, \&amp;quot;true\&amp;quot; or \&amp;quot;1\&amp;quot;, numbers from 1 to 100 are spelled out as English words. If set to \&amp;quot;auto\&amp;quot;, numbers from 1 to 9 are spelled out.&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;spelloutmax&amp;quot;: {&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;number&amp;quot;,&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Spell out max&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;The maximum number to be spelled out as an English word.&amp;quot;&lt;br /&gt;
		}&lt;br /&gt;
	}&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/templatedata&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;&lt;br /&gt;
[[Категория:Математические_шаблоны]]&lt;br /&gt;
[[Категория:Шаблоны:Дата и время]]&lt;br /&gt;
&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>Dzmuh</name></author>
	</entry>
</feed>