Last modified: 2013-09-05 15:10:02 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T55794, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 53794 - Modify link text on group references e.g to remove blank
Modify link text on group references e.g to remove blank
Status: UNCONFIRMED
Product: MediaWiki extensions
Classification: Unclassified
Cite (Other open bugs)
unspecified
All All
: Low enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-09-05 09:33 UTC by csvfiles
Modified: 2013-09-05 15:10 UTC (History)
0 users

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description csvfiles 2013-09-05 09:33:26 UTC
Links to references on a group are created with the group name on them as [<groupname><blank><number>] (or in HTML, a link to the first reference to a group called "C" will be created as <sup id="cite_ref-1" class="reference"><a href="#cite_note-1">[C 1]</a></sup>)

I would like to be able to modify the way the link is generated (e.g to make [C 1] into [C1] to make references smaller, or into [C&nbsp;1] so the reference is not split up between lines)

The <sup> link is generated through the MediaWiki:cite_reference_link configuration page. The "C 1" part is the parameter $3. Note the blank between the group name (C) and the number of the reference (1).

On "Cite_body.php" there is a function named "linkRef" which calls this page and passes the three parameters it requires. The $3 is passed as: 

"$this->getLinkLabel( $label, $group, ( ( $group == CITE_DEFAULT_GROUP ) ? '' : "$group " ) . $wgContLang->formatNum( $label ) )"

I'm afraid the blank space in my "[C 1]" reference is hardcoded in this line. Can this be made into another parameter page, please?

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links