I've noticed that whenever a URL is long and contains unusual characters MediaWiki renders it incorrectly, for instance this URL: http://chemapps.stolaf.edu/jmol/jmol.php?model=C[C@H](N)CC1=CC=CC=C1 gets rendered such that the C@HCC1=CC=CC=C1 gets rendered as separate from the rest of the URL. I would like it to be rendered in its full form. How do I do this?

  • 1
    Can you pass the Structural Formula or the Chemical name to a Pretty URL? Also, have you considered the JMOL Extension – eyoung100 Jul 28 '14 at 14:14
  • I hadn't considered the extension, thanks for mentioning it, but I don't know how to add it to my Wiki. Do you? I don't know how to use the pretty URL, I was left scratching my head after reading that page. – BH2017 Jul 28 '14 at 14:34
  • 1
    To install the extension, see Installing Jmol extension, and for the Pretty URL, see the Apache Guide here. – eyoung100 Jul 28 '14 at 14:43
  • I haven't installed MediaWiki, I am using Wikia, which is a website that provides free Wiki capabilities. I have tried installing MediaWiki on my PC and it failed miserably, on two different operating systems too. – BH2017 Jul 28 '14 at 15:00
  • 1
    A 3rd Party Hosted Service will not allow installation of plugins... You need at least 3 Things: A Host with IIS or Apache(this could be your PC, 2. The MediaWiki Install Package, and the Plugin. – eyoung100 Jul 28 '14 at 16:03

The characters that MediaWiki disallows in URLs need to be percent-encoded.

So, for example, your link should be written as http://chemapps.stolaf.edu/jmol/jmol.php?model=C%5BC@H%5D(N)CC1=CC=CC=C1 (%5B and %5D are the codes for [ and ]).

|improve this answer|||||

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.