A GUIEdit button to encode special characters in link addresses.
The PmWiki Links markup considers some characters special. Parentheses indicate for PmWiki a part of the address that shouldn't be displayed in the page, a vertical bar separates the link address from the link text, and quotes are used to set a tooltip title:
If a link address actually contains some of the characters
The recipe installs a new button in the edit toolbar. While editing the page, select a URL address containing special characters and press the button to encode the special characters. The "encoded" address points to the same external page and works both in PmWiki and in all browsers.
The recipe is now installed on PmWiki.org, you can test it in the WikiSandbox.
International wikis can translate the tooltip title of the button, eg. in a French XLPage:
'Encode special characters in URL link addresses' => "Codage de caractères spéciaux d'adresses URL"
You need to select the text to be encoded -- if nothing is selected, the button does nothing.
Change log / Release notes
Recipe written and maintained by Petko. The FixSelectedURL() function is based on insMarkup() by Patrick Michaud.
See discussion at FixURL-Talk