Markus Kroetzsch has uploaded a new change for review.

Change subject: Better fix for Bug 39392
......................................................................

Better fix for Bug 39392

Changed the behaviour to be as follows:
* if linking is enabled ("link=all", default), URLs will be made into an 
explicit link using [ ] in wiki and <a> in HTML
* if linking is disabled or outputformat "empty" is used (#- or simply #), then 
URLs will be returned as plain strings in wiki and HTML; in wiki this will mean 
that the URL will still be linked if MW is configured to link such strings 
automatically (default)
* if the new outputformat "nowiki" is used (#nowiki), then the URL string will 
be escaped to prevent MW from making a link of it, so it appears as a plain 
string in HTML and wiki alike; this changes the string so that it is no longer 
a valid URL

All of this only applies to URL values that can be linked at all (MW knows 
protocol). URLs that are not linkable in MW are always returned as plain 
strings in all contexts.

Change-Id: If3a91ea6f9fc988e156b64850e428ecbae096228
---
M includes/datavalues/SMW_DV_URI.php
1 file changed, 14 insertions(+), 5 deletions(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/SemanticMediaWiki 
refs/changes/55/32555/1
--
To view, visit https://gerrit.wikimedia.org/r/32555
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: If3a91ea6f9fc988e156b64850e428ecbae096228
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/SemanticMediaWiki
Gerrit-Branch: master
Gerrit-Owner: Markus Kroetzsch <mar...@semantic-mediawiki.org>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to