Last modified: 2013-01-27 12:12:45 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 T41828, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 39828 - Sandbox for MediaWiki-style internal links within Bugzilla comments
Sandbox for MediaWiki-style internal links within Bugzilla comments
Status: RESOLVED INVALID
Product: Wikimedia
Classification: Unclassified
General/Unknown (Other open bugs)
unspecified
All All
: Unprioritized normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-08-31 06:25 UTC by Timeshifter
Modified: 2013-01-27 12:12 UTC (History)
0 users

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


Attachments

Description Timeshifter 2012-08-31 06:25:13 UTC
Please do not add yourself to the CC field if you do not want to get emails when people use this sandbox.

I looked all over for a sandbox to test out what works when creating links with wikitext in Bugzilla comments at bugzilla.wikimedia.org. Some wikitext can supposedly be used according to this:
*http://www.mediawiki.org/wiki/Bugzilla#Website_links_within_Bugzilla_comments 

But it is not very detailed, and it does not link to any sources for its info. I want to update it, and so I need to test out many types of MediaWiki links, interwiki links, Commons links, links to talk sections, links to article sections, etc.. 

Here are some tests: 

http://www.mediawiki.org/wiki/Bugzilla
*[[mw:Bugzilla]]
*[[mw:Bugzilla#Website links within Bugzilla comments]]

http://en.wikipedia.org/wiki/Wikipedia:Bug_reports_and_feature_requests
*[[Wikipedia:Bug reports and feature requests]]
*[[Wikipedia talk:Bug reports and feature requests]]
*[[Wikipedia:Bug reports and feature requests#Links from within Bugzilla]]

http://commons.wikimedia.org/wiki/Commons:Village_pump/Proposals
*[[commons:Commons:Village pump/Proposals]]
*[[commons:Commons talk:Village pump/Proposals#Village Pump 2]]
Comment 1 Timeshifter 2012-08-31 06:28:40 UTC
The links all work, but the links to sections of articles and talk pages take one to the top of the page, and not to the section.
Comment 2 Timeshifter 2012-08-31 06:51:11 UTC
Testing pipes:
*[[Wikipedia:Bug reports and feature requests]]
*[[Wikipedia:Bug reports and feature requests|Bugzilla]]
Comment 3 Nemo 2012-08-31 07:17:51 UTC
Closing so that it's clear that it's not a real bug report.
Comment 4 Timeshifter 2012-08-31 15:04:33 UTC
Testing another format for section links:
*[[mw:Bugzilla#Website_links_within_Bugzilla_comments]]
Comment 5 Timeshifter 2012-08-31 15:12:11 UTC
Testing a mixed format for section links:
*[[Wikipedia:Bug reports and feature requests#Links_from_within_Bugzilla]]
Comment 9 Timeshifter 2013-01-26 03:22:57 UTC
To see what has been learned from all these tests in this Bugzilla thread go here:
*[[Wikipedia:Bug reports and feature requests]] - go to the section named something like "Links from within Bugzilla".

Testing Wikia.com prefix from within Bugzilla some more:
All these links work from within Wikimedia pages: 
*[[wikia:community:Admin Central:Forum]]
*[[wikia:community:Special:Forum]]
*[[wikia:cannabis:Main Page]]
*[[wikia:community:Main Page]]
This link does not work from within Wikimedia pages:
*[[wikia:Main Page]] -

Testing mediawiki prefixes some more:
*[[mw:Main Page]]
*[[mw:Extension:DPLforum]] 
*[[mediawiki:Extension:DPLforum]] - this does not work from within Wikimedia.

Testing some other interwiki prefixes:
*[[wikivoyage:Main Page]]
Comment 10 Timeshifter 2013-01-27 06:53:55 UTC
See [[WP:Bugzilla]]. Testing the pound character (#).

Standard MediaWiki-style section links do not work. For example; this standard section link ends up being a link to the top of the page, and not to the section:

[[Wikipedia:Bug reports and feature requests#Links from within Bugzilla]]

There is a way to make working section links in Bugzilla without having to use the full URL. Copy the URL from the location bar of your browser, and add brackets around part of it. This works (assuming the section header uses the same name when you test it):

[[Wikipedia:Bug_reports_and_feature_requests#Links_from_within_Bugzilla]]

In Bugzilla threads it seems that once the pound key (#) is found in the link wikitext then spaces that follow break the link to the section or tab. Links to [[Special:Preferences]] tabs work due to the lack of spaces in the link wikitext:

[[Special:Preferences#mw-prefsection-gadgets]]

Another test. Spaces in the link before the pound character (#). No spaces after it: 
*[[Wikipedia:Bug reports and feature requests#Links_from_within_Bugzilla]]

I don't think it will work because this method did not work before in a previous comment using this link:
*[[mw:Bugzilla#Website links within Bugzilla comments]] 

But one link is a Wikipedia.org link, and one link is a Mediawiki.org link. So the test is useful.
Comment 11 Andre Klapper 2013-01-27 12:12:45 UTC
(In reply to comment #9)
> To see what has been learned from all these tests in this Bugzilla thread go
> here:
> *[[Wikipedia:Bug reports and feature requests]] - go to the section named
> something like "Links from within Bugzilla".

Thanks for documenting this.

For your interest, the regular expressions that define this behavior are in
https://gerrit.wikimedia.org/r/gitweb?p=wikimedia/bugzilla/modifications.git;a=blob;f=bugzilla-4.0/extensions/Wikimedia/Extension.pm and patches are welcome.

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


Navigation
Links