Last modified: 2014-11-07 11:37:13 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T58763, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 56763 - Rendering URL datatype as wikitext should generate an external link instead of a bare URL
Rendering URL datatype as wikitext should generate an external link instead o...
Status: NEW
Product: MediaWiki extensions
Classification: Unclassified
WikidataClient (Other open bugs)
unspecified
All All
: Normal normal (vote)
: ---
Assigned To: Wikidata bugs
: testme
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-11-08 07:27 UTC by Liangent
Modified: 2014-11-07 11:37 UTC (History)
4 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Liangent 2013-11-08 07:27:19 UTC
Repro:

1. Go to [[MediaWiki]]
2. Write "{{#property:P856}}xx" in page text

Actual:

3. A link to http://www.mediawiki.org/wiki/MediaWikixx is generated (rendered from wikitext "http://www.mediawiki.org/wiki/MediaWikixx")

Expected:

3. A link to http://www.mediawiki.org/wiki/MediaWiki is generated, followed by "xx" which is not a part of the link (rendered from wikitext "[http://www.mediawiki.org/wiki/MediaWiki http://www.mediawiki.org/wiki/MediaWiki]xx")
Comment 1 Brion Vibber 2013-11-08 17:31:25 UTC
Does [{{#property:P856}} whatever label you want on the link] work? This might be more flexible.
Comment 2 Liangent 2013-11-08 17:52:34 UTC
(In reply to comment #1)
> Does [{{#property:P856}} whatever label you want on the link] work? This
> might
> be more flexible.

This fails when there're multiple statements for P856. See also my post in wikidata-l.
Comment 3 Lydia Pintscher 2013-11-14 11:55:39 UTC
Can you please name a case where this is useful?
Comment 4 Liangent 2013-11-14 12:04:45 UTC
(In reply to comment #3)
> Can you please name a case where this is useful?

Well rendering is already broken on any wiki where comma-separator is considered as a part of free-form URLs (IRIs?) by MediaWiki.
Comment 5 Lydia Pintscher 2013-11-14 12:11:31 UTC
Please provide links and concrete examples of the issue.
Comment 6 Liangent 2013-11-14 12:14:41 UTC
(In reply to comment #5)
> Please provide links and concrete examples of the issue.

https://zh-classical.wikipedia.org/wiki/User:Liangent/bug56763

The solution could be to make generated wikitext self-contained (ie. irrelevant from context). This is the point of this bug and that mail (to the list).

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links