Last modified: 2014-09-28 04:19:03 UTC
See https://en.wikipedia.org/wiki/User:Ssastry/VE_Test#Self-link_test and see Parsoid's rendering of the same. https://meta.wikimedia.org/wiki/Help:Self_link is the documentation. Causes rendering diffs in https://en.wikipedia.org/wiki/Prairie_Home_Companion -- found via looking at a visual diff.
One issue to consider with self-links is that the page name might not be constant. Flow posts for example are displayed in several contexts including timelines. Users might expect the 'self' to follow the actual page URL. Originally we considered styling self links with CSS (attribute selectors), similar to red links.
Solution using CSS: <html><style> a[href="test.html"] { font-weight: bold; color: inherit; text-decoration: inherit; pointer-events: none; cursor: text; } </style> <body> Some link to <a href="test.html">test.html</a> </body> </html>
Proof of concept implemented in https://github.com/gwicke/restbase/commit/6e3856bbce390a4b52c95dcbc4f632d8b8ba4f15.