Page MenuHomePhabricator

<references /> list without any <ref> items should trigger a warning
Open, LowestPublic

Description

When having <references /> or <references group="foo" /> on page where there is no <ref> or <ref group="foo">, it silently ignores the <references /> tag, while it should trigger and display an error like "Missing <ref> tag for <references />" or "Missing <ref> tag in group "foo" for <references group="foo" />".

Event Timeline

Danny_B raised the priority of this task from to Needs Triage.
Danny_B updated the task description. (Show Details)
Danny_B added a project: Cite.
Danny_B subscribed.

Are you sure this is a regression? This sounds like a sensible feature request, but I'm afraid it has always been this way.

It used to be this way two years ago as you can read in the linked task.

Hmm, that seems different, though? That is about <ref> without <references>. This is about <references> without <ref>. (Or should I read the tasks more closely?)

To have reference list inserted automatically = to have <ref> without
<references />. Previously there was a warning and no category (which could
be hacked though), now there is neither. I have linked the task because I'm
not sure about merging them.

It also seems to me that the linked task is the opposite configuration of missing code.

This is about when you have <references /> present in page wikitext, but don't have any <ref> there (aka the references list is empty).

OTOH I am also pretty sure that this is a regression as I wrote in my original description.

Cenarium triaged this task as Lowest priority.Feb 26 2016, 5:02 PM
Krinkle renamed this task from <references /> without any <ref> on page does not trigger/display an error to <references /> list without any <ref> items should trigger a warning.May 11 2021, 8:32 PM