Template:Time ago/doc

Examples

 * → 23.614872686834097 years ago
 * Wrong: → 23.614872686834097 years ago
 * → 15.81941035806697 years ago
 * → 15.81941035806697 years ago
 * → 15.81941035806697 years ago
 * → 15.81941035806697 years ago
 * → 15.81941035806697 years ago
 * → 15.81941035806697 years ago
 * → 15.819981134322676 years ago
 * &rarr; 15.25240122564688 years ago
 * &rarr; 25.260620403729074 years ago
 * &rarr; 15.25240122567859 years ago
 * &rarr; 25.26062040376078 years ago
 * &rarr; 35.266099855815575 years ago
 * &rarr; 35.266099855815575 years ago
 * → 194013.15593210765 years from now
 * Wrong: → 194113.22442525835 years from now
 * &rarr; 25.26062040376078 years ago
 * &rarr; 35.266099855815575 years ago
 * &rarr; 35.266099855815575 years ago
 * → 194013.15593210765 years from now
 * Wrong: → 194113.22442525835 years from now

TemplateData
{	"description": "This template calculates the amount of time which has passed since a provided timestamp.", "params": { "1": {			"label": "Timestamp", "description": "Base timestamp for calculation of passed time. Example format: Nov 6 2008, see template documentation for other supported formats.", "type": "string", "required": true },		"magnitude": { "label": "magnitude", "description": "Explicitly sets a specific unit to display return value. Allowed values are: seconds, minutes, hours, days, weeks, months and years.", "type": "string", "required": false },		"min_magnitude": { "label": "min_magnitude", "description": "Sets a minimum unit to display return value. Allowed values are: seconds, minutes, hours, days, months and years.", "type": "string", "required": false },		"ago": { "label": "ago", "description": "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.", "type": "string", "required": false },		"purge": { "label": "Purge link", "description": "Add the parameter purge=yes to add a WP:PURGE link.", "type": "string", "required": false },		"spellout": { "type": "string/line", "label": "Spell out numbers", "description": "If set to \"yes\", \"y\", \"true\" or \"1\", numbers from 1 to 100 are spelled out as English words. If set to \"auto\", numbers from 1 to 9 are spelled out." },		"spelloutmax": { "type": "number", "label": "Spell out max", "description": "The maximum number to be spelled out as an English word." }	} }