Last modified: 2009-11-07 11:05:18 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 T23426, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 21426 - Allow nested <ref> blocks
Allow nested <ref> blocks
Status: RESOLVED DUPLICATE of bug 1310
Product: MediaWiki extensions
Classification: Unclassified
Cite (Other open bugs)
unspecified
All All
: Normal enhancement with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-11-07 11:03 UTC by Purodha Blissenbach
Modified: 2009-11-07 11:05 UTC (History)
2 users (show)

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


Attachments

Description Purodha Blissenbach 2009-11-07 11:03:35 UTC
Please allow the nesting of <ref> blocks. Possibly, restrict it to a depth of one
(althoug I think, programmatically, any depth is likely the same amount of work),
and possibly restrict it to grouped references (although I do not see a neceessity
from a programming standpoint of view) but these restrictions may make life easier
for readers.



The most important benefit that I see, and sincerly want to have, is the ability to have
multiple references to a single source object with individual annotations to each reference,
such as page numbers, e.g. while the source object is only defined once.



I give an example of what I would like to have.



Consider this wiki code:


----
start----
The arguments are:

* aa-0 <ref group="ref"> See page iii in <ref group="Lit" name="aa"> book aa </ref></ref>

* aa-1 <ref group="ref"> See page 123 in <ref group="Lit" name="aa" /></ref>

* bb-0 <ref group="Lit" name="bb"> book bb </ref>

* ss-0 <ref group="ref"> See section IV in this page</ref>

* aa-2 <ref group="ref"> See page 234 in <ref group="Lit" name="aa" /></ref>

* bb-1 <ref group="ref"> See page 123 in <ref group="Lit" name="bb" /></ref>

;References:<references group="ref" />

;Literature:<references group="Lit" />

----
stop----


The wikicode above should yield:


----
start----
The arguments are:

* aa-0 [ref 1]

* aa-1 [ref 2]

* bb-0 [Lit 2]

* ss-0 [ref 3]

* aa-2 [ref 4]

* bb-1 [ref 5]



References

 1. ^ See page iii in [Lit 1]

 2. ^ See page 123 in [Lit 1]

 3. ^ See section IV in this page

 4. ^ See page 234 in [Lit 1]

 5. ^ See page 123 in [Lit 2]



Literature:

 1. ^ book aa

 2. ^ book bb

----
stop----


If, depending on the actual parsing order, the references [Lit 1] and [Lit 2] were reversed (both by numbering and print order) I would not mind.



Thank you for your consideration!
Comment 1 Alexandre Emsenhuber [IAlex] 2009-11-07 11:05:18 UTC

*** This bug has been marked as a duplicate of bug 1310 ***

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


Navigation
Links