MediaWiki talk:Monobook.js

From Wiktionary, the free dictionary
Latest comment: 16 years ago by Connel MacKenzie in topic Please don't comment here
Jump to navigation Jump to search
This interface message is documented at mw:Manual:Interface/Monobook.js.


Comments by Hippietrail[edit]

I've gone ahead and added code to the global Javascript file here to make subsets of the special characters selectable rather than seeing the whole lot at once. I think it might be better with this functionality to make a subset for each language but I'm open to suggestions. Of course let me know here or on my talk page if there are any bugs, if you would like any features added, or if you think I'm barging in and taking over without proper consultation (-; — Hippietrail 08:09, 22 July 2005 (UTC)Reply

Link FA[edit]

Hi,

can someone please add the code for highlighting featured-article links here? The corresponding snippet over at w:MediaWiki:Monobook.js is as follows:

function LinkFA() 
{
   // iterate over all <span>-elements
   for(var i=0; a = document.getElementsByTagName("span")[i]; i++) {
      // if found a FA span
      if(a.className == "FA") {
         // iterate over all <li>-elements
         for(var j=0; b = document.getElementsByTagName("li")[j]; j++) {
            // if found a FA link
            if(b.className == "interwiki-" + a.id) {
               b.className += " FA";
               b.title = "This article has gained featured status";
            }
         }
      }
   }
}

Thanks, --Schwallex 18:39, 5 November 2006 (UTC)Reply

I think that's a pretty bad idea, since we don't have articles, nor featured articles. --Connel MacKenzie 17:43, 14 June 2007 (UTC)Reply

Interwiki link to the Vietnamese Wiktionary[edit]

Please add an interwiki link to the Vietnamese version of this script:

[[vi:MediaWiki:Monobook.js]]

Thanks.

 – Minh Nguyễn (talk, contribs) 04:26, 6 December 2006 (UTC)Reply

Common.js[edit]

If MediaWiki:Common.js is enabled for this wiki, a lot of the stuff here should be moved over there, so that all users can take advantage of them. Examples: dynamic navigation bars, edittools helper script. Ingoolemo (talk) 18:46, 14 December 2006 (UTC)Reply

How? There never seems to be a lull, when this can just be [move]d over. Doing it piecemeal is, (IMHO) more likely to cause pretty significant problems. --Connel MacKenzie 17:47, 14 June 2007 (UTC)Reply

Please don't comment here[edit]

Please use the much more widely monitored page Wiktionary:Grease pit for discussions about this page. --Connel MacKenzie 17:48, 14 June 2007 (UTC)Reply