[go: nahoru, domu]

Jump to content

Template talk:Updated

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
WikiProject iconFootball Template‑class
WikiProject iconThis template is within the scope of WikiProject Football, a collaborative effort to improve the coverage of Association football on Wikipedia. If you would like to participate, please visit the project page, where you can join the discussion and see a list of open tasks.
TemplateThis template does not require a rating on Wikipedia's content assessment scale.

Unclear; doesn't work properly?[edit]

I've been trying this. Unless I'm making an obvious mistake, this template doesn't work properly, particularly if the date is omitted, and the format is unclear, {{updated|date|<ref>reference</ref>}}. I was expecting to enter "2015|11|8" or "date=2015|11|8" or "date=November 2015" or the like, but it seems to accept and display almost any text, which could be "8 November 2015", without any processing. And an empty date doesn't seem to work, either as {{updated||<ref>reference</ref>}} or {{updated|<ref>reference</ref>}}

{{updated|2015|11|8|<ref>reference</ref>}} ==>

As of 201511

{{updated|date=2015|11|8|<ref>reference</ref>}} ==>

As of 118

{{updated|Any old text|<ref>reference</ref>}} ==>

As of Any old text[3]

{{updated||<ref>reference</ref>}} ==>

As of [4]

{{updated|<ref>reference</ref>}} ==>

As of [5]

{{updated|date=November 2015|<ref>reference</ref>}} ==>

As of [6]

{{updated|date=1995}} (!!!)

As of (!!!)

This form obviously works, trivially:
{{updated|8 November 2015|<ref>reference</ref>}} ==>

As of 8 November 2015[7]

The template works for the current timestamp with no arguments (neither date nor ref):
{{updated}} ==>

As of

I don't see any advantage to using this template instead of {{As of|2015|11|8}}<ref>reference</ref> ==> As of 8 November 2015[8] ("As of" will mark the article as needing future updating, bjut that seems to make sense.)

So either I don't understand this, or it is rather useless; it needs either correcting or documenting.

Ignore

  1. ^ reference
  2. ^ reference
  3. ^ reference
  4. ^ reference
  5. ^ reference
  6. ^ reference
  7. ^ reference
  8. ^ reference

Pol098 (talk) 19:54, 8 November 2015 (UTC)[reply]

Space between the punctuation and ref tag[edit]

As you can see in the examples above there is in some cases a space between the punctuation and ref tag. According to Help:Footnotes#Footnotes: the basics, this should not happen. Could anyone who knows more about template code than I please fix that? --Jaellee (talk) 08:26, 19 October 2017 (UTC)[reply]

The example above (using |date=, which is invalid) puts the reference in the first unnamed parameter, which is supposed to contain the date. Using the template incorrectly will result in incorrect formatting.
That said, the examples above show the fundamental problem with using unnamed parameters; if one is missing, everything goes sideways. – Jonesey95 (talk) 08:16, 23 October 2018 (UTC)[reply]

No longer formatting correctly for American English?[edit]

It looks like the date no longer formats correctly for MDY? Seany91 (talk) 18:56, 19 June 2024 (UTC)[reply]

Always link to an example when reporting a problem. See {{Updated/testcases}} for various date formats. – Jonesey95 (talk) 05:42, 20 June 2024 (UTC)[reply]
It seems to have been changed when {{date}} was added to the template a month ago. SounderBruce 23:54, 24 June 2024 (UTC)[reply]
What has been changed? If you link to an example or add one to the test cases page, that will help. – Jonesey95 (talk) 19:12, 26 June 2024 (UTC)[reply]
Look at the MDY example in Template:Updated/testcases. The sandbox code is what the mainspace used to be before May 26, 2024. BLAIXX 17:52, 28 June 2024 (UTC)[reply]
Strange. When I set up the testcases page, I am pretty sure that it was showing the dates as they were input. Now they are all showing "15 June 2004", regardless of the input. I have reverted the latest change. – Jonesey95 (talk) 15:21, 29 June 2024 (UTC)[reply]