Last modified: 2012-04-16 09:16:12 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 T29131, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 27131 - Add checkbox to [[Special:PrefixIndex]] to hide the given prefix in the list items
Add checkbox to [[Special:PrefixIndex]] to hide the given prefix in the list ...
Status: NEW
Product: MediaWiki
Classification: Unclassified
Special pages (Other open bugs)
unspecified
All All
: Normal enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
http://en.wikipedia.org/w/index.php?t...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-02-03 12:05 UTC by Helder
Modified: 2012-04-16 09:16 UTC (History)
2 users (show)

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


Attachments

Description Helder 2011-02-03 12:05:28 UTC
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
Comment 1 Bawolff (Brian Wolff) 2011-02-05 06:57:23 UTC
An interesting usecase would be the ability to trigger it when transcluding {{special:prefixindex/foo}} (but I'm not sure how to go about doing that, since the normal way of passing parameters via subpages is already in use)
Comment 2 Helder 2011-02-05 13:03:05 UTC
(In reply to comment #1)
> An interesting usecase would be the ability to trigger it when transcluding
> {{special:prefixindex/foo}} (but I'm not sure how to go about doing that, since
> the normal way of passing parameters via subpages is already in use)

Yep! I created this bug after noticed that a page was using this {{special:prefixindex/foo}} trick.

I'm not sure either about how to use the feature on pages transcluding the special page. But at least in the page itself it should be easier to implement...
Comment 3 Krinkle 2011-02-12 18:12:12 UTC
See also:
http://www.mediawiki.org/wiki/JQuery_snippets#Make_watchlist_options_collapsible

Which contains a JavaScript implementation.

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


Navigation
Links