Commit graph

8 commits

Author SHA1 Message Date
jenkins-bot
546f78a227 Merge "Update formatting of includes/title/" 2014-04-21 17:11:39 +00:00
Siebrand Mazeland
db2726675c Update formatting of includes/title/
Change-Id: I862dde47b569ca99f098d795e13b1999a33d790b
2014-04-21 09:32:30 +00:00
Siebrand Mazeland
5ada01a919 Make includes/title pass phpcs-strict
Change-Id: Iac03d1f3d4ee622496b3cb0bf8086d2f362b52af
2014-04-21 11:29:55 +02:00
jenkins-bot
79ebb4b028 Merge "Allow additional interwiki prefixes on local interwiki links" 2014-04-20 14:00:22 +00:00
umherirrender
b45420410f Fixed some @params documentation (includes/*)
Swapped some "$var type" to "type $var" or added missing types
before the $var. Changed some other types to match the more common
spelling. Makes beginning of some text in captial.
Also added some missing @param.

Change-Id: Iced714bca004756b461b66067a49a925a7e3b877
2014-04-19 22:22:20 +02:00
addshore
8644ed29c5 Fix CS double space in TitleValue return
Change-Id: Ib7eb2b070eea9f8b2df860b6d16f9c769be78cf7
2014-04-14 13:43:46 +01:00
This, that and the other
5461fd3f28 Allow additional interwiki prefixes on local interwiki links
This code was added by Brion back in 2004 as part of r6398.

According to Brion, links like [[en:wikt:foo]] on English Wikipedia are
"just crazy!", but I can't see any reason to disallow them.

Bug: 61357
Change-Id: If449e60a0ef95cfe3dd6f4b1809ac012be62a0ea
2014-04-05 13:34:34 +11:00
daniel
154bcdc63f Introducing TitleValue
TitleValue is intended to be a light weight alternative to the Title
class. Any operations on TitleValue are implemented in separate
service classes, like TitleFormatter and PageLinkRenderer. See
<https://www.mediawiki.org/wiki/Requests_for_comment/TitleValue>
for more information.

This change updates SpecialCategories and SpecialLinkSearch to use
TitleValue instead of Title, to demonstrate how TitleValue would be
used, and how the necessary services can be injected and applied.

The intention is to improve testability and reusability; these
advantages will however only become apparent with further refactoring
of the respective special pages. This will be done in follow-up
changes.

More work will be needed to migrate essential functionality from
Title and Linker classes into the respective service classes,
MediaWikiTitleCodec and MediaWikiPageLinkRenderer.

Change-Id: I8eef5a165de4ffcacfbc4911fdacdb15d502fff4
2014-03-28 18:42:17 +00:00