改進視覺化編輯的引用自動命名和重複使用 (Community Wishlist/W17/zh)
Appearance
Long-term opportunity
Description
目前,視覺化編輯器中的引註被分配一個數字作為引註名稱(「name」)。這會給原始碼編輯器帶來以下問題:
- 複製貼上到另一篇條目時,引註名稱可能會重複,從而導致錯誤。 更糟的是,其中的一些錯誤會被忽視。
- 閱讀條目原始碼時,你無法得知使用的是哪個參考來源。
- 比詳細錯誤更糟糕的是無聲錯誤。舉例來說,如果
<ref name=":1"/>存在,則將其從一篇條目複製到另一篇條目則會失敗。上述情況更容易在使用數字遞增時發生。 - 如果未解決引註的重新命名問題,子引用提案之WMDE技術願望/子引用將重現相同的混淆與限制。無論對常規引用實施任何解決方案,也應該將子引用共同納入考量。子引用的發展不該是這裡的障礙。
自動使用lastname_year或publisher_year參數值會是個更好的系統,如果參數存在的話;如果參數不存在,則使用合理的備援選項。這將減少視覺化編輯器使用者與原始碼編輯器使用者之間的衝突。 這是2023年願望清單的第6高票願望。
Assigned focus area
Type of wish
System change
Tags
Affected users
編輯者
Phabricator tasks
Other details
Voting
This wish currently has 12 supporters. Voting for this wish is open until it is completed.
Supporters of this wish
Support Matěj Suchánek (talk) 18:49, 9 October 2025
Support even just basic heuristics would seem to work well here BrokenSegue (talk) 02:33, 14 October 2025
Support Even just allowing the user to manually enter a name would be a huge improvement. Nardog (talk) 10:08, 22 October 2025
Support better default names would immediately reduce bugs. Allowing editing of name in VE would be ideal, but require names to be updated elsewhere then Shushugah (talk) 05:11, 20 November 2025
Support Generally agreed. Look at the RefRenamer script on enwiki as both a viable approach to ref naming and as a great way to fix these enumerated ref names today. StefenTower (talk) 04:41, 21 November 2025
Support this is one of multiple things to improve regarding automatic ref names – see related wish W440:Unique and useful automatic reference names instead of ref name=":1" etc which lists additional issues alongside this, which is specific to the VisualEditor that most active editors usually don't use Prototyperspective (talk) 12:41, 21 November 2025