Page MenuHomePhabricator

Note defined outside <references> block disappears if referenced inside the references block
Open, LowPublic

Description

Test case:

Lorem ipsum<ref name="expl_A" group="n" />
similique sunt in culpa<ref 
                   name="expl_B" group="n" />
cognito ergo poof.{{#tag:ref|AAAAA
                  |group="n"|name="expl_A"}}
===Explanatory notes section===
<references group="n">
{{#tag:ref|Link to expl. A.<ref 
                   name="expl_A" group="n" /> 
|name="expl_B" |group="n"}}
</references>

Result: The note expl_A disappears. Instead, a spurious "error" message is emitted in its place. Invalid <ref> tag; no text was provided for refs named expl_A

Event Timeline

Izno raised the priority of this task from to Low.
Izno updated the task description. (Show Details)
Izno added a project: Cite.
Izno added subscribers: Aklapper, Meno25, Jackmcbarn and 5 others.

This can apparently be worked around by using the #tag form for <references>:

{{#tag:references|
...
|group="n"}}
Lorem ipsum<ref name="expl_A" group="n" />
similique sunt in culpa<ref 
                   name="expl_B" group="n" />
cognito ergo poof.{{#tag:ref|AAAAA
                  |group="n"|name="expl_A"}}
===Explanatory notes section===
{{#tag:references|
{{#tag:ref|Link to expl. A.<ref 
                   name="expl_A" group="n" /> 
|name="expl_B" |group="n"}}
|group="n"}}