MediaWiki talk:Common.js/Archive 1

message: What is the use of this message? Each tooltip had a message formerly. I tried to give a translation in the Spanish Wikipedia (:es:MediaWiki:Monobook.js) but something is broken and now the tooltips are not shown there. Any help is appreciated. Thank you. ManuelGR 19:06, 14 Jun 2004 (UTC)

message: * accesskeys and tooltips moved to js, needs to be customized/localized at MediaWiki:Monobook.js (copy everything below /* tooltips and access keys */ from . Saves many calls to wfMsg, reduces page size, shows access key prefix depending on browser/os. Easy to customize in your own Monobook.js by changing the ta array.
* skinphptal underline and justification wired up to produce generated css- users have to adjust their prefs to get the default Monobook behaviour unfortunately
* MediaWiki:Monobook.css used for anons as well (-> underlined for them now)
* addcss call removed from header
* separate js var file included that holds things like the stylepath and the tooltip/accesskey array
* rtl css included from generated css
Translators:
Many translated accesskey-XY and tooltip-XY messages need to be moved to the Monobook.js array, they are now deprecated. The remaining ones might follow soon.
I also changed the wording and key of the 'clear your cache' message as it's now also displayed above the prefs as well. A new string is qbsettingsnote.
To get the new files, a reload might be necessary (the usual reload in moz, ctrl-f5 in IE/Opera, cmd-r in safari). -- Gabriel Wicke 15:02, 9 Jun 2004 (UTC)
thread_title:  pref system/ access key update 

message: Currently, the "d" shortcut has two uses: (un)deleting pages and "show changes" on edit pages. I find this pretty confusing, so I turned off the first use in my personal Javascript. Perhaps this should be done site-wide, or one of them should be moved (e.g., "-" for delete)? -- Jitse Niesen (talk) 11:40, 20 August 2005 (UTC)
replies: text: I would love to have d moved to something else, like "-".  I frequently use alt-d to access my address bar. — xaosflux Talk 23:12, 30 June 2006 (UTC)
thread_title:  Overloading of "d" shortcut 

message: imo the current positioning makes the list look rather odd. Plugwash 00:34, 30 September 2005 (UTC)
thread_title:  How about putting the FA stars after the language names? 

message: Crossposted from Template talk:Link FA and Wikipedia talk:Featured articles. See those pages for more discussion on this proposal.
All featured articles and future feature articles at the Vietnamese Wikipedia have been marked with the Sao chọn lọc template, which adds a little star icon in the "namespace icon area" (various namespaces at vi: display icons at the top-right corner of the page). This can be accomplished thusly:
Assuming that the Link FA code has already been added to MediaWiki:Monobook.js, the following code should be added to the script, just below the Link FA code:
 /* Configuration for "star" logo at the top of Featured Articles */
function StarFA() {
   if (document.getElementById("FA")) {
      // Monobook.css will take over styling from here
      document.body.className += " FA";
      // Iterate over all  elements - this loop is optional
      for (var i = 0; a = document.getElementsByTagName("h1")[i]; i++) {
         // Apply a tooltip to the article title, which includes the little star
         if (a.className == "firstHeading") {
            a.title = "This article has gained featured status";
         }
      }
   }
}
addLoadEvent(StarFA);
----
Then, add the following code to MediaWiki:Monobook.css:
 /* Namespace icon area */
h1.firstHeading {
   background-position: bottom right; background-repeat: no-repeat;
}
/* Featured articles */
body.FA h1.firstHeading {
   background-image: url('http://upload.wikimedia.org/wikipedia/en/thumb/8/8c/Featured_article_star.png/16px-Featured_article_star.png');
}
----
Finally, create a template Template:Star FA that contains the following code:
 

And add transclude it into each page:
 
This little logo isn't as intrusive as the meta-template that used to appear at the top of featured articles, but it still makes it easy to figure out if the article is of high quality, without having to load the Talk page.
If you are concerned about any potential impact on page loading time, just exclude or comment out the section marked "optional" in the JavaScript code above. If you enough people find this tip useful, I'll move it to a more widely read Talk page like Wikipedia talk:Featured articles.
You can see what this looks like in action at vi:Đệ nhị thế chiến.
 – Minh Nguyễn (talk, contribs, blog) 04:53, 6 October 2005 (UTC)
thread_title:  Featured article icon on vi: 

message: I removed the autofocus script for blank pages, per talk at Wikipedia:Village pump (technical)#Focus.  It was very annoying and inconsistent—I already know how to use my browser; it only interrupts my work if a web site tries to grab the mouse and click a field for me, and only on some pages at that.  That edit field already has an accesskey assigned too, control-comma focuses it in my browser (Safari).  —Michael Z. 2006-01-30 18:13 Z
:Autofocus is one of the worst usability choices one can make, I believe. I'm glad that we're not doing it. —Michiel Sikma, 12:29, 21 May 2006 (UTC)
thread_title:  Autofocus 

message: I figure the entertainment that's been had by one or two authors in recent days on this page is the cause of th re-bloat to the editing tools box. Could someone please de-bloat that, quickly? It's really very unnecessary, and already met with resistance last time this was tried in the far more accessible edittools page. I'm on the point of reverting all the recent changes to achieve this. 
Also, PLEASE STOP PLAYING WITH SUCH PAGES LIVE. Test it somewhere, in a local install or something. Mediawiki space IS NOT YOUR PLAYGROUND. -Splashtalk 13:41, 17 February 2006 (UTC)
replies: text: I looked at the history; the last edit was made on January 31, 2006. Are you sure you're on the right message? MediaWiki:Edittools might be where you meant to place this. —Locke Cole • t • c 13:43, 17 February 2006 (UTC)
replies: text: Actually no, I have no idea what's changing the edit tools. But there's been no recent edits here or at MediaWiki:Edittools. —Locke Cole • t • c 13:46, 17 February 2006 (UTC)
replies: text: Yes, I've been very confused by the strange appearances in the edittools box. I figured it must be this because it wasn't edittools, and I got month-lag looking at the history here. Apologies. -Splashtalk 13:59, 17 February 2006 (UTC)
thread_title:  Bloat 

message: The Main Page hack needs to be tightened. It currently triggers for both history mode and anything which starts with "Main Page" (like Main Page alternate (Classic 2006)). It should both check the full page title and avoid doing anything if there is an action= parameter. --cesarb 05:23, 20 March 2006 (UTC)
thread_title:  Main Page 

message: Please see "Updates to CSS and JS pages to reduce redundancy". --Melancholie 00:45, 24 March 2006 (UTC)
thread_title:  Update Monobook.js to reduce redundancy 

message: The tooltips serve little purpose and take up a couple KB of the file. I suggest removing them. — 0918BRIAN • 2006-03-30 13:03
:What a usability improvement! especially because all icons are really self-explaining...like this #R --Elian Talk 09:37, 25 April 2006 (UTC)
thread_title: Suggest removing tooltips

message: I was trying to make some changes to the above (see MediaWiki_talk:Cologneblue.js) to include features added here. How does it work? -- User:Docu —The preceding unsigned comment was added by Docu (talk • contribs) 11:03, 9 April 2006 (UTC)
replies: text: According to Wikipedia:Catalogue of CSS classes, only Monobook-derived skins have editable global javascript. Cologne Blue is not Monobook-derived. See also the discussion at MediaWiki talk:Edittools#Replacing charinsert with dynamic JavaScript, where this is mentioned. --cesarb 16:45, 9 April 2006 (UTC)
thread_title: [[MediaWiki:Cologneblue.js|Cologneblue.js]]

message: I know this is minor, but I think the main page tab should say "main page" and not "article", I've changed my JS so it says that, but want to ask around first before fooling with this one. I just don't think that the main page is really an "article". It links to many articles, and previews a few, but "main page" is not an article in itself.Voice-of-AllT|@|ESP 03:39, 13 April 2006 (UTC)
replies: text: It is in the article namespace.Geni 17:26, 13 April 2006 (UTC)
replies: text: Technically, it is in "article" namespace, since there is no "main page" namespace. Still, the URL just sais Wiki/ so nothing seems contradictory there. Also articles are named based on their title, there is no article called "main page"...it does not explain "main pages"...it is one, so it should be considered "Main Page" and not "article" I suppose.Voice-of-AllT|@|ESP 23:19, 13 April 2006 (UTC)

text: I'm fine either way. I don't mind the way it is now, but I would also be fine with changing it.--Alhutch 17:27, 13 April 2006 (UTC)

text: It's not a big deal, and just like Alhutch, I don't mind either way. Thanks! Flcelloguy (A note?) 19:21, 14 April 2006 (UTC)
thread_title:  Main page 

message: I've changed how the redirect edit toolbar button gets added. The toolbar generation has been updated so the buttons show for current versions of Safari and Konqueror which support the necessary bits, and while I was in there I made it easier to add custom buttons in a slightly less hacky manner. (The extra button no longer will show in browsers which are detected as unable to run the toolbar.)
Note that the old code caused some weird incompatibility where the other buttons didn't function correctly in Safari or Firefox, I'm not totally sure why. --Brion 11:07, 17 April 2006 (UTC)
thread_title:  Redirect edit button 

message: Hey all. I thought that people who watch this page may be interested in a proposal that I've posted on Wikipedia:Village pump (proposals) about striping wikitables. It involves changing CSS and JS. It's posted here: Village_pump_%28proposals%29#Proposal:_striped_table_CSS_class_.2B_JS. —Michiel Sikma, 05:21, 22 May 2006 (UTC)
thread_title:  Proposal: striped table CSS class + JS 

message: How can I set a dynamic navigation bar's default setting to "Show" rather than "Hide"? Thanks, Rfrisbietalk 07:57, 25 June 2006 (UTC)
replies: text: I'm working on some modifications to the NavBar code, and a way to do this can be supported if/when those changes are rolled in. Gimmetrow 13:13, 4 July 2006 (UTC)
thread_title:  Dynamic Navigation Bars - default setting 

message: Where can I learn more about my Monobook.js file, such as neat tools I can install and how to write my own?  --Ideogram 06:28, 3 July 2006 (UTC)
replies: text: Check out WP:JS. ~Kylu (u|t)  07:02, 3 July 2006 (UTC)
replies: text: Oooh, cool.  I have a lot of reading to do :-). --Ideogram 07:43, 3 July 2006 (UTC)
thread_title:  Where can I find out more