MediaWiki talk:Common.js/Archive 1: Difference between revisions

Content deleted Content added
ClueBot III (talk | contribs)
m Fixing links to archived content. (BOT)
m </s>...</s> → <s>...</s>; <tt>...</tt> → {{mono|...}}
 
Line 32:
 
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)? -- [[User:Jitse Niesen|Jitse Niesen]] ([[User talk:Jitse Niesen|talk]]) 11:40, 20 August 2005 (UTC)
:I would love to have d moved to something else, like "-". I frequently use alt-d to access my address bar. — [[User:Xaosflux|<b><fontbig colorstyle="color:#FF9933"; face="font-family:monotype"><big>xaosflux</big></font></b>]] <sup>[[User_talk:Xaosflux|<fontspan colorstyle="color:#00FF00">Talk</fontspan>]]</sup> 23:12, 30 June 2006 (UTC)
 
== How about putting the FA stars after the language names? ==
Line 128:
 
;Caveats
:Variables are set before the included script is run. Developers of tools should take care to check whether variables have been set by the user and set defaults only where necessary; use something like <tt>{{mono|1=optionvar==undef && optionvar=defaultvalue;</tt>}}
 
;Issues
*The name should maybe be changed to something like <tt>{{mono|install_tool()</tt>}}.
*Using globals for this doesn't sound like a good idea. Maybe options for all tools should be stored in an array, something like <tt>{{mono|tools_options[]</tt>}}.
 
;Source
Line 231:
::Stylesheet? I'm confused... can you execute Javascript from a stylesheet? &mdash;[[User:This user has left wikipedia|This user has left wikipedia]] 19:09 [[2006-01-30]]
 
:The above works great for me on IE6. Why can't this be included in the main sheet? I've heard quite a few complaints about SVG backgrounds in IE, and having this by default would help a lot. Would it break non-MS browsers? <TT>{{mono|[[User:Crotalus horridus|Crotalus horridus]] <SMALL>([[User talk:Crotalus horridus|TALK]] • [[Special:Contributions/Crotalus horridus|CONTRIBS]])</SMALL></TT>}} 06:16, 31 January 2006 (UTC)
 
::It shouldn't mess up non-IE browsers as the code above detects IE before doing anything (so non-MS browsers with an unmodified user-agent should ignore it). This is assuming the window.attachEvent code is universal of course. —[[User:Locke Cole|Locke Cole]] • [[User talk:Locke Cole|t]] • [[Special:Contributions/Locke Cole|c]] 06:36, 31 January 2006 (UTC)
Line 238:
 
I guess I wasn't paying attention when I wrote "style sheet". I don't think everyone should be served up an extra 1.4 kB of code because Microsoft won't support PNG transparency. This belongs in the MSIE-specific javascript at /skins-1.5/common/IEFixes.js, but I have no idea where to edit that (maybe it's part of the MediaWiki software?). Also, many people do set their browser strings to MSIE so that they can use ignorant banking sites, etc. which don't want to support other browsers—will this script try to execute for these users? ''—[[User:Mzajac |Michael]]&nbsp;[[User talk:Mzajac |Z.]]&nbsp;<small>2006-01-31&nbsp;16:04&nbsp;Z</small>''
:Sadly, 70% or so of Internet users are running IE. I think that having 1.4 kB of code served to users of standards-compliant browsers is a lesser evil than 70% of our users seeing PNGs (and SVGs, too, due to the way these are converted) rendered with an ugly blue background instead of transparency. Maybe I can cut down on the code by removing comments, shortening variable names, etc. <TT>{{mono|[[User:Crotalus horridus|Crotalus horridus]] <SMALL>([[User talk:Crotalus horridus|TALK]] • [[Special:Contributions/Crotalus horridus|CONTRIBS]])</SMALL></TT>}} 17:28, 31 January 2006 (UTC)
:I've only checked in firefox, but I'd expect the test for document.body.filters to exclude browsers which are just pretending to be IE. [[User:Lupin|'''Lupin''']]|[[User_talk:Lupin|talk]]|[[Wikipedia:Tools/Navigation popups|popups]] 16:52, 31 January 2006 (UTC)
 
Line 307:
 
==Suggest removing tooltips==
The tooltips serve little purpose and take up a couple KB of the file. I suggest removing them. &mdash; <small><sub>[[User_talk:Brian0918|<fontspan colorstyle="color:#444444">0918</fontspan>]]</sub><sup><span style="position: relative; left:-24px; margin-right:-24px;">[[User:Brian0918|<b><fontspan colorstyle="color:#222222">BRIAN</fontspan></b>]]</span></sup> &bull; 2006-03-30 13:03</small>
:What a usability improvement! especially because all icons are really self-explaining...like this [[:Image:Button_redirect.png|#R]] --[[User:Elian|Elian]] <sup>[[:de:Benutzer Diskussion:Elian|Talk]]</sup> 09:37, 25 April 2006 (UTC)
 
Line 317:
== Main page ==
 
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.'''[[User:Voice of All|<fontspan colorstyle="color:blue">Voice</fontspan><fontspan colorstyle="color:darkblue">-of-</fontspan><fontspan colorstyle="color:black">All</fontspan>]]'''<sup>[[user_talk:Voice_of_All|<fontspan colorstyle="color:blue">T</fontspan>]]|[[Special:Emailuser/Voice of All|@]]|[[Wikipedia:Esperanza|<fontspan colorstyle="color:darkgreen">ESP]]</fontspan>]]</sup> 03:39, 13 April 2006 (UTC)
 
:It is in the article namespace.[[User:Geni|Geni]] 17:26, 13 April 2006 (UTC)
::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.'''[[User:Voice of All|<fontspan colorstyle="color:blue">Voice</fontspan><fontspan colorstyle="color:darkblue">-of-</fontspan><fontspan colorstyle="color:black">All</fontspan>]]'''<sup>[[user_talk:Voice_of_All|<fontspan colorstyle="color:blue">T</fontspan>]]|[[Special:Emailuser/Voice of All|@]]|[[Wikipedia:Esperanza|<fontspan colorstyle="color:darkgreen">ESP]]</fontspan>]]</sup> 23:19, 13 April 2006 (UTC)
 
:I'm fine either way. I don't mind the way it is now, but I would also be fine with changing it.--[[User:Alhutch|Alhutch]] 17:27, 13 April 2006 (UTC)
 
:It's not a big deal, and just like Alhutch, I don't mind either way. Thanks! [[User:Flcelloguy|Flcelloguy]] <small>([[User talk:Flcelloguy|A <fontspan colorstyle="color:brown">note?</fontspan>]])</small> 19:21, 14 April 2006 (UTC)
 
== Redirect edit button ==
Line 334:
== Move/rename ==
 
I think the name "move", while technically correct, is not the exact right choice to use. From what I get, the page history is moved to the other page, but it is basically renaming&mdash;and would be a simpler concept for new users to grasp, no? Would people be opposed to calling it "'''rename'''", or something along those lines? -[[User:My/sig|<fontspan colorstyle="color:black">Mysekurity</fontspan>]]<sup>[[m:Wikimania 2006|<fontspan style="background:black"; color=":white"> ['''m!''']</fontspan>]]</sup> 02:15, 18 April 2006 (UTC)
:Renaming is "moving" pretty much. However moving is slighty more general. Moving from place to place in one namespace is like renaming. "Userfying" or any other namespace to namespace change is more like a "move". Still, I don't care much either way.'''[[User:Voice of All|<fontspan colorstyle="color:blue">Voice</fontspan><fontspan colorstyle="color:darkblue">-of-</fontspan><fontspan colorstyle="color:black">All</fontspan>]]'''<sup>[[user_talk:Voice_of_All|<fontspan colorstyle="color:blue">T</fontspan>]]|[[Special:Emailuser/Voice of All|@]]|[[Wikipedia:Esperanza|<fontspan colorstyle="color:darkgreen">ESP]]</fontspan>]]</sup> 07:18, 28 April 2006 (UTC)
::I made a simple script that renames it to "rename" for all article namespace pages. I would support that.'''[[User:Voice of All|<fontspan colorstyle="color:blue">Voice</fontspan><fontspan colorstyle="color:darkblue">-of-</fontspan><fontspan colorstyle="color:black">All</fontspan>]]'''<sup>[[user_talk:Voice_of_All|<fontspan colorstyle="color:blue">T</fontspan>]]|[[Special:Emailuser/Voice of All|@]]|[[Wikipedia:Esperanza|<fontspan colorstyle="color:darkgreen">ESP]]</fontspan>]]</sup> 22:27, 11 May 2006 (UTC)
:::Thanks for responding. Maybe take this to the Village Pump (things usually get lost there unless you have concrete ideas). -[[User:My/sig|<fontspan colorstyle="color:black">Mysekurity</fontspan>]]<sup>[[m:Wikimania 2006|<fontspan style="background:black"; color=":white"> ['''m!''']</fontspan>]]</sup> 00:48, 12 May 2006 (UTC)
::::I think this can also be changed by editing the text at [[MediaWiki:Move]]. That's probably a cleaner solution than a script, but it does change it for everybody. -- [[User:Jitse Niesen|Jitse Niesen]] ([[User talk:Jitse Niesen|talk]]) 01:13, 12 May 2006 (UTC)
:::::I guess I just like tradition, but I prefer "move" better, and I'm not sure why. Perhaps it's the tone, or the monosyllabic appeal, but I like "move" better than "rename", though I don't mind either way. Thanks! [[User:Flcelloguy|Flcelloguy]] <small>([[User talk:Flcelloguy|A <fontspan colorstyle="color:brown">note?</fontspan>]])</small> 01:38, 12 May 2006 (UTC)
:::::The purpose of a script would be that non-article space pages would have different text for those accustomed to it (like how article space pages say Article, the Main Page says Main Page, MW pages say Message, and WP namespace pages say Project on their tabs). I know you guys are all apathetic, and I care only slightly, but I think it'd be a good step towards more usability. When one right-clicks (or alt-clicks for our Mac bretheren) on an icon within their operating system, it says "rename". It would only be right to have this apply to WP as well. -[[User:My/sig|<fontspan colorstyle="color:black">Mysekurity</fontspan>]]<sup>[[m:Wikimania 2006|<fontspan style="background:black"; color=":white"> ['''m!''']</fontspan>]]</sup> 01:49, 12 May 2006 (UTC)
:::::Certainly, IMO, rename seems more clear to newbies. I already use the script myself just to see what it is like.'''[[User:Voice of All|<fontspan colorstyle="color:blue">Voice</fontspan><fontspan colorstyle="color:darkblue">-of-</fontspan><fontspan colorstyle="color:black">All</fontspan>]]'''<sup>[[user_talk:Voice_of_All|<fontspan colorstyle="color:blue">T</fontspan>]]|[[Special:Emailuser/Voice of All|@]]|[[Wikipedia:Esperanza|<fontspan colorstyle="color:darkgreen">ESP]]</fontspan>]]</sup> 02:01, 12 May 2006 (UTC)
::::::I agree that "rename" is clearer. Mysekurity, do I understand you correctly that you want different texts depending on the namespace? If so, could you please explain? It seems rather confusing to me to use different descriptions for the same function. -- [[User:Jitse Niesen|Jitse Niesen]] ([[User talk:Jitse Niesen|talk]]) 02:10, 12 May 2006 (UTC)
:::::::The script I made would make articles have a "rename" tab, where as project, help and portal pages (where moves are more serious (like AfD) and likely to result in double redirects and confusion and should not likely be moved by newbies anyway). Renaming articles is more likely a spelling/formality thing that for things like MediaWiki (where moving is really like file moving) and Images (when moving is supported).'''[[User:Voice of All|<fontspan colorstyle="color:blue">Voice</fontspan><fontspan colorstyle="color:darkblue">-of-</fontspan><fontspan colorstyle="color:black">All</fontspan>]]'''<sup>[[user_talk:Voice_of_All|<fontspan colorstyle="color:blue">T</fontspan>]]|[[Special:Emailuser/Voice of All|@]]|[[Wikipedia:Esperanza|<fontspan colorstyle="color:darkgreen">ESP]]</fontspan>]]</sup> 02:55, 12 May 2006 (UTC)
::::::You seem to have forgotten the end of the first sentence, but I assume that your script does not change the name of the tab for project, help and portal pages. That would be confusing, in my opinion. You make a good point for MediaWiki name space, but that's a very special case: how often are those pages moved? -- [[User:Jitse Niesen|Jitse Niesen]] ([[User talk:Jitse Niesen|talk]]) 06:44, 14 May 2006 (UTC)
:::::::Rename is more clear and suggest that is is somewhat more minor that move. Project/portal pages are the true ___location of their topic, so renaming them is like moving them, and it creates a ton of double redirects, guarenteed. Articles are about a topic, but they are not the topic, there are usually 1 or a few correct possible titles. Articles are just articles, were as other namespaces either have serious technical effects to moving (MediaWiki, user JS, Images when they support it) or have a sense of ___location. WP:PP ''is'' at WP:PP, George Bush is not ''at'' Wikipedia's George Bush page. At any rate, new users shouldn't be moving projects anyway.'''[[User:Voice of All|<fontspan colorstyle="color:blue">Voice</fontspan><fontspan colorstyle="color:darkblue">-of-</fontspan><fontspan colorstyle="color:black">All</fontspan>]]'''<sup>[[user_talk:Voice_of_All|<fontspan colorstyle="color:blue">T</fontspan>]]|[[Special:Emailuser/Voice of All|@]]|[[Wikipedia:Esperanza|<fontspan colorstyle="color:darkgreen">ESP]]</fontspan>]]</sup> 06:54, 14 May 2006 (UTC)
::::::::I personally disagree. To me, "move" is more clear, as that's how I visualise it: the article being sort of pushed to a new ___location, leaving a redirect trail. IMHO, "rename" sounds like the article sort of stays in the same place, which it doesn't. Also, I guess I like "move" for historical reasons. I'm not diehard opposed to the change, but I certainly prefer "move" for my own preferences as well as being clearer.
 
:::::::: As a further note, I don't really understand the logic of not having the tab be the same for all pages. Isn't that even less newbie friendly than it is now? "Why do I have these two different tabs for different pages? They seem to do the same thing, but they must be different because the label is different, etc..." In addition, you'd have to have another MediaWiki page, one that said "rename page" for the articlespace, one that said "move page" for everything else. I don't really get why we'd want that. [[User:Snoutwood|Snoutwood]] [[User talk:Snoutwood|(talk)]] 07:21, 14 May 2006 (UTC)
:::::::: Oh, another note: If this goes through, don't forget to change the other skins to the new version as well. [[User:Snoutwood|Snoutwood]] [[User talk:Snoutwood|(talk)]] 07:22, 14 May 2006 (UTC)
:::My small script also changes "history" to "revisions" for articles, since that makes it more clear.'''[[User:Voice of All|<fontspan colorstyle="color:blue">Voice</fontspan><fontspan colorstyle="color:darkblue">-of-</fontspan><fontspan colorstyle="color:black">All</fontspan>]]'''<sup>[[user_talk:Voice_of_All|<fontspan colorstyle="color:blue">T</fontspan>]]|[[Special:Emailuser/Voice of All|@]]|[[Wikipedia:Esperanza|<fontspan colorstyle="color:darkgreen">ESP]]</fontspan>]]</sup> 19:10, 13 May 2006 (UTC)
*Move sounds more approriate to me. I'd support implmentation of a Rename function, but would want to limit it's use to admins as the potential for vandalism would be high with it. Page moving may not be the most newbie friendly function, but it is also a function that can cause signifigant problems when done incorrectly, maybe it shouldn't be as friendly as the ''edit'' button. — [[User:Xaosflux|<b><fontbig colorstyle="color:#FF9933"; face="font-family:monotype"><big>xaosflux</big></font></b>]] <sup>[[User_talk:Xaosflux|<fontspan colorstyle="color:#00FF00">Talk</fontspan>]]</sup> 11:27, 14 May 2006 (UTC)
**Page moves really should be like 95% semi rather than 99% of users, that would avoid much page moving nonsense. If anything is to be less freindly, it would be page moves for project pages/portals/help ect...that would cause even more trouble than the usual article move.'''[[User:Voice of All|<fontspan colorstyle="color:blue">Voice</fontspan><fontspan colorstyle="color:darkblue">-of-</fontspan><fontspan colorstyle="color:black">All</fontspan>]]'''<sup>[[user_talk:Voice_of_All|<fontspan colorstyle="color:blue">T</fontspan>]]|[[Special:Emailuser/Voice of All|@]]|[[Wikipedia:Esperanza|<fontspan colorstyle="color:darkgreen">ESP]]</fontspan>]]</sup> 19:36, 14 May 2006 (UTC)
*The rename is fine by me. [[User:BrokenSegue|''B''roken]][[User talk:BrokenSegue|''S''egue]] 18:23, 14 May 2006 (UTC)
::I prefer "move", perhaps because I am used to it, but... [[User:Prodego|<fontspan colorstyle="color:darkgreen">''Prodego''</fontspan>]] <sup>[[User talk:Prodego|<fontspan colorstyle="color:darkgreen">talk</fontspan>]]</sup> 21:30, 14 May 2006 (UTC)
:::I would keep "move" per Prodego, but I'd be in support of a rename function to be given to admins only which would be equivalent to a move w/o a redirect trail (or a move + deletion of the created redirects). I think this would be useful most espically in the case of userfication. --[[User:Charlie_Huggard|Charlie]]<sup>([http://cirl.missouri.edu/wiki/User:Charlie @CIRL] | [[User_Talk:Charlie_Huggard|talk]])</sup> 23:56, 14 May 2006 (UTC)
::::Perhaps...but I would see "move" as the one that one that created no redirects, "moving" a templatate would make inline refs to it break and become red, whereas renaming them would just make the redirect work so it still shows inline. "Renaming" an article will make redirects to its new name; moving it would break links IMO. Either way, this is even more complicated than my original idea, which is what I would like to stick to. "Rename" for naming things that talk ''about'' things and can only have certain correct names, "Move" for pages that ''are'' their topic and ''are'' the ___location of the topic, that we at Wikipedia can rename, and that moving is more even likely to cause double redirects (try moving WP:AFD).'''[[User:Voice of All|<fontspan colorstyle="color:blue">Voice</fontspan><fontspan colorstyle="color:darkblue">-of-</fontspan><fontspan colorstyle="color:black">All</fontspan>]]'''<sup>[[user_talk:Voice_of_All|<fontspan colorstyle="color:blue">Talk</fontspan>]]</sup> 03:17, 20 May 2006 (UTC)
:::::*shrugs* It seems to be simply a matter of intrepretation on how to define the terms at this point. Thinking abstractly about these actions, I think of "Rename" being an action where the article (file) has stayed in one place, just changed names, whereas "move" actually moves the article to a new ___location (therefore should create a pointer to the new ___location). Regards [[User:Charlie_Huggard|Charlie]]<sup>([http://cirl.missouri.edu/wiki/User:Charlie @CIRL] | [[User_Talk:Charlie_Huggard|talk]])</sup> 04:41, 20 May 2006 (UTC)
I support renaming it "rename". "Move" implies relocating something in physical space, which is a decent UI metaphor for the process, but "rename" is direct, not metaphorical, and in my opinion provides for a more intuitive user interface. — [[User:Philwelch|Phil Welch]] ([[User_talk:Philwelch|t]]) ([[Special:Contributions/Philwelch|c]]) 11:44, 15 May 2006 (UTC)
Line 365:
 
I'm not sure how easy of a hack this would be, but I think it would be a really cool feature if when viewing diffs instead of having a single (slightly ambiguous) "edit this page", we could have an "edit left version" and "edit right version". I would find it very helpful espically when viewing diffs for fighting vandalism. Thoughts/Comments? [[User:Charlie_Huggard|Charlie]]<sup>([http://cirl.missouri.edu/wiki/User:Charlie @CIRL] | [[User_Talk:Charlie_Huggard|talk]])</sup> 04:46, 20 May 2006 (UTC)
:And perhaps a revert to this version of the current (good for diffs where several editors vandalized)...I was thinking about this for a while...but just used popups....I'll get to work on the script (though it would be a personal thing), I will also make an edit button, (not just revert).'''[[User:Voice of All|<fontspan colorstyle="color:blue">Voice</fontspan><fontspan colorstyle="color:darkblue">-of-</fontspan><fontspan colorstyle="color:black">All</fontspan>]]'''<sup>[[user_talk:Voice_of_All|<fontspan colorstyle="color:blue">Talk</fontspan>]]</sup> 04:50, 20 May 2006 (UTC)
::Awesome! You rock --[[User:Charlie_Huggard|Charlie]]<sup>([http://cirl.missouri.edu/wiki/User:Charlie @CIRL] | [[User_Talk:Charlie_Huggard|talk]])</sup> 05:15, 20 May 2006 (UTC)
 
Line 396:
</nowiki></pre>
::::Is this similar to what you were looking for? -- [[User:Jitse Niesen|Jitse Niesen]] ([[User talk:Jitse Niesen|talk]]) 06:07, 20 May 2006 (UTC)
:::::I've finished a script that adds "edit this version" and "restore" to the older version (left side) for all admins. I would like to implement this in MediaWiki.'''[[User:Voice of All|<fontspan colorstyle="color:blue">Voice</fontspan><fontspan colorstyle="color:darkblue">-of-</fontspan><fontspan colorstyle="color:black">All</fontspan>]]'''<sup>[[user_talk:Voice_of_All|<fontspan colorstyle="color:blue">Talk</fontspan>]]</sup> 18:07, 20 May 2006 (UTC)
 
It would IMHO be preferable to implement this directly in MediaWiki rather than by JavaScript. I've submitted a patch for this at [[bugzilla:6125]]. —[[User:Ilmari Karonen|Ilmari Karonen]] <small>([[User talk:Ilmari Karonen|talk]])</small> 22:24, 28 May 2006 (UTC)
Line 435:
});
</pre>
(Other ___location: [[User:Kylu/userlog.js]]) <b><i><fontspan colorstyle="color:#FF00FF">~Kylu ([[User:Kylu|u]]|[[User talk:Kylu|t]]) </fontspan></i></b> 04:31, 27 June 2006 (UTC)
 
*</s>'''Strong Oppose''' - [[User:GeorgeMoney|GeorgeMoney]] <sup>([[User talk:GeorgeMoney|talk]]) ([[User:GeorgeMoney/Help Me Improve|Help Me Improve!]])</sup> 18:18, 29 June 2006 (UTC)</s>
** Why? [[:m:Voting is evil|Voting is evil]], especially when there's no comments to indicate why you don't like it. [[User:Titoxd|Tito]][[Wikipedia:Esperanza|<span style="color:#008000;">xd</span>]]<sup>([[User talk:Titoxd|?!?]])</sup> 22:33, 30 June 2006 (UTC)
*** <s>Why?. Because a) if we really wanted to do a user log thing, we should integrate it into mediawiki just like the "user contributions" link. b) this is really useful, yes (and I have a different version in my monobook), but some people might not like it; if we keep putting "useful" stuff in the global js file, then there will be so many scripts running, that it will be useless. c) I really don't get this "coded by bookofjude, requested by kylu" business; First of all, "requested by anyone" is not very important and it should be removed; also, i'm sure that not only bookofjude could have written that; for example, I could go ask any of the JS programmers here "can you make a script that adds a user log button to the toolbox" and they would be able to do it, and if I added "requested by GeorgeMoney" it would kinda seem like an easy way to get my name into the global js file; it would be like saying "1/342 of the code was written by bob", completely irrelevant. d) if people disable js in their browser, then they won't be able to use this; like I said before, we don't want the entire project running on JS. --[[User:GeorgeMoney|GeorgeMoney]] <sup>([[User talk:GeorgeMoney|talk]]) ([[User:GeorgeMoney/Help Me Improve|Help Me Improve!]])</sup> 00:42, 1 July 2006 (UTC)</s>
Line 445:
::#I requested it, so while it's my responsibility, I don't quite understand it all (the regexes give me trouble, I'm sad to say.)
:: It's convenient, but not strictly needed. If it doesn't fly with people in this discussion (it's not a vote), the code's still sitting here and people are free to copy-paste into their own monobook and use it.
:: <b><i><fontspan colorstyle="color:#FF00FF">~Kylu ([[User:Kylu|u]]|[[User talk:Kylu|t]]) </fontspan></i></b> 05:34, 2 July 2006 (UTC)
 
*'''Whatever; support'''. [[User:GeorgeMoney|GeorgeMoney]] <sup>([[User talk:GeorgeMoney|talk]]) ([[User:GeorgeMoney/Help Me Improve|Help Me Improve!]])</sup> 06:01, 2 July 2006 (UTC)
 
:* It's still not a vote, but thanks. c.c;; Hey, George, if you've got a similar script, maybe we could take a peek at it, hey? Drop a direct link so the lazy among us don't have to dig through your monobook. :) <b><i><fontspan colorstyle="color:#FF00FF">~Kylu ([[User:Kylu|u]]|[[User talk:Kylu|t]]) </fontspan></i></b> 23:06, 2 July 2006 (UTC)
 
***The script was in my monobook until I installed lupin's antivandal tool, and that added 4 more links to the toolbox, so I had to remove it, and remove some links through CSS. [[User:GeorgeMoney|GeorgeMoney]] <sup>([[User talk:GeorgeMoney|talk]])</sup> 01:45, 4 July 2006 (UTC)
Line 455:
*'''Oppose''' - I'm changing back to oppose, because it adds an extra link to the toolbox, and the only "benefit" is that it saves '''1''' less click. All you have to do is press the "user contributions" link, and then press the "logs" link at the top. I really don't think we have to sacrifice an entire space, to save a click. Also, nobody added any id's to it, so people can't make it disappear through CSS even if they wanted to. [[User:GeorgeMoney|GeorgeMoney]] <sup>([[User talk:GeorgeMoney|talk]])</sup> 01:45, 4 July 2006 (UTC)
 
:* Okay George, you don't like it. It probably won't get included, then. You're good at this CSS/JS stuff, so can you show some changes so those of us who do like it can make it better? I seem to recall you said something about you having your own version of it, but atm I can't check. (wikipedia'ing instead of working! :D ) Thanks! <b><i><fontspan colorstyle="color:#FF00FF">~Kylu ([[User:Kylu|u]]|[[User talk:Kylu|t]]) </fontspan></i></b> 16:39, 4 July 2006 (UTC)
 
:** My version is somewhere on [[User talk:GeorgeMoney/monobook.js|the talk page]] of my monobook. [[User:GeorgeMoney|GeorgeMoney]] <sup>([[User talk:GeorgeMoney|talk]])</sup> 21:18, 4 July 2006 (UTC)
 
* Something like this would be extremely useful, and I already added it to my own monobook script file. The only thing is that a user's monobook doesn't load until after all the text and images have loaded, unlike the site-wide script, so it should be added there if possible. [[User:Titoxd|Tito]][[Wikipedia:Esperanza|<span style="color:#008000;">xd</span>]]<sup>([[User talk:Titoxd|?!?]])</sup> 22:33, 30 June 2006 (UTC)
* As an early reviewwer, I think this is a great idea, and have added it to my personal script for now. — [[User:Xaosflux|<b><fontbig colorstyle="color:#FF9933"; face="font-family:monotype"><big>xaosflux</big></font></b>]] <sup>[[User_talk:Xaosflux|<fontspan colorstyle="color:#00FF00">Talk</fontspan>]]</sup> 23:07, 30 June 2006 (UTC)
* When I tried adding this, I got double the [[Wikipedia:WikiProject_User_scripts/Scripts/User_tabs|User Tabs]] at the top. [[User:Gimmetrow|Gimmetrow]] 01:15, 1 July 2006 (UTC)
:* Happened the first time I used it also, I've not quite figured that out, but on a hard refresh the problem went away and hasn't come back. Suggestions welcome. :) <b><i><fontspan colorstyle="color:#FF00FF">~Kylu ([[User:Kylu|u]]|[[User talk:Kylu|t]]) </fontspan></i></b> 05:34, 2 July 2006 (UTC)
*I don't support this because it will cause all kinds of people's user scripts to mess up or have duplicates. What I would support is making custom JS more accessable to new users, like having a good centralized place for all major scripts, and what they do, kind of like the nagivation popups project page.'''[[User talk:Voice of All|<fontspan colorstyle="color:blue">Voice</fontspan><fontspan colorstyle="color:darkblue">-of-</fontspan><fontspan colorstyle="color:black">All</fontspan>]]''' 03:18, 5 July 2006 (UTC)
:*I still like the idea of having an inc(); function available globally, myself. I know the security concerns, but think people should be responsible for their own js security. Worst case scenario, they log out and post anonymously that their js is broken? <b><i><fontspan colorstyle="color:#FF00FF">~Kylu ([[User:Kylu|u]]|[[User talk:Kylu|t]]) </fontspan></i></b> 18:00, 7 July 2006 (UTC)
 
== Dynamic Navigation Bars ==
Line 471:
[obsolete code removed by [[User:Gimmetrow|Gimmetrow]]]
 
:Playing with it now, I'll get back to you on it. <b><i><fontspan colorstyle="color:#FF00FF">~Kylu ([[User:Kylu|u]]|[[User talk:Kylu|t]]) </fontspan></i></b> 05:51, 2 July 2006 (UTC)
 
::Cool. Just so it's clear, I want to be able to have a line that looks like:
Line 485:
Also, it would be nice to be able to specify some NavBars as shown, others as hidden. The current code hides all if there are more than one. This seems slightly odd, because a NavBox could be designed with one toggle intending text to be shown by default, but if it is used on a page with an unrelated NavBox it will be hidden by default. One way of doing this is to create another tag, <nowiki><span class="NavShow"> </span></nowiki>, that indicates the code to toggle this NavBox, but it would have to be ignored (or treated as a "hide") when there is only one NavBox on the page. [[User:Gimmetrow|Gimmetrow]] 13:25, 4 July 2006 (UTC)
 
:I'm afraid I had to disable it. I'm not sure why, but for some reason it seemed to slow down my browsing considerably. Perhaps it doesn't like some of my other scripting? I didn't leaktest it yet, but will check soon. <b><i><fontspan colorstyle="color:#FF00FF">~Kylu ([[User:Kylu|u]]|[[User talk:Kylu|t]]) </fontspan></i></b> 16:20, 4 July 2006 (UTC)
::What do you mean by "it"? What can we do? I've tested the code given above mostly using a local version with different function names - if anything is slower this should be noticeable as it creates a different type of navbox. Didn't notice anything substantial on two different systems. I've made some changes that reduce the amount of string processing, which might help. If you want to try my local version, see [[User:Gimmetrow/dynabars.js]] Test samples at [[User:Gimmetrow/sand]] [[User:Gimmetrow|Gimmetrow]] 16:39, 4 July 2006 (UTC)
 
:Sorry I wasn't more clear: I meant "it" as in my local copy of the script I was playing with. Considering I'm loading around 1.2MB in scripting (yes, seriously) across three domains (last I checked) while wikibrowsing, I imagine it may well be more of this being the straw that broke the camel's back, rather than anything actually wrong with the scripting. I'll retest the script later, thanks! <b><i><fontspan colorstyle="color:#FF00FF">~Kylu ([[User:Kylu|u]]|[[User talk:Kylu|t]]) </fontspan></i></b> 17:08, 4 July 2006 (UTC)
:: No, it is probably the getAttribute calls, I just didn't think this would be that much worse than what the code already does. I will work on a different approach over the next few days. [[User:Gimmetrow|Gimmetrow]] 03:06, 5 July 2006 (UTC)
:::Trying a different approach. Could you give [[User:Gimmetrow/dynabars.js]] a try and let me know if it still causes a major slowdown? Also, is there an easy way to identify popup windows so the dynabar code not try to process them? [[User:Gimmetrow|Gimmetrow]] 16:45, 7 July 2006 (UTC)
 
::::Will do. As far as Popups goes, I know Lupin uses a custom css for popups... [[User:Lupin/navpop.css]] I think? There's also a "development" version of the css, though, and I don't recall where it is. I figure, check and see if his css tags are extant in the window, and if so, don't use the dynabars. I'm css-retarded, so will let you figure out what I'm trying to say. Oh, you might want to talk to him too. :D <b><i><fontspan colorstyle="color:#FF00FF">~Kylu ([[User:Kylu|u]]|[[User talk:Kylu|t]]) </fontspan></i></b> 18:05, 7 July 2006 (UTC)
 
Another thing that would be great if we can 'expand/collapse' certain things with a + and - instead of show/hide. [[User:GeorgeMoney|GeorgeMoney]] <sup>([[User talk:GeorgeMoney|talk]])</sup> 18:45, 9 July 2006 (UTC)
Line 500:
Then every hide/show box will use these texts. As far as I know, with the current code there is no way to have these texts vary with different navboxes. This is another feature supported by my test code as shown above. However, using a specific text for hide/show in a navbox would prevent users from choosing different language texts. Although this is an English wikipedia, such a feature may not be desirable. [[User_talk:Gimmetrow|''Gimmetrow'']] 18:44, 17 July 2006 (UTC)
 
:Just FYI, the new code seems to work fine. Figured I'd let you know. (Testing off-wikipedia, btw) <b><i><fontspan colorstyle="color:#FF00FF">~Kylu ([[User:Kylu|u]]|[[User talk:Kylu|t]]) </fontspan></i></b> 23:24, 5 August 2006 (UTC)
 
== Where can I find out more ==
Line 506:
Where can I learn more about my Monobook.js file, such as neat tools I can install and how to write my own? --[[User:Ideogram|Ideogram]] 06:28, 3 July 2006 (UTC)
 
:Check out [[WP:JS]]. <b><i><fontspan colorstyle="color:#FF00FF">~Kylu ([[User:Kylu|u]]|[[User talk:Kylu|t]]) </fontspan></i></b> 07:02, 3 July 2006 (UTC)
 
::Oooh, cool. I have a lot of reading to do :-). --[[User:Ideogram|Ideogram]] 07:43, 3 July 2006 (UTC)