Jump to content

WMDE Technical Wishes/Sub-referencing/pt-br

From Meta, a Wikimedia project coordination wiki
This page is a translated version of the page WMDE Technical Wishes/Sub-referencing and the translation is 16% complete.
Outdated translations are marked like this.
Sub-referência
StatusEm andamento
OriginPesquisa de Aspirações Técnicas 2013, 2015, 2022 e outros
Focus areaFaça a reutilização de referências mais fácil
Phabricatorconselho de projeto
ResponsibleEquipe de Aspirações Técnicas

Diga-nos o que você acha

Nós convidamos você para testar nosso protótipo, o qual nós atualizamos continuamente. Apoie essa página ou inscreva-se nessa lista de mensagem para descobrir sobre novas coisas que você pode testar
Leia mais sobre testes e avaliação

Atualmente, não é possível reutilizar a mesma referência com detalhes diferentes de forma fácil em um artigo. Membros da comunidade têm solicitado repetidamente para a MediaWiki, soluções que funcionem sem modelos e sejam baseadas no modo que as referências existentes já funcionam, tanto para o wikitext quanto para o Visual Editor. » Entenda mais sobre o problema

As part of the focus area "Make re-using references easier", Wikimedia Deutschland’s Technical Wishes team is introducing Sub-referencing – an optional feature that allows you to easily attach different details to an existing reference without having to duplicate it.

Our plan is to bring Sub-referencing to the Wikimedia wikis in 2025.

Sub-referências em poucas palavras

Para citar uma fonte mais de uma vez com detalhes diferentes, você precisa de uma referência principal e uma subreferência.

  • A referência principal contém as principais informações bibliográficas.
  • A sub-referência contém os detalhes: qualquer tipo de informação adicional que seja diferente para cada uso, por exemplo o número da página, capítulo, versículo ou citação.
  • A sub-reference defines additional details, such as page numbers, chapters, verses, quotes, or video timestamps. In the screenshot, "1.1" and "1.2" followed by a page number represent two different sub-references.
sub-referencing – example


  • Na seção de referência, leitores veem todas as sub-referências agrupadas abaixo de sua referência principal. Isso torna mais fácil entender com que frequência uma única fonte foi citada naquele artigo.

In wikitext you use a new attribute to define the details of a sub-reference. It’s called details. See below for more information and examples.

No Editor Visual, estamos alterando a caixa de citação existente para que ela suporte sub-referências.

Principais benefícios

  • Sub-referencing is largely based on the existing way references work.
  • It's designed to work for both Visual Editor and wikitext.
  • A mudança será integrada ao MediaWiki, ficando disponível em todos as wikis da Wikimedia e podendo ser utilizada sem alterações nas predefinições.
  • Sub-references will be properly displayed in Reference Previews and mobile reference pop-ups.
  • É opcional: Você ainda pode usar outros métodos para referenciar. Mas poderá encontrar sub-referências em artigos escritos por outros usuários.
Por favor, diga-nos o que você acha. É importante que esse novo recurso não interrompa o trabalho dos usuários, seja intuitivo e funcione bem tanto no wikitexto quanto no Editor Visual, independentemente do seu nível de experiência ou conhecimento sobre wikitexto e predefinições. Para ter certeza disso, precisamos da sua opinião:

Como funciona

No wikitexto

A adição de sub-referências no wikitexto está quase pronta. No entanto, o nome do atributo pode mudar. A mudança ainda não foi implantada principalmente porque queremos evitar que os usuários do Editor Visual tenham uma experiência diferente. O suporte ao Editor Visual ainda está em desenvolvimento.

Benefícios específicos do wikitexto

  • A implantação é baseada no conceito existente e conhecido de nomear a referência.
  • Não requer nenhum conhecimento de predefinições.
  • Referências quase duplicadas podem ser removidas do wikitexto, tornando-o mais limpo, menos redundante e mais fácil de ler.

 


 

How to use Sub-referencing in wikitext

1) Define a Main Reference

Before creating sub-references, you need a main reference that contains the full bibliographic information. This reference must be assigned a name:

<ref name="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.

2) Creating a Sub-reference for Inline References

If the main reference is inline, you can create a sub-reference in two ways using the details 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 -->
<ref name="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: -->
<ref name="Miller" details="Page 48." />

Example Usage:

According to scientists, the Sun is pretty big. In fact, it is very big.<ref name="Miller" details="Page 23.">E. Miller, ''The Sun''. New York: Academic Press, 2005.</ref> Take their word for it.<ref name="Miller" details="Page 48." />

== References ==
{{reflist}} <!-- or <references /> -->

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): -->
<ref name="Miller">E. Miller, ''The Sun''. New York: Academic Press, 2005.</ref>
<!-- New sub-references: -->
<ref name="Miller" details="Page 23." />
<ref name="Miller" details="Page 48." />

Example Usage:

According to scientists, the Sun is pretty big. <ref name="Miller">E. Miller, ''The Sun''. New York: Academic Press, 2005.</ref> In fact, it is very big.<ref name="Miller" details="Page 23." /> Take their word for it.<ref name="Miller" details="Page 48." />.

== References ==
{{reflist}} <!-- or <references /> -->

3) Create Sub-References for List-Defined References

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 -->
<ref name="Miller" details="Page 23." />

<!-- The list-defined reference stays unchanged: -->
<references>
<ref name="Miller">E. Miller, ''The Sun''. New York: Academic Press, 2005.</ref>
</references>

Example Usage:

According to scientists, the Sun is pretty big. In fact, it is very big.<ref name="Miller" details="Page 23." /> Take their word for it.<ref name="Miller" details="Page 48." />

== References ==
<references>
<ref name="Miller">E. Miller, ''The Sun''. New York: Academic Press, 2005.</ref>
</references>

4) Reusing an Existing Sub-reference

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:

<ref name="Miller" details="Page 23." />
  • Please note that while this is not a pure reuse like you are used to with main references and does create duplicates in wikitext, in the reader and Visual Editor view, identical statements will be merged to prevent unnecessary duplication in the rendered output. This is still work in progress.
  • The same re-use statement applies for list-defined and inline main references.
  • Tip: Copying and pasting an existing sub-reference statement remains a simple and recommended approach.

Example Usage for Reuse of Inline References:

According to scientists, the Sun is pretty big.<ref name="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.<ref name="Miller" details="Page 48." /> Don't look directly at the sun!<ref name="Miller" details="Page 23." />
== References ==
{{reflist}}

Example Usage for Reuse of List-defined References:

According to scientists, the Sun is pretty big.<ref name="Miller" details="Page 23." /> In fact, it is very big. Take their word for it.<ref name="Miller" details="Page 48." /> Don't look directly at the sun!<ref name="Miller" details="Page 23." />
== References ==
<references>
<ref name="Miller">E. Miller, ''The Sun''. New York: Academic Press, 2005</ref>
</references>

Keep In Mind


  • Remember to always specify a reference name when using the details attribute. Using a reference name allows others to easily re-use the same reference with different details without needing to define a name first.
  • Sub-referencing is not reserved for page numbers only. You can use it for other use cases, too. Some editors have mentioned to us that they’d like to use it for podcast timestamps, URLs, poetry verses, quotes, and other details.
  • If you wish to use quotation marks " within details="…" (e.g. when inserting a quote), make sure to use &quot; instead, or delimit the details with single quotes. Visual Editor 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 with details="…" are < and >.
  • Some gadgets/scripts related to references might also need an update in order to properly work with the new sub-referencing solution.
  • When using sub-references, please avoid templates that produce <ref> tags, as these cause issues in Visual Editor which we cannot solve at this point in time.


In Visual Editor (in development)

We are actively refining the user experience and workflows for Sub-referencing in Visual Editor. Currently, there is one entry point via the “re-use” tab for creating a sub-reference, but the solution for Visual Editor is expected to evolve in the coming months.

You can also test the prototype with the current state of the Visual Editor solution. Please keep in mind that it will likely change. As always, we will keep you and these project pages updated as Visual Editor gains more capabilities and let you know when we need your feedback!

Benefits specific to Visual Editor

  • To cite the same source with different details, you no longer have to create a new reference from scratch.
  • Sub-references are designed to be fully compatible with Visual Editor (as opposed to template-based workarounds). You can create them via the citation dialog and you can edit them from within the references section.

 


 

Workflows in the current prototype (likely to change)

Creating a sub-reference

  • Creating a sub-reference currently works via the existing citation dialog.
  • In the "re-use" tab, select the reference you want to re-use via the three dots and click "re-use this reference with additional details".
  • Enter the details of that sub-reference and click insert.
    400
  • The reference popup in Visual Editor shows you that this reference is a sub-reference, and how often it is re-used.

Editing an existing sub-reference

  • Click on the footnote marker in the article text to edit a sub-reference.
  • You can now change the details of the sub-reference. You are also informed that it is a sub-reference.
  • You cannot edit a sub-reference from the reference list yet.
  • To edit the main reference, click on it in the references section.

Re-using a sub-reference

  • You can re-use a sub-reference using the "re-use" tab in the citation dialog.

Please note

  • The existing behavior of creating automatic names for references in Visual Editor also occurs with sub-referencing.
  • We are actively working on creating an even more intuitive user experience for Visual Editor. What you see now is just the beginning, it will be refined and improved over time.
  • We have yet to work on what happens when you delete a reference that is being re-used.
  • Currently, if you re-use a sub-reference it will show as a duplicate in the reference list. Once the Visual Editor's UX has evolved, the duplicates will automatically be merged in Visual Editor and the reader view.


 Test the prototype

We need your feedback to make sure we build the right things. Feedback or questions are always welcome on this project’s talk page.

The prototype is available on beta wiki. Currently, we primarily invite you to test the wikitext solution:

Test on beta wiki Leave feedback


Please note that beta wikis are a bit different from your regular wiki:
  • They might look different (e.g. not use your preferred skin).
  • They might offer some new features that are still being tested.
  • They only contain some test pages and templates, not your entire wiki’s content, and not all the templates, modules, gadgets etc. you are used to.
  • Your regular Wikimedia login doesn’t work on beta wikis. You can either register an account – make sure to use a different password than your regular Wikimedia account – or test the feature without an account, which will lead to the creation of a temporary account (on the Beta Cluster German Wikipedia), or display your IP address (on the Beta Cluster English Wikipedia).

The problem we are solving

In Wikipedia articles, it's common to reference a source multiple times. But while you can re-use a reference exactly as it is, you currently cannot re-use the same reference with different details (e.g. different page numbers). Your only option is to create a whole new reference or to use workarounds.

Status quo: Re-using references in wikitext and Visual Editor

If you want to re-use a reference in wikitext, you can turn it into a named 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 Visual Editor you can use the option "re-use" in the citation dialog. In the references section, references with the same name are grouped together.

Status quo: Re-using references with different details in wikitext

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 like short citations or template-based solutions like shortened footnotes. In the references section, the original reference and the new one you created are not grouped together.

Status quo: Re-using references with different details in Visual Editor

If you want to re-use an existing reference with different details in Visual Editor, neither the option "re-use" in the citation dialog nor the copy-and-paste method will work, because both lead to identical re-uses, and changing details of the re-used/copied reference changes both 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}}:

Problems for readers

Template-based workarounds are not properly displayed in Reference Previews, Reference Tooltips and mobile reference pop-ups.

{{sfn}} workaround with previews for references:

Main problems with the status quo

  • The experience of Visual Editor and wikitext users is very different.
  • Most workarounds for reusing references with different details don’t work properly in Visual Editor.
  • Creating lots of almost identical references with different details makes the wikitext longer and potentially harder to read.
  • Template-based workarounds are not equally accepted by all communities and thus not globally available.
  • Some users try to avoid this issue by putting sources in the bibliography section without using them as references at all, which makes it harder to verify sections of the article.

Mudanças recentes e próximos passos

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 March 2025

  • Green tickY In 2024 we worked on a prototype for discovery and testing purposes based on the extends syntax and engaged with the community through multiple on-wiki communications, user testing sessions, and workshops in different venues, including Wikimania 2024.
  • Green tickY In October/November 2024, we explored possible changes to our wikitext approach, based on the community feedback we've received. We reached out to communities and presented a new solution to get their feedback on its usability. We found that the feedback was mixed but nothing spoke against the feature bringing its intended value to the community.
  • Green tickY In 2025, we started the development of the new syntax. The engineers and designer of the Technical Wishes team are working on building out Sub-referencing.

Next Steps

The Technical Wishes team’s focus remains on completing the sub-referencing feature.

  • We’ll update you continuously as the feature evolves on the betawiki and we need you to test it.
  • Conducting user testing sessions with community members to help us with intuitively designing the Visual Editor workflows.
  • Once the development has reached a stable state, we will reach out to Pilot wikis to plan deployments.
  • We are planning to deploy the sub-referencing feature to other Wikimedia wikis in 2025.
  • We will continue to collect feedback to improve the solution after deployment.

We are aware of other 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

  • Green tickY A prototype is available on beta wiki. It covers the wikitext solution and some of the basic features of the Visual Editor solution. You can continuously test the prototype and give feedback.
  • Green tickY We've sent out announcements across all wikis to let communities know about this upcoming feature, and have invited them to test and give feedback.
  • Green tickY Our team presented Sub-referencing at Wikimania 2024 and discussed with participants. (YouTube)
  • Green tickY Moderated users tests took place across different projects in 2024.
  • As of October/November 2024, we are currently exploring possible changes to our wikitext approach, based on the community feedback we've received. We'll reach out to communities soon to get more feedback on possible changes to the Sub-referencing feature.
  • Pilot wiki deployment is stalled, pending discussions and potential changes to our feature.
  • We are planning to deploy the Sub-referencing feature to other Wikimedia wikis in 2025.
  • We will continue to collect feedback to improve the solution after deployment.


Frequently Asked Questions

Como posso encontrar artigos que usam sub-referências?

A tracking category called Category: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 created a number of examples on the English betawiki.

Can I insert a template into the details attribute?

The feedback we received so far from the community suggests that using templates in an attribute may cause more issues than benefits. As such, we are evaluating whether to allow templates based on technical feasibility, their impact on Visual Editor’s rendering of references, and other concerns raised by contributors.

We will update you once we have learned more and a decision has been made. Please know that we will always include the community before such a decision is made. If you already have specific ideas about the use of templates within the details attribute, please let us know on our talk page.

How will the new feature affect existing gadgets and scripts?

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.

Por que essa opção foi escolhida para o wikitexto?

This post provides a rationale for choosing the details 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 Visual Editor.

Furthermore, we’re confident that this approach will work consistently across Visual Editor workflows as well.

Por que demorou tanto para encontrar uma solução?

A equipe de Desejos Técnicos trabalhou nesse recurso de vez em quando por muitos anos. Se você quiser saber mais, aqui está uma visão geral do histórico e da complexidade desse problema.