https://bugzilla.wikimedia.org/show_bug.cgi?id=27131

           Summary: Add checkbox to [[Special:PrefixIndex]] to hide the
                    given prefix in the list items
           Product: MediaWiki
           Version: wikimedia-deployment
          Platform: All
               URL: http://en.wikipedia.org/w/index.php?title=Special:Pref
                    ixIndex&prefix=WikiProject+Australia/&namespace=4
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: Normal
         Component: Special pages
        AssignedTo: wikibugs-l@lists.wikimedia.org
        ReportedBy: mybugs.m...@gmail.com


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
[[Special:PrefixIndex/Test]]

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]]
[2] http://www.mediawiki.org/wiki/Special:PrefixIndex/Meetings/Test_framework/
[3] [[b:Special:PrefixIndex/High_School_Mathematics_Extensions/]]
[4] [[b:pt:Special:PrefixIndex/Livro de receitas]]
[5]
http://en.wikipedia.org/w/index.php?title=Special:PrefixIndex&prefix=WikiProject+Australia/&namespace=4

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- 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
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to