Help talk:Type URL

Jump to: navigation, search
Please note

Talk pages on this wiki should primarily be used to address possible mistakes as well as missing and superseded information in the documentation.
In case you are seeking support concerning individual questions, please have a look at this page.
The SMW user mailing list is always a good idea for seeking help.

Please note

masking URLs

Hi Is there any way to mask URL value with some text?? Newuser1389

You'll have to be more precise in your question. Are you referring to querying? --Jan "Saruman!" S. 11:29, 28 May 2012 (CEST)
I want to display custom text instead of url in an article page and property's page. The property has url type and it's value is url. But I want to mask it by some custom text. As an example my url value is and I want to display it like this: Type_URL . Excuse me about my bad english and thank you for your attention. Thanks for your help in advance.--Newuser1389 14:31, 28 May 2012 (CEST)
Is there a specific reason why you can't use the alternate link notation [[<yourURLproperty>::|Type_URL]]? --Jan "Saruman!" S. 14:41, 28 May 2012 (CEST)
My property is a record consist of a text field and url field. Altenate text works on an article page but not on a proprty's page.
On a property page, you don't want to change the display of the value of a field; it wouldn't be right if I could declare <propertyA> = <valueB> and show <propertyA> = <valueC> on the property page. So your masking question gets more and more confusing to me... --Jan "Saruman!" S. 15:35, 28 May 2012 (CEST)
I'm using semanitic-mediawiki on a book indexing project. each property is a keyword that has some descriptive text and a url value linking to the book page. in my keyword page ( proprty's page) there are plenty of url's that make keyword page too messy. I want to show a page number instead of a url...--Newuser1389 15:53, 28 May 2012 (CEST)
That's not what the property pages are for, so you might want to rethink your information model. --Jan "Saruman!" S. 15:58, 28 May 2012 (CEST)
You are right. I have to do that and may I find a temporary solution! Thanks a lot

Any idea?--Newuser1389 21:33, 28 May 2012 (CEST)


Thread titleRepliesLast modified
Showing URLs as plain text315:23, 23 August 2012

Showing URLs as plain text

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.

AnttiJN (talk)12:18, 15 August 2012

I just tried to do it too and failed. I believe this is a bug and filed bug 39392 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

[[kgh]] (talk)22: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.

AnttiJN (talk)08: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.

AnttiJN (talk)15:23, 23 August 2012