https://bugzilla.wikimedia.org/show_bug.cgi?id=49530

       Web browser: ---
            Bug ID: 49530
           Summary: Subobject text type property value does not permit to
                    store a href links
           Product: MediaWiki extensions
           Version: REL1_20 branch
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: Semantic MediaWiki
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected], [email protected]
    Classification: Unclassified
   Mobile Platform: ---

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.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to