Jump to content

2023年社群願望清單調查/模板選擇器改進

From Meta, a Wikimedia project coordination wiki
This page is a translated version of the page Community Wishlist Survey 2023/Template Picker Improvements and the translation is 79% complete.

概要

自2013年以來,志願者要求提供更直覺的模板選擇器,在模板對話框上顯示普遍或最常用的模板。Phabricator中的非詳盡搜尋也顯示了與類似問題相關的多個評論和解決方法:

儘管模板被用在數百萬個頁面上,例如資訊框被用在大約360萬個頁面上,但使用者仍然沒有一個簡單清楚的方法來為頁面新增模板。

As expected, the Community Wishlist Survey has received several requests around improving access to templates over the years. We want to help new and established editors see popular and recently used templates, and also bookmark their favorite templates.

因此,我們將與模板選擇有關的所有請求歸類至一個重點領域中,以解決這些問題。

此問題空間包括的願望

我們將共同實現4個願望:

這些願望分別在2023年社群願望清單調查中排名第5位和第11位,2021年排名第74位,2022年排名第85位。

總而言之,這個重點領域是關於模板選擇器的改進

重點領域提案者

以下是構成此重點領域的個別願望的提案者:

問題

As a beginner, one may spend half an hour finding the appropriate template – and if it doesn’t have an easy-to-remember name (what is easy-to-remember is subjective, so it may not be possible to find a name that’s easy to remember for everyone), one needs to spend this half hour the second, third and fifteenth time as well. [favoriting templates] doesn't solve the problem of the first half-hour search, but it does solve the ones of the subsequent ones

— 編輯者

當前的使用者體驗

當編輯者從wikitext或視覺化編輯器中點擊「模板」時,模板選擇器為空。這使得新手編輯者難以指出他們正在尋找的模板,也使得管理員在搜尋常用模板時非常麻煩。

當前的技術挑戰

There are two technical implementations of the template selector: in Visual Editor (VE), it is called the Template Dialog (MWTemplateDialog) and in the 2010 wikitext editor, it is called TemplateWizard.

Each implementation has a slightly different user experience, which may introduce complexities for our implementation. Ideally, all users will interact with a single template selector interface.

Both of the template selectors use the same backend to retrieve the metadata about templates: an extension called TemplateData, where the descriptions, parameter types, etc. are all stored and localized. Both selectors are also capable of operating without the other installed (i.e. either VisualEditor or TemplateWizard can be installed on their own, but neither can be installed without TemplateData). This has implications for where we can build a common user interface for template selection — it can’t be part of either of these extensions. It could perhaps be part of TemplateData, but this idea has been rejected in the past. A new extension could be created, or the required widgets/components added to MediaWiki core. (Adding to core isn’t without precedent: there are other widgets there that are not used in core.)

Another optional dependency is on CirrusSearch, which TemplateWizard uses if it’s installed (this doesn’t really change how things work from the user’s point of view though).

TemplateWizard is built pretty much entirely with OOUI. It is likely that we’d want to build the new common UI in Codex, and so we’ll have to decide whether that’s going to be inserting it into the existing system in TemplateWizard, or if it’s going to completely replace it.

工作範圍

目標

  • 志願者能開啟模板精靈,協助尋找常用的和最近使用的模板
  • 為視覺化編輯器和wikitext編輯器啟用此體驗
  • 允許使用者「收藏」經常使用的模板

成功指標

  • 提高條目或編輯的模板插入率
  • 增加插入模板的志願者數量

我們不做什麼

  • 幫助模板編輯者提供使用模板的更多背景或最佳實踐
  • 更改模板嵌入頁面後的運作方式
  • 更改使用者填寫或編輯模板的方式
  • 改進模板工具或模板文件
  • 幫助管理員「為其他使用者」選擇和介紹模板
  • 為行動版網頁或應用程式建立模板插入精靈

必要條件

  • When a contributor clicks the template icon, they should see a pop-up with suggested templates for the particular page, recent, and favorite templates.
    • Suggested templates should be based on either the user’s permissions, the page category, or popular templates for the wiki
  • When a contributor has successfully made an edit with a template, they should see the template in their recent templates list
  • When a contributor is viewing a template in the template selection pop-up, they should see the option to favorite a template
    • 使用者應能從收藏夾中移除模板