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

Markus Krötzsch <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID

--- Comment #1 from Markus Krötzsch <[email protected]> 2012-03-24 
12:02:05 UTC ---
I do not think that this is really a bug. The parameter $smwgLinksInValues
controls whether SMW should support wikitext of the form

[[Property::Foo [[Page]] Bar]]

The reason for this setting is that supporting this case makes processing for
significantly less efficient (more complicated regular expressions are used).
Therefore it is switched off by default. The problem is not the occurrence of
links in property values; the problem is that it is hard to read the whole
property value from the wikitext if one has to allow for inner "]" that are not
necessarily the end of the value.

For #set, there is no such problem: the property value is always easy to
retrieve and there is no extra effort in any case. If one specifies a value
that contains a link, then this is what will be stored. I don't see a reason
for implementing something else, especially since it would require extra effort
to check for the existence of a link in a value. So it would take more
computation, but its only effect would be to create errors in cases where it
now just works.

Summing up: $smwgLinksInValues allows to disable an input feature for
performance. It is not meant to restrict the values that properties are allowed
store. There is no known use case for specifically disallowing links in
property values. If the documentation should give another impression, then some
clarification would be in order.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
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