option to strip requested prefix index in the list
authorAntoine Musso <hashar@free.fr>
Wed, 3 Jul 2013 19:49:29 +0000 (21:49 +0200)
committerAntoine Musso <hashar@free.fr>
Wed, 24 Jul 2013 20:41:04 +0000 (22:41 +0200)
commitf804a35bb83d9ed301b67e142bb43240d8cb2e38
tree38a6311c12aeafd6f17b010696d404eb2aac49e6
parented7979a9703f8524044b4f9b477736b8c8b91dac
option to strip requested prefix index in the list

[[Special:PrefixIndex]] could be transcluded to generate a dynamic list
of pages. Since all pages share the same prefix, it is not always
wanted, specially when looking for subpages.

Given articles named:

- Project/Alix
- Project/FixBug20281
- Project/S3cretPlan
- Projects roadmap

{{Special:PrefixIndex/Project}} yields:

  Project/Alix   Project/FixBug20281  Project/S3cretPlan
  Projects roadmap

Adding |stripprefix=1 get rid of the prefix:

{{Special:PrefixIndex/Project|stripprefix=1}}

   /Alix      /FixBug20281     /S3cretPlan
   s roadmap

{{Special:PrefixIndex/Project/|stripprefix=1}}

   Alix      FixBug20281     S3cretPlan

The patch adds a checkbox to activate the prefix stripping.

For the implementation, I have chosen a protected class property instead
of adding parameters to various methods.  That seems easier to handle.

Change-Id: I96a0a08ea11a82016eb382abbeb2d54bfc2c4016
RELEASE-NOTES-1.22
includes/specials/SpecialPrefixindex.php
languages/messages/MessagesEn.php
languages/messages/MessagesQqq.php
maintenance/language/messages.inc