<a href="https://en.wikipedia.org/wiki/Joseph_Bonaparte" id="mwng" rel="mw:WikiLink" title="Joseph Bonaparte">Joseph Bonaparte</a> becomes <a class="mw-redirect" href="https://en.wikipedia.org/wiki/King_of_Spain" id="mwnw" rel="mw:WikiLink" title="King of Spain">King of Spain</a>.