#### Background
- We recently launched the 'Edit Patrol' feature on the Indonesian Wiki and have received user feedback requesting the ability to search for and reply with warning templates. [Previous studies](https://meta.wikimedia.org/wiki/Template_A/B_testing/Results) have shown that personalized messages can lead to better engagement. By incorporating templates, especially alongside updates to Saved Messages (T356774), we aim to make it easier for Patrollers to create personalized, efficient interactions with other users on Wikipedia.
- This task also covers the introduction of searching and inserting templates in the Wikitext editor.
#### Designs ([[ https://www.figma.com/file/cJmB34iJE5p8qbqrQWnE50/Android-Edit-Patrol-%F0%9F%91%AE?type=design&node-id=3804-58551&mode=design&t=ojmDomMuzpWbWIik-0 | Figma ]])
**Within edit patrol**
| {F42040034 size=full} 1. Taps new message [[https://m3.material.io/components/floating-action-button/overview | FAB ]] | {F42040083 size=full} 2. Writes message | {F42040088 size=full} 3. Taps the template button in the toolbar | {F42040095 size=full} 4. Search empty state features recently used templates | {F42040107 size=full} 5. User searches and selects a template | {F42040139 size=full} 6. User sees [[ https://www.mediawiki.org/wiki/Extension:TemplateData | TemplateData ]] form | {F42040162 size=full} 7. User fills out and inserts form. | {F42040173 size=full} 8. Message with template code and publication | {F42062504 size=full} 9. Save changes dialog (Details see T356774) | {F42062451 size=full} 10. WebView preview | {F42040196 size=full} 11. Publish confirmation
- Template data flow in 6. and 7. will be shown when available. Otherwise, users are taken to template insertion in 8.
- Learn more links in 6. and 7. leads to template [details](https://en.wikipedia.org/wiki/Template:Uw-vandalism1).
- This is the MVP variant. Keyboard-enabled template insertion, as [outlined in these designs](https://www.figma.com/file/cJmB34iJE5p8qbqrQWnE50/Android-Edit-Patrol-%F0%9F%91%AE?type=design&node-id=3782-987145&mode=design&t=ojmDomMuzpWbWIik-4), will be explored in a future variant.
- If users choose to write a new message in 1, the dialog in 9. only features "Save as new message" (without the "Update saved message")
**Within Wikitext editor**
| {F42040402} 9. No surprise, it works the same way!