User:Dan Pelleg/Sandbox/Nested refs
A reflist containing both a plain ref tag and a "magic word" ref tag with a nested ref tag in it works if the ref-in-a-ref is listed before the plain ref, and doesn't work if the ref-in-a-ref is listed after the plain ref (see table). Anyone know why? Is this a consistent feature? Should it be offered as a tip on a help page?
class=wikitable
!colspan=2|This works: |
text
text. ;Reflist, nested ref listed first:{{reflist|group=nested_first|refs= → {{#tag:ref|With nested referencecontent of nested reference |name=n1|group=nested_first}}}} ;Nested refs: {{reflist}} |
|
colspan=2|This not: |
---|
text
text. ;Reflist, nested ref listed second:{{reflist|group=nested_second|refs= → {{#tag:ref|With nested referencecontent of nested reference |name=n4|group=nested_second}}}} ;Nested refs: {{reflist}} |
|
See also
- Wikipedia:Nesting footnotes#5. List-defined references
- {{Phab|T22707|art=y}}, in [https://phabricator.wikimedia.org/T22707#258959 this comment of Aug 13, 2010]