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

Content deleted Content added
Shadowbot3 (talk | contribs)
m Automated archival of 1 sections from MediaWiki talk:Common.js
 
(3 intermediate revisions by 3 users not shown)
Line 1:
 
<span id="63305692162" ></span>
==Link to subpages from the toolbox in certain namespaces==
<pre>
Line 68:
::I agree subpages link is useful, but since I already have it, and the suggested code is a bit bloated (i18n and stuff), personally I'd vote for leaving it a personal script and simply adding a good how-to into [[Wikipedia:Subpages]] — [[User:Alex Smotrov|Alex Smotrov]] 18:25, 29 May 2007 (UTC)
 
<span id="63305707702" ></span>
== [[MediaWiki:Geshi.css]] ==
 
Line 76:
:: Hmm.. it breaks the wikilinks. —''[[User:Ruud Koot|Ruud]]'' 22:37, 29 May 2007 (UTC)
 
:::Please discuss things here before implementing them, if you are 99.99% sure, and it is uploaded to 100,000 people then statistically you are messing up 10 people. Better that 10 or 20 people become 99.99% sure. [[User talk:H|<small><sup><fontspan colorstyle="color: #000">(</fontspan><fontspan colorstyle="color: #c20">H</fontspan><fontspan colorstyle="color: #000">)</fontspan></sup></small>]]<!-- Was HighInBC --> 22:48, 29 May 2007 (UTC)
<span id="63306316516" ></span>
== Overriding automatic deletion summaries for attack pages ==
 
Line 85:
 
:: Assuming you mean [[#Administrator.js]], if we do set up such a system this should obviously be placed there. In the mean time, the code is only nine lines (which isn't that much more than what the code to pull in an extra .js page would take anyway), and does absolutely nothing except on pages having <code>action=delete</code>. —[[User:Ilmari Karonen|Ilmari Karonen]] <small>([[User talk:Ilmari Karonen|talk]])</small> 23:55, 6 June 2007 (UTC)
<span id="63306445402" ></span>
== Exalead search engine ==
 
I added [[Exalead]]'s search engine. The idea has been floated at Village Pump and was not opposed. My experience is that users complaining about our search engine on [[m:OTRS|OTRS]] are pleased with Exalead's solution. [[User:David.Monniaux|David.Monniaux]] 11:43, 8 June 2007 (UTC)
<span id="63307061356" ></span>
== Navigation and general appearance ==
It might enhance the convenience of the page if the following was done for each script:
#Preface each one with <code><nowiki>//<span id="Script name"></span><source lang="JavaScript"></nowiki></code>. "Script name" is a simple description of the script.
#Added <code><nowiki> * Shortcut: [[MediaWiki:Common.js#Script name]]</nowiki></code> to each code description
#Ended each one with <code><nowiki></source></nowiki></code>
Line 100:
 
::This might be a good idea. But I wish somebody would also clean the code a little bit, removing unnecessary *************** lines, meaningless comments, etc. And there are so many places where the code could be shortened, making it easier to read at the same time ∴ [[User:Alex Smotrov|Alex Smotrov]] 14:49, 15 June 2007 (UTC)
<span id="63307407923" ></span>
==Help with a section please==
Hello, I would like to include this section to a Common.js on another wiki, but somehow it does not work, is there any other thing I have to change, many thanks in advance, --[[User:Spacebirdy|birdy]] [[User_talk:Spacebirdy|<sub>(:> )=|</sub>]] 23:47, 18 June 2007 (UTC)
Line 146:
:::Hi Alex Smotrov, thank You very much for this, and for the hint with the variables, it works now, but for some reason it kills the link to the mainpage itself while one is on the mainpage :( I don't understand why, --[[User:Spacebirdy|birdy]] [[User_talk:Spacebirdy|<sub>(:> )=|</sub>]] 15:05, 19 June 2007 (UTC)
 
<span id="63307778183" ></span>
== How to install ==
 
This may be obvious to some, but others seem to find it difficult to know what this article is all about. Perhaps it would be handy to place a comment near the top of these messages spelling out that one should view it's source and past the contents into the MediaWiki:Common.js article/message at your mediawiki site. I can tell you that I felt a little dumb having spent a few days figuring out something this obvious which a simple comment might have told me. --[[User:D0li0|D0li0]] 22:11, 21 June 2007 (UTC)
 
:Likewise I feel dumb for not understanding anything you just said. —<ttsamp>'''[[special:contributions/freakofnurture|freak]]([[w:en:user talk:freakofnurture|talk]])'''</ttsamp> 22:14, 21 June 2007 (UTC)
 
:This JavaScript code is not meant for installing on other sites. It is purpose-specific to English Wikipedia. What made you think that this is something you should install on another MediaWiki site? If there is something on the site leading people to think this code is ready-made for installation on other sites, it needs to be fixed. [[User talk:Mike Dillon|Mike Dillon]] 21:56, 23 June 2007 (UTC)
<span id="63308125771" ></span>
==Request: mainPageAppendCompleteListLink() rewrite==
I suggest rewriting this function as
Line 179:
::*
::: I'd agree if this was something in the content-area (which could easily lead to an almost infinite number of CSS stylings) but I consider this link part of the MediaWiki-interface (which are quite finite in their number). Using CSS ''might'' have a (likely negligible) performance benefit, under the assumption the CSS class can be assigned to the element before it is added to the document tree. —''[[User:Ruud Koot|Ruud]]'' 20:29, 24 June 2007 (UTC)
::::Well, if the code was moved into say MainPage.js… but since it's still here — okay, let it be CSS, since CSS ''there'' takes less space than Javascript ''here''. P.S. Don't forget that 'interwiki-completelist' is going to be <ttcode>id</ttcode> now, not <ttcode>class</ttcode> ∴ [[User:Alex Smotrov|Alex Smotrov]] 22:29, 27 June 2007 (UTC)
<span id="63308276156" ></span>
== CSD Script ==
 
I've been hosting for some time now a CSD user script which adds a drop down list of CSD criteria next to the wpReason box on the deletion page (ie: admins only). Would there be any opposition to adding this to Common.js so all admins have access to it by default? Of course I'd like us to do some more testing so it doesn't break people, but so far it works in IE6/7, Firefox and Safari with no issues. The project page is [[WP:CSDAR|here]], if you wish to look for more information, including the code. In addition, we'd need to finalize the wording of the deletion rationales, since this would be used on such a large scale. Thanks, <span style="color:red;font-weight:bold">^</span>[[User:^demon|<span style="color:black;font-weight:bold;">demon</span>]]<sup>[[User_talk:^demon|<span style="color:red">[omg plz]</span>]]</sup>&nbsp;<em style="font-size:10px;">14:25, 29 June 2007 (UTC)</em>
:I support this. &ndash; [[User:Steel359|Steel]] 15:20, 29 June 2007 (UTC)
::I don't mind but ONLY if inside [[#Administrator.js|Administrator.js]] (proposal above), the main file is big enough already ∴ [[User:Alex Smotrov|Alex Smotrov]] 16:15, 29 June 2007 (UTC)