Forum:(Solved) Commenting links

ShoutWiki — express yourself and be heard!
Jump to navigation Jump to search
Forums: Index > Community help

I want to turn the following HTML code into MediaWiki syntax. How can I do that, without loosing the commentary text in title="..." function?

<a href="https://gnu.org/licenses/old-licenses/gpl-2.0.html" title="GNU General Public License, version 2.0">GPLv2</a>

Thanks in advance. --MYself (talk) 20:57, 14 November 2013 (UTC)

You can't directly turn that into MW's wikitext syntax. When you make a [[link]], its title attribute is set to the name of that page (save for some certain exceptions, such as the links in the sidebar, which have access keys and all). However, you can work around this with the <abbr> HTML tag, like this:
[https://gnu.org/licenses/old-licenses/gpl-2.0.html <abbr title="GNU General Public License, version 2.0">GPLv2</abbr>]
which results in:
GPLv2
It's not precisely what you were looking for, but it's the closest thing that MediaWiki supports. --Jack Phoenix ShoutWiki Staff (contact) 15:02, 15 November 2013 (UTC)
Great, thank you! Problem solved. --MYself (talk) 15:52, 15 November 2013 (UTC)