Template talk:Updated

Latest comment: 5 years ago by Jonesey95 in topic Space between the punctuation and ref tag
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