Difference between revisions of "Template:Bugfix SMW hased URI"
From TDWG Terms Wiki
m |
m (Andreas Plank moved page Template:Buxfix SMW hased URI to Template:Bugfix SMW hased URI without leaving a redirect: typo in page name) |
(No difference)
|
Revision as of 12:52, 6 September 2016
Problem: Semantic MediaWiki
- stores a hashed URL like
[[URL::http://www.w3.org/2004/02/skos/core#]]
- as http://www.w3.org/2004/02/skos/core cutting the “#” off
So this template checks if the final character is a # and adds “%20” to it (a blank character urlencoded). This fixes somehow the storage of # URLs. In addition
Usage
Use it only to set hidden properties:
{{#set: vann:preferredNamespaceUri|{{Bugfix SMW hased URI|http://www.w3.org/2004/02/skos/core#}}}}
Or with parameter (if URL has ‘=’ in it)
{{#set: vann:preferredNamespaceUri|{{Bugfix SMW hased URI|uri=http://www.w3.org/2004/02/skos/core#}}}} {{#set: vann:preferredNamespaceUri|{{Bugfix SMW hased URI|1=http://www.w3.org/2004/02/skos/core#}}}}