Page MenuHomePhabricator

<ref> in template parameter exposes UNIQ string on preview
Open, MediumPublic

Description

In the infobox template for a region, inserting a ref in this variable:

area_rank = 212th<ref>Including [[Rose Atoll]] and [[Swains Island]]</ref>

Generates this preview output in the infobox:

(212thUNIQ92fb9323ed1577ec-nowiki-00000009-QINU1UNIQ92fb9323ed1577ec-nowiki-0000000A-QINU)

With 212th linked as expected, and the UNIQ...QINU string linked to "#cite_note-1" as expected. Tested on w:en:American_Samoa.


Version: 1.23.0
Severity: normal

Details

Reference
bz62996

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 2:56 AM
bzimport set Reference to bz62996.
bzimport added a subscriber: Unknown Object (MLST).
Sj created this task.Mar 24 2014, 6:25 AM

Template:Infobox country contains:

{{#if:{{{area_rank|}}} |&#32;([[List of countries and dependencies by area|{{{area_rank}}}]]) }}

So this looks like bug 25417.
You can bypass this by adding a new parameter maybe named area_rank_ref and add it behind the wikilink, if set.

Restricted Application added a subscriber: jeblad. · View Herald TranscriptNov 15 2018, 10:38 PM

Is this a duplicate of T37438: <ref> tag in templates causes UNIQ? Is this even a thing in current versions of MediaWiki?