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

Technical 13 <technical...@yahoo.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |WORKSFORME

--- Comment #5 from Technical 13 <technical...@yahoo.com> ---
/* show result count if all results are shown on one page */
if($('div#mw-content-text').html().search(/previous [\d,]*&nbsp;\|  next
[\d,]*/) !== -1){
   var allPagesReplace = 'showing ';
    if($('ul#mw-whatlinkshere-list li').length === 1){
        allPagesReplace += 'the only ';
    } else if($('ul#mw-whatlinkshere-list li').length > 1){
        allPagesReplace += 'all ' + $('ul#mw-whatlinkshere-list li').length;
    }
    allPagesReplace += ' result';
    if($('ul#mw-whatlinkshere-list li').length > 1){
        allPagesReplace += 's';
    }
  
$('div#mw-content-text').html($('div#mw-content-text').html().replace(/previous
[\d,]*&nbsp;\|  next [\d,]*/g, allPagesReplace));
}

Is the anal retentive version... 
Can be loaded locally on enwp with:
importScript( 'User:Technical 13/Scripts/Gadget-pageCount.js' );//
[[User:Technical 13/Scripts/Gadget-pageCount]]

or globally on any other mw site with:
mw.loader.load( '//en.wikipedia.org/w/index.php?title=User:Technical
13/Scripts/Gadget-pageCount.js&action=raw&ctype=text/javascript'
);//[[User:Technical 13/enwpScripts]]

Since this can be done very easily with JavaScript, closing as WORKSFORME

-- 
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