Page MenuHomePhabricator

make displaying reference group names optional
Open, LowPublic


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 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 created this task.Mar 30 2015, 2:19 PM
Frog23 raised the priority of this task from to Low.
Frog23 updated the task description. (Show Details)
Frog23 added a project: Cite.
Frog23 added a subscriber: Frog23.
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptMar 30 2015, 2:19 PM

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.

Frog23 added a comment.Jun 8 2015, 2:33 PM

I just submitted an updated patch into Gerrit, via the Gerrit Patch Uploader: . 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

Izno moved this task from Unsorted backlog to Doing on the Cite board.Feb 20 2016, 3:04 AM
Izno moved this task from Doing to Unsorted backlog on the Cite board.