MediaWiki:Common.js: Difference between revisions

Add some notes on the intentions of the videogallery() code, I won't get around to progressing on it tonight.
No edit summary
(Add some notes on the intentions of the videogallery() code, I won't get around to progressing on it tonight.)
 
Line 376: Line 376:
  *  Description: Allow random video galleries /w wiki caching.
  *  Description: Allow random video galleries /w wiki caching.
  */
  */
/* This is intended to allow for randomized list of videos per page load to avoid editors resumitting pointless edits trying to surface their videos (or at least make such edits pointless). Some other niceties should also be possible, like:
-rotating through all the available videos over time on a single page load
-providing bigger, non-fullscreen in page playback
-detecting broken videos where APIs provide error codes (we can't output categories here though, so unclear if we can provide useful notices. But we can possibly not show the broken video)
-(other suggestions?)
It would be nice if this could take advantage of the pre-existing video templates, but I have a feeling that won't work out and much of the interactions with the video service APIs may need to be re-implemented here. I think only YouTube, and DailyMotion get any on site use currently.
*/
function videogallery(){
function videogallery(){
     $(".videogallery a").each(function(){
     $(".videogallery a").each(function(){