Summary: Add checkbox to [[Special:PrefixIndex]] to hide the
                    given prefix in the list items
           Product: MediaWiki
           Version: wikimedia-deployment
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: Normal
         Component: Special pages

When we want to access the full list of subpages of a given page we usually use
[[Special:PrefixIndex]] ([1], [2], [3], [4]), but currently it always displays
the fulltitle of the pages, which can make the list harder to understand. This
is particularlly true when dealing with pages which are mostly structured as
subpages of some other page, as currently happens on Wikibooks projects ([3],
[4]), since we don't have a proper way to define what is "a book" (bug 15071)

It would be interesting to add a new field to the current form:

-- All pages---------------------------------------
| "Display pages with prefix: [_______________]   |
|                  Namespace: [___________] [GO]  |
|                                                 |

like this:

-- All pages---------------------------------------
|  Display pages with prefix: [_______________]   |
| Format titles hiding prefix [_______________]   | <-- New field -->
|                  Namespace: [___________] [GO]  |
|                                                 |

The content of the second field could be (by default) equals to that o the
first field when the special page is acessed from a link like

One option would be to add a link which could call a jQuery function like this:

$('#mw-prefixindex-list-table td a').each(function(index) {
    $(this).text( $(this).text().replace($('#nsfrom').attr('value'), '') )

Compare the default list from for "Wikipedia:WikiProject Australia/"[5] with
the list displayed after that JavaScript is executed.

[1] [[Special:PrefixIndex/Wikipedia Signpost/2010]]
[3] [[b:Special:PrefixIndex/High_School_Mathematics_Extensions/]]
[4] [[b:pt:Special:PrefixIndex/Livro de receitas]]

Configure bugmail:
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.

Wikibugs-l mailing list

Reply via email to