Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Special pages
Search
Search
Appearance
Create account
Log in
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Editing
Template talk
:
Time ago
Add topic
Template
Discussion
English
Read
Edit source
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit source
Add topic
View history
General
What links here
Related changes
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
{{talk header}} {{WikiProject banner shell| {{WikiProject Time}} }} {{User:MiszaBot/config | algo=old(90d) | archive=Template talk:Time ago/Archive %(counter)d | counter=1 | maxarchivesize=900K | archiveheader={{aan}} | minthreadsleft=2 | minthreadstoarchive=1 }} == Unnatural "0 days ago" and "0 days' time" == These are very small and short-lived problems, but I did notice the "0 days ago" on Benedict XVI's article today. <code><nowiki>{{time ago|{{#time:Y|now}}-{{#time:n|now}}-{{#time:j|now}}|min_magnitude=days}}</nowiki></code> -> {{time ago|{{#time:Y|now}}-{{#time:n|now}}-{{#time:j|now}}|min_magnitude=days}} <code><nowiki>{{time ago|{{#time:Y|now+1 days}}-{{#time:n|now+1 days}}-{{#time:j|now+1 days}}|min_magnitude=days}}</nowiki></code> -> {{time ago|{{#time:Y|now+1 days}}-{{#time:n|now+1 days}}-{{#time:j|now+1 days}}|min_magnitude=days}} <code><nowiki>{{time ago|-0 years|min_magnitude=years}}</nowiki></code> -> {{time ago|-0 years|min_magnitude=years}} <code><nowiki>{{time ago|-0 months|min_magnitude=months}}</nowiki></code> -> {{time ago|-0 months|min_magnitude=months}} <code><nowiki>{{time ago|-0 hours|min_magnitude=hours}}</nowiki></code> -> {{time ago|-0 hours|min_magnitude=hours}} <code><nowiki>{{time ago|-0 minutes|min_magnitude=minutes}}</nowiki></code> -> {{time ago|-0 minutes|min_magnitude=minutes}} <code><nowiki>{{time ago|-0 seconds|min_magnitude=seconds}}</nowiki></code> -> {{time ago|-0 seconds|min_magnitude=seconds}} I think all these "0 X's ago"s are unnatural, like they seem very robotic or procedural. So I propose this template simply prints out "today" and "tomorrow". And for completeness, do "this year" for 0 years ago, "this month" for 0 months, etc. And then maybe "right now" for 0 seconds ago. <span style="color: #0645AD;">[[User:Brightgalrs|'''Brightgalrs''']] (/braɪtˈɡæl.ərˌɛs/)<sup>[[User talk:Brightgalrs|[ᴛ]]]</sup></span> 17:22, 31 December 2022 (UTC) :Closer to the programmer mindset is the complete omission of output in case of 0. What do the maintainers have to say ({{reply to|Mr._Stradivarius|Johnuniq|Thryduulf}})? [[User:Nxavar|Nxavar]] ([[User talk:Nxavar|talk]]) 14:37, 19 July 2024 (UTC) ::And even closer to the programmer mindset is leaving it as-in. Having no output would look even weirder. Take the [[Pope Benedict XVI]] example, you'd have "Died" and then an empty space in his infobox. <span style="color: #0645AD;">[[User:Brightgalrs|'''Brightgalrs''']] (/braɪtˈɡæl.ərˌɛs/)<sup>[[User talk:Brightgalrs|[ᴛ]]]</sup></span> 13:58, 20 July 2024 (UTC) :Perhaps something like "less than a (unit)" (with appropriate adjustment to the article for units starting with a vowel sound). [[User:Isaacl|isaacl]] ([[User talk:Isaacl|talk]]) 14:12, 20 July 2024 (UTC) ::Yeah that might be best. But I think you'd still get some weird things. For instance, imagine you set it to display years, and then someone dies, and you look at the article the same day. You'd get "Died" and then "Less than a year ago". Technically true, but extremely awkward, no one would ever say that. On the other hand, "this year" feels more universal - you could say that the day after someone died without any raised eyebrows. There's something with English semantics going on here, it's very hard to wrap my head around. <span style="color: #0645AD;">[[User:Brightgalrs|'''Brightgalrs''']] (/braɪtˈɡæl.ərˌɛs/)<sup>[[User talk:Brightgalrs|[ᴛ]]]</sup></span> 14:26, 24 July 2024 (UTC) :::The {{para|min_magnitude}} parameter can be set to days for that case. [[User:Isaacl|isaacl]] ([[User talk:Isaacl|talk]]) 14:33, 24 July 2024 (UTC) ::::My point is "this year", and the like, is a general case that would cover all cases, even ones that can't be foreseen. I've got birthdays on my mind since it's what sparked this whole discussion, but this template is used for many things. <span style="color: #0645AD;">[[User:Brightgalrs|'''Brightgalrs''']] (/braɪtˈɡæl.ərˌɛs/)<sup>[[User talk:Brightgalrs|[ᴛ]]]</sup></span> 12:26, 8 August 2024 (UTC) :::::@[[User:Brightgalrs|Brightgalrs]], I like the "this year" idea. It might also be possible to adjust the output based on the precision of the date you're given: If you're given the <nowiki>{{CURRENTYEAR}}</nowiki>, then zero produces an output of "this year", but if you're given the date down to <nowiki>{{CURRENTMONTH}}</nowiki>, then it's "this month", and a <nowiki>{{CURRENTDAY}}</nowiki>-level of precision could return "today". [[User:WhatamIdoing|WhatamIdoing]] ([[User talk:WhatamIdoing|talk]]) 04:27, 20 October 2024 (UTC) == Use of this template in article body text? == I just encountered this in the body of [[Valley Children's Stadium|an article]] for the first time. I had already spotted several [[WP:RELTIME]] problems in the article, so my first assumption before I opened it for editing was that this was another one (even though the math checked out): : ''FieldTurf was installed {{time ago|2011}} in the summer of 2011...'' I feel like using this template in this way is problematic; it's a little jarring to have the article be self-aware like this, and I'm guessing it will bug other RELTIME-aware editors. It's at the very least redundant -- yes, 2011 was indeed {{time ago|2011}}, tyvm for doing the math for me. Because of this I'd like to add something to the template doc discouraging its use in body prose (excluding well-defined areas such as infoboxes). Any objections? [[User:NapoliRoma|NapoliRoma]] ([[User talk:NapoliRoma|talk]]) 21:00, 23 November 2024 (UTC)
Summary:
Please note that all contributions to LarpOfHoi4 Wiki are considered to be released under the Creative Commons Attribution-NonCommercial-ShareAlike (see
LarpOfHoi4 Wiki:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Pages included on this page:
User:MiszaBot/config
(
edit
)
Template:Para
(
edit
)
Template:Parameter
(
edit
)
Template:Reply to
(
edit
)
Template:Talk header
(
edit
)
Template:Time ago
(
edit
)
Template:WikiProject banner shell
(
edit
)
Search
Search
Editing
Template talk
:
Time ago
Add topic