Template talk:Infobox/Aon bookmarks
Request: AON links open new browser window/tab
I much prefer that external links always open a new tab or window in the user's browser. I tried to edit this template to do that, but I don't fully understand the syntax at play here. If someone else can assist with that (as well as any other templates using similar AON parameters), that'd be awesome. Thanks!— Yoda8myhead (talk) 21:02, 6 April 2025 (UTC) Oznogon (talk) 21:18, 6 April 2025 (UTC)
- Pinging User:Virenerus. The links appear to be implemented in Widget:External/Image link, which is a locked namespace.
- Would likely just require a
target="_blank"
param in the link tag:
<includeonly><!--{if $link eq 'close'}--></a><!--{else}--><a href="<!--{$link|replace:' ':'%20'|regex_replace:'/^(https:\/\/)?/':'https://'|escape:'quotes'}-->" title="<!--{$title|default:''|escape:'html'}-->" target="_blank"><!--{/if}--></includeonly>