Jeroen De Dauw has submitted this change and it was merged.
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(-)
Approvals:
Jeroen De Dauw: Verified; Looks good to me, approved
--
To view, visit https://gerrit.wikimedia.org/r/32555
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: If3a91ea6f9fc988e156b64850e428ecbae096228
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/SemanticMediaWiki
Gerrit-Branch: master
Gerrit-Owner: Markus Kroetzsch mar...@semantic-mediawiki.org
Gerrit-Reviewer: Daniel Werner daniel.wer...@wikimedia.de
Gerrit-Reviewer: Denny Vrandecic denny.vrande...@wikimedia.de
Gerrit-Reviewer: Foxtrott s7ep...@gmail.com
Gerrit-Reviewer: Jeroen De Dauw jeroended...@gmail.com
Gerrit-Reviewer: Kghbln mediaw...@kghoffmeyer.de
Gerrit-Reviewer: Mwjames jamesin.hongkon...@gmail.com
Gerrit-Reviewer: Nischayn22 nischay...@gmail.com
Gerrit-Reviewer: Yaron Koren yaro...@gmail.com
___
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits