**Feature summary** (what you would like to be able to do and where):
I think it would be great time to aAdd a Dduplicate feature to references when editing with VEin VisualEditor.
{F57281443}
(new action is drawn in red-orange; I don'tdoesn't mean that color should actually be red-orange though :))
So what I'm pProposing is a new duplicate feature in VE thatsed works more or less like so:flow:
# VE-# Edit an article.
# Click on any ref. using VisualEditor
# Click on a new "Duplicate" action.ny reference
## If you selected <nowiki><ref name="abc"/> it would create a new ref with some new name: <ref name=":1">...content of name=abc...</ref></nowiki> Click on a new "Duplicate" action
### If you selected <nowiki><ref extends="Miller">Page 23.</refname="abc"/> it would create a new subref: <ref extends="Miller">Page 23.</ref></nowiki>
This would help me a lot and I also know other people that struggle with duplicating references (also for reasons other then subrefs/pages).
**Use case(s)** (list the steps that you performed to discover that problem, and describe the actual underlying problem which you want to solve. Do not describe only a solution):ref with some new name: <ref name=":1">...content of name=abc...</ref>
# I want to create a 2nd subref with different pages.**Use case(s)**:
* Use an existing reference as a "template" for creating a new one (e.g. when a user want's to re-use certain formatting styles)
# I want* Use an existing reference to create a 2nd ref to a different book of same author;similar (but not identical) reference, e.g. duplication would save me some work I think.different edition or page number
Currently to duplicate a reference you have to:
# Open another browser tab with a 2nd article.
# VE-Edit the 2nd article.
# Go back to original, 1st article.
# Copy from 1st to 2nd.
# Copy back from 2nd to 1st.
Current procedure is very hard to discover and even then it takes some setup to execute...
**Benefits** (why should this be implemented?):
Duplicating refs with VE* Changing only one instance of a re-used reference in VisualEditor is not possible currently (except when using the workaround described above)
* Duplicating references in VisualEditor could be much easier (and much, much more discoverable).
* Implementing a duplication feature will make referencing workflows easier for VisualEditor-users
So implementing this duplication will make it easier to add some of the references for all users using VE. And will also help in adoption of subrefs feature.**Other information**:
[[https://meta.wikimedia.org/wiki/Special:MyLanguage/WMDE_Technical_Wishes/Sub-referencing|Sub-referencing]] implemented a feature to address this need: {T406461} (and T406454)