Page MenuHomePhabricator

make displaying reference group names optional
Open, LowPublic

Description

When reference group names are used, e.g.

content with a footnote<ref group="footnotes">some text</ref>
[...]
<references group="footnotes" />

the reference will show up as:

content with a footnote[footnotes 1]

(the square brackets are of course in superscript, I just don't know how to do this in the markup). See https://www.mediawiki.org/wiki/Extension:Cite#Grouped_references for the working example.
However, it is currently not possible to use the grouped references without having the group name in the reference text. A usecase for this could be to have the references grouped per paragraph or table.
This feature can be easily implemented by introducing a variable like $wgCiteShowGroupNames which is by default true, but users could overwrite it in the LocalSettings.php. Only if this variable is true, the name of the group is displayed.
A patch for those changes is attached.

Event Timeline

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

Hi @Frog23, thanks for taking a look at the code!

You are very welcome to use developer access to submit this as a Git branch directly into Gerrit.

Putting your branch in Git makes it possible to review it. If you don't want to set up Git/Gerrit, you can also use the Gerrit Patch Uploader. Thanks again!

On the English Wikipedia, I would use {{efn}}/{{notelist}} or a variant for this type of use.

I just submitted an updated patch into Gerrit, via the Gerrit Patch Uploader: https://gerrit.wikimedia.org/r/#/c/216698/ . It still needs to be verified, reviewed and accepted.
@Aklapper: thanks for the hint, I wasn't aware of the Patch Uploader.

Change 216698 had a related patch set uploaded (by Lewis Cawte):
Make displaying reference group names optional

https://gerrit.wikimedia.org/r/216698

Izno moved this task from Doing to Unsorted backlog on the Cite board.

Change 216698 abandoned by Thiemo Kreuz (WMDE):
Make displaying reference group names optional

Reason:
This patch is so old, I'm afraid it can not be applied on the current code any more. It's probably easier to redo it. The ticket is still open, so we won't forget about this idea.

Also there is a critical issue with this patch: with the group name turned off, multiple [1] will show up in the text that can not be distinguished any more.

https://gerrit.wikimedia.org/r/216698