| Sub-referencing | |
|---|---|
| Status | In progress |
| Origin | Technical Wishes survey2013,2015,2022 andothers |
| Focus area | Make reusing references easier |
| Phabricator | project board |
| Responsible | Technical Wishes Team |
Tell us what you think We invite you totest our prototype, which we update continuously.Watch this page orsign-up to this massmessage list to learn about new things you can testRead more about testing and feedback | |
Currently, it's not possible to easilyre-use the same reference with different details in an article. Community members have repeatedly requested a MediaWiki solution that works without templates and is based on the existing way references work, for both wikitext and VisualEditor.» Learn more about the problem.
As part of the focus area "Make re-using references easier",Wikimedia Deutschland’s Technical Wishes team is introducingSub-referencing – an optional feature that allows you to easily attach different details to an existing reference without having to duplicate it.
Sub-referencing is deployed to German Wikipedia as of September 2025. Our plan is to bring sub-referencing to the other Wikimedia wikis in 2025 and 2026.
To cite a source more than once with different details, you need a main reference and a sub-reference.

details. See below for more information and examples.
The wikitext solution for sub-referencing can betested on the beta cluster. Benefits specific to wikitext:
Before creating sub-references, you need a main reference that contains the full bibliographic information. This reference must be assigned aname:
<refname="Miller">E. Miller,''The Sun''. New York: Academic Press, 2005.</ref>
This main reference can either be defined in-line (within the article text) or in the reference section.
If the main reference is inline, you can create a sub-reference in two ways using thedetails attribute:
Option 1: Modify the main reference to include additional details (e.g. a page number)
<!-- Add the details attribute directly to the <ref> tag --><refname="Miller"details="Page 23.">E. Miller,''The Sun''. New York: Academic Press, 2005.</ref><!-- As a next step, you can add another sub-reference using the following statement: --><refname="Miller"details="Page 48."/>
Example:
According to scientists, the Sun is pretty big. In fact, it is very big.<refname="Miller"details="Page 23.">E. Miller,''The Sun''. New York: Academic Press, 2005.</ref> Take their word for it.<refname="Miller"details="Page 48."/>== References ==<references/><!-- or {{reflist}} --> |
Option 2: Insert one or more separate sub-references directly within a new in-line statement while keeping the main reference intact.
<!-- Unchanged main reference (in-line): --><refname="Miller">E. Miller,''The Sun''. New York: Academic Press, 2005.</ref><!-- New sub-references: --><refname="Miller"details="Page 23."/><refname="Miller"details="Page 48."/>
Example:
According to scientists, the Sun is pretty big.<refname="Miller">E. Miller,''The Sun''. New York: Academic Press, 2005.</ref> In fact, it is very big.<refname="Miller"details="Page 23."/> Take their word for it.<refname="Miller"details="Page 48."/>== References ==<references/><!-- or {{reflist}} --> |
If the main reference is stored in the<references> tag or within{{reflist}} (or similar templates), you don't need to redefine it in-line. Instead, simply use the following syntax in-line:
<!-- Add this directly to the chosen location in the article text --><refname="Miller"details="Page 23."/><!-- The list-defined reference stays unchanged: --><references><refname="Miller">E. Miller,''The Sun''. New York: Academic Press, 2005.</ref></references>
Example:
According to scientists, the Sun is pretty big. In fact, it is very big.<refname="Miller"details="Page 23."/> Take their word for it.<refname="Miller"details="Page 48."/>== References ==<references><refname="Miller">E. Miller,''The Sun''. New York: Academic Press, 2005.</ref></references> |
Once a sub-reference has been defined, you can reuse it in multiple places without redefining the main reference. Simply repeat the same reference syntax in-line:
<refname="Miller"details="Page 23."/>
Example – reuse of inline sub-references:
According to scientists, the Sun is pretty big.<refname="Miller"details="Page 23.">E. Miller,''The Sun''. New York: Academic Press, 2005</ref> In fact, it is very big. Take their word for it.<refname="Miller"details="Page 48."/> Don't look directly at the sun!<refname="Miller"details="Page 23."/>== References ==<references/><!-- or {{reflist}} --> |
Example – reuse of list-defined sub-references:
According to scientists, the Sun is pretty big.<refname="Miller"details="Page 23."/> In fact, it is very big. Take their word for it.<refname="Miller"details="Page 48."/> Don't look directly at the sun!<refname="Miller"details="Page 23."/>== References ==<references><refname="Miller">E. Miller,''The Sun''. New York: Academic Press, 2005</ref></references> |
Edit the reference which is supposed to become the new main reference by moving details like page numbers to the newdetails="…" attribute. Replace similar references with sub-references.
Example: Wikitext without sub-references:
According to scientists,<refname="Miller">E. Miller,''The Sun''. New York: Academic Press, 2005. Page 23.</ref> the Sun is pretty big.<ref>E. Miller,''The Sun''. New York: Academic Press, 2005. Page 30.</ref> In fact, it is very big.<ref>E. Miller,''The Sun''. New York: Academic Press, 2005. Page 35.</ref> Take their word for it.<ref>E. Miller,''The Sun''. New York: Academic Press, 2005. Page 48.</ref> Don't look directly at the sun!<refname="Miller"/>== References ==<references/><!-- or {{reflist}} --> |
Example: Wikitext once references are converted to sub-references
Note that the first reference has been converted to a main reference (including details), the other references have been converted to sub-references. Later iterations of sub-referencing will automatically merge both "Page 23." sub-references as a re-use in the reader's view.
According to scientists,<refname="Miller"details="Page 23.">E. Miller,''The Sun''. New York: Academic Press, 2005</ref> the Sun is pretty big.<refname="Miller"details="Page 30."/> In fact, it is very big.<refname="Miller"details="Page 35."/> Take their word for it.<refname="Miller"details="Page 48."/> Don't look directly at the sun!<refname="Miller"details="Page 23."/>== References ==<references/><!-- or {{reflist}} --> |
It is possible to usenested footnotes with sub-referencing. Multi-level nesting will probably work as well, although it's not actively supported.
Example: Nesting sub-references using{{refn}}
According to scientists, the Sun is pretty big.<refname="Miller"details="Page 23.>E. Miller,''The Sun''. New York: Academic Press, 2005.</ref> In fact, it is very big.{{refn|group="notes"|Some scientists disagree.<refdetails="Page 30."name="Miller"/>}} Take their word for it.<refname="Miller"details="Page 48."/>.== Notes ==<referencesgroup="notes"/>== References ==<references/> |

" withindetails="…" (e.g. when inserting a quote), make sure to use" instead, or delimit the details with single quotes. VisualEditor users will be able to type " when filling out sub-reference details and it will be converted automatically in wikitext. Other special characters which might need to be handled similarly when used withdetails="…" are< and>.<ref> tags, as these cause issues in VisualEditor which we cannot solve at this point in time.The VisualEditor implementation for sub-references can betested on the beta cluster. Some details still need to be fixed, other features might evolve after after pilot wiki deployment. Benefits specific to VisualEditor:
We've decided to remove the option to create sub-references via the "re-use" tab in the citation dialog for our pilot wiki release, because our user testing indicated it's not very intuitive. We will gather additional feedback after the pilot wiki deployment to check if we should add the option again in later iterations (and if so, how we can improve it).![]()
We need your feedback to make sure we build the right things. Feedback or questions are always welcome on this project’stalk page or by directly booking a call with our User Researcher. The prototype is available on beta wiki.
Test on beta wikiLeave feedbackBook a call

Subreferencing is now ready in Wikitext and VisualEditor and deployed to German Wikipedia to gain new insights for future improvements. Some of our next steps:
name=... anddetails=... (phab:T389363,phab:T403379,phab:T404089).{{Reflist}} which we need to solve before deploying to projects using similar templates.In Wikipedia articles, it's common to reference a source multiple times. But while you can re-use a referenceexactly as it is, you currently cannot re-use the same reference withdifferent details (e.g. different page numbers). Your only option is to create a whole new reference or to use workarounds.
If you want to re-use a reference in wikitext, you can turn it into anamed reference and refer to that name at another point in the article. The named reference can be placed in the article text or in the references section. In VisualEditor you can use the option "re-use" in thecitation dialog. In the references section, references with the same name are grouped together.
If you want to re-use an existing reference with different details in wikitext, you currently need to copy and paste the existing reference and change the details of the duplicate or create a new (almost identical) reference from scratch. Some projects use workarounds likeshort citations or template-based solutions likeshortened footnotes. In the references section, the original reference and the new one you created are not grouped together.
If you want to re-use an existing reference with different details in VisualEditor, neither the option"re-use" in the citation dialog nor the copy-and-paste method will work, because both lead toidentical re-uses, and changing details of the re-used/copied reference changesboth instances of that reference. Instead you’ll need to create a new (almost identical) reference from scratch. In the references section, the original reference and the new one you created are not grouped together.
References created by template-based workarounds like{{sfn}} cannot be edited from within the references section and don’t appear in the citation re-use tab; but it is possible to edit them manually when locating them in the article text.
workaround with{{sfn}}:
Template-based workarounds are not properly displayed inReference Previews,Reference Tooltips and mobile reference pop-ups.
{{sfn}} workaround with previews for references:
Our team has worked on this problem on and off for some time now.Here is an overview of this project’s history, including our research.
Thank you to everyone who participated in tests and interviews and who showed interest, as well as everyone who took the time to comment on our talk pages over the years. It is deeply appreciated. If you have further feedback, please share it on the talk page.
Updates
Next Steps
The Technical Wishes team’s focus remains on completing the sub-referencing feature.
We are aware ofother problems in the focus area "reusing references", and we will try to address them along the way. Our focus, however, remains on creating a solution for sub-referencing.
Archived updates from 2024
A tracking category calledCategory:Pages that use sub-references is added to any page where sub-referencing is used, allowing you to explore or fix pages using the new feature. The name of this category might change.
Also, the team has createda number of examples on the English betawiki.
details attribute?Yes, you can insert templates in both the main- and the sub-reference. We've initially received feedback suggesting that using templates in an attribute may cause more issues than benefits. Other users explicitly wished for template support, especially in visual editor. Please share your thoughts on sub-references and templates on thetalk page.
Some gadgets and scripts related to references might need an update in order to properly work with the new sub-referencing solution. Because gadgets and scripts are in the hands of the wiki communities, we are unable to adapt them.
Please let us know, on the talk page, if you discover any problems or need some help updating citation templates to make them work with the new feature.
Thispost provides a rationale for choosing thedetails syntax. We believe that the best and quickest path to delivering a usable feature is through the chosen syntax, even though it does come with some limitations.
Historically, no syntax has been perfect, and each solution has its shortcomings. After long discussions and consultations with multiple teams at the Wikimedia Foundation, we've concluded that this solution meets our technical requirements and is sustainable for long-term maintenance.
It's also fully compatible with wikis that continue to rely on or prefer using{{reflist}}. This syntax allows the main reference to be used in-line without needing to be placed in the References section, which would otherwise cause limitations in the VisualEditor.
Furthermore, we’re confident that this approach will work consistently across VisualEditor workflows as well.
The Technical Wishes team has worked on this feature on and off for many years. If you want to know more, here’s anoverview of the history and complexity of this problem.