Talk:Community Wishlist/Focus areas/Template recall and discovery

Latest comment: 2 days ago by PerfektesChaos in topic Smart searching
This page is for discussions related to the Community Wishlist/Focus areas/Template recall and discovery page.

  Please remember to:

Notifying focus area contributors

edit

Hello @TheDJ, @Elilopes, @Steven Sun, @Omar.idma, @Adam Cuerden, earlier this year we notified you that the wishes you submitted to the Wishlist would be bundled into project called the Template Picker Improvements project as an example of a focus area for the Wishlist that would be launched.

The project has now been posted on the new Community Wishlist as Template recall and discovery focus area. Please visit the focus area page for the latest information.

Thank you –– STei (WMF) (talk) 12:16, 10 September 2024 (UTC)Reply

Replacement for User Message gadget

edit

The design mockups look like this would not only be nice for the article namespace but could also be a good replacement for the commons:Help:Gadget-UserMessages for putting templates on user talk pages. The UI of this gadget is outdated and favorites would be a very nice feature. GPSLeo (talk) 18:32, 13 September 2024 (UTC)Reply

Thanks @GPSLeo - for now, we are focused on the core experience of templates in the dialog. We could share some patterns with the developers interested in updating commons:Help:Gadget-UserMessages. JWheeler-WMF (talk) 19:55, 13 September 2024 (UTC)Reply
With core experience you mean article namespace on Wikipedia? I think the main difference is the list of templates they are suggested. And differentiation of the templates is needed anyways as you do not want the message templates suggested in article namespace. GPSLeo (talk) 04:53, 14 September 2024 (UTC)Reply
Our scope is limited to updating the dialog to help people find and insert templates. If there's appetite to leverage the UI for the UserMessages gadget, it'd be up to the team/individuals responsible, or I'd suggest writing a new wish! JWheeler-WMF (talk) 21:21, 16 September 2024 (UTC)Reply

Types of templates

edit

It seems that the template model being demonstrated here is a big and flashy thing like an infobox. I'm not sure that that's the thing people are most interested in adding (that is, with highest frequency, for new editors and/or those using the VE). Although it is a template with a lot of variations, and subtemplates with inheritance, having a menu selection for any type of editor would help its usability immensely -- and there are a couple other templates that are like that as well (mostly I can think of text formatting variants used in talk and documentation pages like ((tl))+x).

But for what I'd want to see new editors use, and what I have to look up most frequently (syntax especially), are inline markup templates such as ((ill)), ((units)), ((lang)), ((daterange)), etc.. When not templated, this stuff can also be the most difficult to patrol for automatically or even with a quick eye scan. You all have done a great job I think of getting new editors to use citation templates, so these other inline templates I think are also very valuable to encourage and would be a good design goal. (Hopefully there's also a complementary essay on the common necessary templates and how to use them, and if not we should mock one up.) SamuelRiv (talk) 18:38, 13 September 2024 (UTC)Reply

Thank you for sharing this @SamuelRiv. Could you share a bit more about your workflows as you're patrolling in this context? My hunch is that you should consider writing a wish to help patrollers coach editors to use inline markup templates. JWheeler-WMF (talk) 19:56, 13 September 2024 (UTC)Reply
As an example article I'm reading like w:Asteroid, you can see several of the major templates I listed above (plus ((convert)) and ((as of)) and also maintenance tags beyond citation needed)).) (Stuff like nbsp and nowrap may be a bit too esoteric, and are hid anyway with the VE.) Untemplated units and dates conversion can be detected on AWB fairly easily; untemplated foreign pronunciations are possible but more cumbersome, especially names -- people aren't running these scripts now, but we can do it. But placing the ((asof))/((when)) family and the inline ((citation needed))/((fv))/((bsn)) family of tags is not possible with current automated tools. I find the former improve maintenance; not sure if the latter tagging actually improves reader or editor outcomes (I can't find WMF or outside research on that, only the research on readers following citations in general).
For my workflow as an editor, I use exclusively the source editor. Nonetheless I find essential something like ProveIt to plug in a doi or url to populate fields in that editor. I've also liked the template editing features so far of the VE -- I always find myself having to look up documentation of template parameters each time, but the VE interface makes the process a lot more sane. SamuelRiv (talk) 07:25, 15 September 2024 (UTC)Reply
Thanks @SamuelRiv - for this MVP, we're focused on the users who primarily use the VE template dialog, where we see 5,000 users engage daily, compared to 800 on source editor. This is especially interesting given that source editor is responsible for 2x more edits than VE. While it'd be helpful for admins if more VE editors to use inline citations, our stated goal is to increase adoption and usage of templates, primarily for editorial /content purposes.
Additionally, we are not trying to improve documentation of template parameters; instead, we're trying to help editors find templates. JWheeler-WMF (talk) 21:18, 16 September 2024 (UTC)Reply
This is exactly what I said, though. I want VE editors and new editors to find and use templates easily and smoothly (but specifically not just infobox-type templates, as I gave examples). I'd also like that experienced editors to be able to use dropdowns or other UI similar to VE to be able to find templates and their parameters quickly and easily (we can currently do this in ProveIt for citation templates only). SamuelRiv (talk) 18:27, 17 September 2024 (UTC)Reply

Community-defined templates

edit

Hey folks - I wanted to further explain why we're shying away from community-defined templates for the initial feature set of this template discovery work, as @Escargot bleu suggested.

  1. Breadth of templates. There are over 30k template categories and 680k templates used at least 5 times on en.wiki. There are also many different user personas for Templates. For example, content reviewers look for Citation Needed, editors may seek Infoboxes or Navboxes, and admins might seek maintenance tags to prevent abuse. If we allowed communities to define 15-20 useful templates, there's a good chance that the suggested templates may not align to a user persona's goal. Additional tooling may be necessary to customize based on # of edits, user rights, etc.
  2. Scale across wikis. While this feature may work for one wiki, it'd require each wiki to adopt and customize their list of suggested templates. This adds additional burden on admins to mantain yet another list. Moreover, it would require WMF to build the infrastructure to store template settings and allow for each wiki to further customize a list.

While a community configuration or community-defined templates may be a long-term goal, we plan to start with lower-effort features that help individual users find templates based on their personal search history, popularity or some form of recommendation engine. From there, we can continue to explore a community-defined list of templates. JWheeler-WMF (talk) 21:14, 16 September 2024 (UTC)Reply

I'm sure you've seen the most transcluded en.wp templates and modules list. It can be somewhat deceptive because of the way some templates use inheritance or base modules, while some very popular classes of simple templates (very few nowadays) will have no such structure that is visible in this list. So from there you only need to consider what functionality you want for the major top-level helper templates+modules (to be eventually used in article markup): ((fix)), ((CS1)), ((infobox)), ((navbox)), ((date)), ((lang)), and even visible banners like ((asbox)). I'm sure nobody really would mind, in the near term, that the vast majority of templates not on this list aren't considered or even supported in dropdowns, if are you able to add significant functionality to finding those in the classes of just a handful of the major modules. SamuelRiv (talk) 18:53, 17 September 2024 (UTC)Reply

Inline template autocompletion/search

edit

The design explorations look good. It would also be amazing to have access to template autocompletion or search inline. After typing {{ (including in the visual editor), a pop-up could open under your cursor and help you find the template as you type its name, or part of its name or alias, or select a recently used or favourited template. In a non-intrusive way for editors who know what they are inserting, but in a helpful way for everyone to quickly retrieve the right template without clicking on buttons or opening a big overlay. Nclm (talk) 09:48, 17 September 2024 (UTC)Reply

One challenge I see with this is that many folks still configure templates via the existing modals in VE and Source Editor. A shortcut to pick a template inline could be a nice affordance, however first we want to explore how we might signal more accurate or relevant templates. From there, we might explore more in-line capabilities. JWheeler-WMF (talk) 14:32, 17 September 2024 (UTC)Reply

templatedataHint

edit

Not focussing on searching, but adding TemplateData descriptions might improve search result feelings.

Please see w:en:User:PerfektesChaos/js/templatedataHint.

Greetings -- PerfektesChaos (talk) 14:48, 17 September 2024 (UTC)Reply

Smart searching

edit

German Wikipedia has some support to find the appropriate template:

  • Non-existing template yields empowered search form.
    • Try w:de:Template:Encyclopædia-Britannica (but make sure that German is user language for testing).
    • No match, but a search form with a list of separated keywords derived from guessed template name.
    • Clicking the button delivers three possible templates, but no noise.
  • Specific search form is adding some features:
    • Suppress /doc subpages.
    • Prefer templates with TemplateData.
      • All templates with some 50–70 direct transclusions in articles are equipped with TemplateData.
      • That is the community preference to suggest most likely searched templates for all needs.
    • Prefer templates with separate /doc subpage if not TemplateData.
      • All really important and frequently used templates do have a separate /doc subpage.
      • Almost all reasonable templates with parameters have a separate /doc subpage.
    • In third place, show all other ones.
      • Navboxes with no parameters and a dozen transclusions have no /doc subpage. These are 50,000 templates, and nobody can predict which one is searched next. Their name is self-explaining.
  • All categories are offering that special search form.

Enjoy -- PerfektesChaos (talk) 19:13, 17 September 2024 (UTC)Reply

Return to "Community Wishlist/Focus areas/Template recall and discovery" page.