Icon as link within property declaration

From semantic-mediawiki.org


I know that there is a feature to change the link-text of a property. E.g.: [[myProp::theValue|click me]] I tried to change "click me" into an icon but without success: [[myProp::theValue|[[File:myIcon]]]] is there a feature for that?

Thanks for help.

12:24, 18 August 2016

Mediawiki doesn't work that way. You can turn an image into a link only by adding a |link= parameter to the file call. Since you can't add semantic markup to an image, you'd have to process that separately (probably using the {{#set}} parser function so it happens invisibly). So to do what you want, it would look like this:

[[File:myIcon|link=theValue]] {{#set: myProp=theValue }}
14:54, 11 October 2016