This task is about implementing specific "inspection behavior" [1] for wikilinks to user pages within #DiscussionTools.
=== Context
Links to user pages are syntactically the same as other [wikilinks](https://en.wikipedia.org/wiki/Help:Link#Wikilinks): `[[` + `Namespace` + `page` + `|` + `display text` + `]]`.
|User page link syntax| Other wiklink format|
| --- | ---
| `[[User:NAME|NAME]]` | `[[Help:LINK|LINK]]`
Although, links to user pages behave differently from other wikilinks. Namely, when links to user pages are saved to the page, the person whose user page was linked to will receive an "Alert" as described here: https://www.mediawiki.org/wiki/Help:Notifications/Types#Mentions. The same is **not true** when any other kind of wikiink is saved to the page.
Trouble is, as T232601 is currently implemented, user page links and other wikilinks behave the same. Should this behavior persist, we think people could become confused about how user page links (read: pings) work.
=== Requirements
//People should be able to://
- Remove a "ping" from the comment they have drafted
- Change who they are "pinging" (read: change ping from `USER 1` to `USER 2`) without having to delete the entire contents of the previously written "ping"
- Understand "pings" as being different from other links
=== Open questions
- [ ] 1. How should the tool behave when someone places their cursor inside the user link?
-- //Current behavior: the link inspector dialog appears.//
- [ ] 2. How should the tool behave when someone backspaces into user link?
-- **i.** Select `@Asparagus` from username suggestion list such that `[[User:Asparagus|@Asparagus]]` appears in the Reply's text input area
-- **ii.** Press {key delete} into the user link
-- **iii. ???** (//Current behavior: the link inspector dialog appears.//)
- [x] 3. Can you change the display text without changing the link target?
-- No, you should not be able to change the display text without changing the link target within the Reply tool's `visual` text input mode (this will still be possible in `source` mode).
--- //Rationale: Changing the display text could make it more difficult for people reading and participating in the conversation to understand what is happening because of it not being clear who a comment is directed to. Based on what I've observed so far, it seems to be common practice to refer to someone by the username they've defined for themself.//
=== Done
- [ ] "Open questions" are resolved
- [ ] "Requirements" are implemented
---
1. E.g. placing your cursor into a user page wikilink, backspacing into a user page link, etc.