Last modified: 2012-09-03 08:54:54 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 T32608, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 30608 - Merge Special:NewFiles with Special:ListFiles
Merge Special:NewFiles with Special:ListFiles
Status: REOPENED
Product: MediaWiki
Classification: Unclassified
Special pages (Other open bugs)
1.20.x
All All
: Normal enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
: 28074 (view as bug list)
Depends on: 30604
Blocks:
  Show dependency treegraph
 
Reported: 2011-08-28 23:03 UTC by Gregor Hagedorn
Modified: 2012-09-03 08:54 UTC (History)
6 users (show)

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


Attachments

Description Gregor Hagedorn 2011-08-28 23:03:32 UTC
This enhancement request replaces Bug 28074 - "Add support for transclusion to Special:NewFiles/<username>"

In bug 28074 the use case of user motivation by enabling an embeddable gallery of ones own images is discussed. The present situation is: 

* Special:NewFiles has a gallery style and shows newest images first, but can neither be restricted to a user, nor is it embeddable. 
* Special:ListFiles has a technical tabular style with thumbs, shows newest images first and is embeddable.

PROPOSAL: 

1. Add the gallery display of NewFiles as an option to ListFiles in a syntax that can be used during embedding (e.g. Special:NewFiles/Gallery)
2. Add an option how many files are shown in a syntax that can be used during embedding (e.g. Special:NewFiles/<username>/n=20)
3. Dissolve the present, largely duplicated NewFiles and make it a redirect to the gallery style of Special:NewFiles

This would close bug 28074 (gallery of user-images can be embedded on user pages) and probably also bug 14964 (ListFiles provides full functionality of NewFiles mentioned in that bug, and the toggle Gallery/List would then be implemented).
Comment 1 Gregor Hagedorn 2011-08-28 23:04:46 UTC
*** Bug 28074 has been marked as a duplicate of this bug. ***
Comment 2 Gregor Hagedorn 2011-08-28 23:35:11 UTC
Update to the present situation:


* Special:ListFiles has a technical tabular style with thumbs, shows newest
images first, can be restricted to a user, and is embeddable. It primarily misses a non-technical gallery style to serve the use case of user-galleries.
Comment 3 Bawolff (Brian Wolff) 2011-08-29 00:20:16 UTC
Note, if we added that option to special:listfiles, I'm not sure what syntax we'd use to specify use that option when embedding (I suppose /'s, multiple params to special page transclusions are so icky...)
Comment 4 Gregor Hagedorn 2011-08-29 07:04:58 UTC
I would use "/", perhaps with "=" sign in them. If there is an equal sign, it is a named parameter. If not, or the parameter is not recognized, it is the only unnamed parameter, i.e. in this case the user name. So n=20 is number of images per page, style=gallery or style=list. The following would  be valid then:

Special:NewFiles/<username>
Special:NewFiles/<username>/n=20
Special:NewFiles/n=20/<username>/style=gallery
Special:NewFiles/n=10/style=gallery/<username>
etc.
Comment 5 Mark A. Hershberger 2011-08-29 15:31:04 UTC
(In reply to comment #4)
> Special:NewFiles/<username>/n=20
> Special:NewFiles/n=20/<username>/style=gallery
> Special:NewFiles/n=10/style=gallery/<username>
> etc.

Is there a reason to introduce parameter parsing code here?  The following would be equivalent and wouldn't require new parsing code:

  Special:NewFiles/<username>?n=20
  Special:NewFiles/<username>?n=20&style=gallery

Also, it would make caching easier.
Comment 6 Bryan Tong Minh 2011-08-29 16:02:33 UTC
(In reply to comment #5)
> (In reply to comment #4)
> > Special:NewFiles/<username>/n=20
> > Special:NewFiles/n=20/<username>/style=gallery
> > Special:NewFiles/n=10/style=gallery/<username>
> > etc.
> 
> Is there a reason to introduce parameter parsing code here?  The following
> would be equivalent and wouldn't require new parsing code:
> 
>   Special:NewFiles/<username>?n=20
>   Special:NewFiles/<username>?n=20&style=gallery
> 
> Also, it would make caching easier.

Transclusion.
Comment 7 Daniel Friesen 2011-08-29 18:50:31 UTC
Dare I suggest we take this chance to make transcludable special pages behave more like templates/parserfunctions.

ie: {{Special:NewFiles/Dantman|n=20|style=gallery}}
Comment 8 Mark A. Hershberger 2011-08-29 19:51:58 UTC
> ie: {{Special:NewFiles/Dantman|n=20|style=gallery}}

+1 +1 +1
Comment 9 Gregor Hagedorn 2011-08-30 14:18:29 UTC
> ie: {{Special:NewFiles/Dantman|n=20|style=gallery}}


From a user perspective: Yes, please!
That would be:

Special:NewFiles/<username>
Special:NewFiles/<username>|n=20
Special:NewFiles/n=20|<username>|style=gallery
Special:NewFiles/n=10|style=gallery|<username>
etc.
Comment 10 Bawolff (Brian Wolff) 2011-09-01 08:26:02 UTC
(In reply to comment #7)
> Dare I suggest we take this chance to make transcludable special pages behave
> more like templates/parserfunctions.
> 
> ie: {{Special:NewFiles/Dantman|n=20|style=gallery}}

I just discovered this was already done by iAlex as part of Bug 15558. (yay!)
Comment 11 Mark A. Hershberger 2011-09-27 03:10:19 UTC
It looks like all the issues here have been handled.  If you reopen, please make clear what still needs to be done.
Comment 12 Gregor Hagedorn 2011-09-27 07:36:34 UTC
I think it has not been adressed, so all needs to be done. Please correct me if I am wrong. 

The last comment by bawolff refers to "Allow includable special pages to be parameterized using wiki syntax", not to the issue "Merge Special:NewFiles with Special:ListFiles"
Comment 13 Bawolff (Brian Wolff) 2011-09-27 12:44:24 UTC
(In reply to comment #12)
> I think it has not been adressed, so all needs to be done. Please correct me if
> I am wrong. 
> 
> The last comment by bawolff refers to "Allow includable special pages to be
> parameterized using wiki syntax", not to the issue "Merge Special:NewFiles with
> Special:ListFiles"

Basically that, but more explicitly what needs to be done:
*Give Special:listfiles a style parameter (for style=list)
*Make Special:newfiles a redirect special page to special:listfiles (With proper mode parameter)

What is done:
*{{Special:listfiles/Bawolff|limit=2}} works fine (but it makes table output)

As an aside, in regards to comment 9, given the way stuff is organized right now, I don't think we'd have it so you could re-arrange which parameter is the username (so {{Special:listfiles/limit=2|Bawolff}} would not work. All the other parameters except for what's directly after the / could be re-arranged though)

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


Navigation
Links