Showing URLs as plain text

From semantic-mediawiki.org

Is it possible to show an URL as plain text, i.e. without the actual link. I tried the method explained here but it did not seem to work for URLs.

What I am trying to accomplish is to create a listing where instead of URLs the listing would show an image containing the link. This is pretty easy to do with the Template format, but the problem is that the URLs will not print out as plain text.

11:18, 15 August 2012

I just tried to do it too and failed. I believe this is a bug and filed Task T41392 for you. There are two workarounds which you may try:

  1. Assing datatype String to this propery / if you only need the URL for this particular purpose
  2. Create a second property of type String: / if you still need the URL for another purpose.

Hope this helps. Cheers

21:34, 15 August 2012

Thank you for your reply!

I actually noticed the "link" option in the table format just a few minutes after writing my message. It worked well for interwiki links but not for outgoing links.

This is propably actually because of Mediawiki and not SMW. It changes all strings starting with "http" into a working link unless you use nowiki tags around the link.

However it is not possible to add those nowiki tags in this case.

What is needed is a plain format option for the url datatype which basically adds those nowiki tags around the links while printing the table.

07:01, 16 August 2012

I solved my problem. I do not know why I did not figure this out earlier, but it was quite easy to turn those URLs to image links with a few lines of css.

14:23, 23 August 2012