## What + Why
Editors tend to work with templates when adding complex content and templates simplify repetitive and nested types of content.
Editors can easily recall templates they commonly use when they have a feature to favourite them right from one of the editing interfaces.
##Details
- As a user I want to be able to favourite templates that I use frequently, so that I can recall them easily.
- As a user I want to be able to see all of my favourited templates, so that I can reuse them quickly.
- As a user I want to be able to remove a favourited template if I do not need it anymore, so that I can keep my favourites list tidy.
##Goals:
- most sense would make to track if people use favouriting templates (database query)
- possibly data scientists can check for correlation with template usage after, but it's hard to track
##Research findings / data:
- desk research https://www.figma.com/design/QWD6oDEz9NMEnF2ppVc4Xq/Template-recall-and-discovery?node-id=0-1&t=5fa0wrAPMO3MAqrD-1
##Designs:
https://www.figma.com/design/QWD6oDEz9NMEnF2ppVc4Xq/Template-recall-and-discovery?node-id=765-5322&t=5fa0wrAPMO3MAqrD-1
##Out of scope:
- we don't think about most used and used in this article for now
- ordering how they are being displayed
- adding sections to favourites list
- we are not showing categories of templates
- we are not highlighting recently searched templates
##Related Conversations:
- Slack channel: [[ https://wikimedia.enterprise.slack.com/archives/C05TQCG242F | #favourite-templates ]]
##Contact person/team: (Optional)
For example wish lead of a project.
##General Implementation:
- it's going to use OOUI widget in #TemplateData and the widget will be used in Template Wizard and Visual Editor
- search behaviour will be prefix search or Cirrus search
##Discussion Notes:
- we currently track from template wizard when templates are being inserted
- user preferences are available in superset already, first time someone introduces a favourite can be found
##Resources:
- [[ https://docs.google.com/document/d/1Y5BgMpGOGSso8WF-UdwuGdWBPUbdUj8ximfYgwYH-Bg/edit?tab=t.0 | Technical Design doc ]]
##Notes:
- Favo(u)rite is spelt `favorite` in the code! e.g. `templatedata-favorite-templates` in `user_properties`