https://bugzilla.wikimedia.org/show_bug.cgi?id=21426
Summary: Allow nested <ref> blocks
Product: MediaWiki extensions
Version: any
Platform: All
OS/Version: All
Status: NEW
Severity: enhancement
Priority: Normal
Component: Cite
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
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!
--
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l