Author: questpc
Description:
I have the following Semantic Template:TypeOfCountryData
<includeonly>{{#subobject:|
Title of topic={{{1 | }}} |
Description={{{2 | }}} |
Additional info={{{3 | }}} |
}}
{| class="travel-prop"
!{{{1|}}}
- | |
{{{2 | }}} |
{{#if:{{{3|}}}|
{{{3}}}}}
}</includeonly> |
Property:Title_of_topic, Property:Description, Property:Additional_info all are defined as
[[Has type::text]]
The page content samples are below.
This one does NOT work (no subobject value for Property:Description):
{{TypeOfCountryData|A web site link|<a href="http://slashdot.org">Slashdot</a>}}
While this works (Property:Description === "Slashdot"):
{{TypeOfCountryData|A web site link|Slashdot}}
Even this one works:
{{TypeOfCountryData|A web site link|[http://slashdot.org Slashdot]}}
Placing
$smwgLinksInValues = true;
after
include_once( "$IP/extensions/SemanticMediaWiki/SemanticMediaWiki.php" );
makes no difference.
So it seems that specifying "a href" as part of text property is broken in SMW 1.8.0.4. At least for subobjects.
Should I try switch to 1.9 perhaps? I didn't want because it's not an release yet.
BR and a lot of tags work just fine for subobject values, but A HREF. I really need it because I import automatically generated content into pages.
Version: REL1_20-branch
Severity: normal