Page MenuHomePhabricator

The group argument to the references tag should be added as a class attribute
Closed, DuplicatePublic

Assigned To
None
Authored By
jeblad
Oct 19 2015, 5:38 PM
Referenced Files
None
Tokens
"Orange Medal" token, awarded by ManosHacker."Yellow Medal" token, awarded by geraki."Like" token, awarded by Tholme."Like" token, awarded by jhsoby.

Description

The tag <references /> takes a group argument like this; <references group="something" />. When used like this the generated ordered list should have a class (or other attribute like "role") that carries on this information. One solution could be to build a class "references-something", where "something" is the group name on an escaped form.

This change would make it possible to use standardized groups with specially crafted styles. One example vould be to use a "notes" group with counting in alpha-style instead of numeric-style as in the ordinary references.

Event Timeline

jeblad raised the priority of this task from to Needs Triage.
jeblad updated the task description. (Show Details)
jeblad added a project: Cite.
jeblad subscribed.
jeblad set Security to None.
jhsoby subscribed.
jhsoby unsubscribed.
jhsoby subscribed.

This would help removing the need for templates or using divs with css around the <references /> tag to distinguish notes from citations. Even editing with VE will be easier, and code will be more clear.

Change 991614 had a related patch set uploaded (by Jon Harald Søby; author: Jon Harald Søby):

[mediawiki/extensions/Cite@master] Add group name in data attribute to <references>'s html output

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