[00:01:54] Do you know where I could find an example? [00:04:11] Well, somewhere in http://en.wikipedia.org/wiki/MediaWiki:Common.js, probably . . . [00:04:17] But that's rather large. [00:04:26] And may use who knows what custom functions. [00:04:28] !edittools [00:04:28] --mwbot-- CharInsert is an extension that enables the creation of JavaScript links which, when clicked, insert predefined text into the text box. These links are usually used in the "MediaWiki:Edittools" interface message. For more information, see < http://www.mediawiki.org/wiki/Extension:CharInsert >; for example usage, see < http://en.wikipedia.org/wiki/MediaWiki:Edittools >. [00:04:38] No, wrong one. [00:08:51] sweet, thanks [00:18:25] TimStarling, did you ever get my e-mail about ObjectArray? [00:18:31] *Simetrical finally remembered to say something about it on IRC [00:23:04] Simetrical: when? [00:23:11] TimStarling, maybe a week ago? [00:23:39] Anyone in here? [00:24:01] !ask | nwwaew [00:24:01] --mwbot-- nwwaew: Don't say "I have a question", or ask "Is anyone around?" or "Can anyone help?". Just ask the question, and someone will help you if they can. Also, please read < http://workaround.org/moin/GettingHelpOnIrc > for a good explanation of getting help on IRC. [00:24:18] does it have to break things? [00:24:30] anyone know how to delete all pages in a namespace? [00:24:32] 04(REOPENED) Show if current version is sighted in user contribs - 10http://bugzilla.wikimedia.org/show_bug.cgi?id=14814 +comment (10m.l) [00:24:51] I just upgraded to MediaWiki 1.13, and I'm getting errors from my Wiki.php file. [00:25:20] what was wrong with calling the same old hook? [00:25:28] It says that it's missing argument 5 for MediaWiki::Initialize, and it says it called member function getCheck() on a non-object. [00:25:51] *DenKain still has little idea what he is doing [00:26:19] TimStarling, nothing wrong with it, but it seemed redundant/messy to have a separate hook for each class. So if it was going to be fixed before 1.13, it would have been best to change the hook structure. [00:26:34] hi folks. how do i put a link directly to a category page? I put "See the category page at [[Category:Something]]" - but that obviously won't work :) [00:26:57] TimStarling, even without changing the hooks, I don't know what horrible things my patch might do to anything that tries to inherit from UserArray. I didn't consider that angle when I wrote it (which is why CentralAuth broke). [00:27:03] AaronSchulz, would you happen to know how to delete all pages in a namespace? [00:27:08] TimStarling, I just know that the current situation of copy-pasted code is horrible. [00:27:15] it's not redundant [00:27:26] ymmotrojam: lol, don't know of any fast way [00:27:35] hooks are reasonably fast as long as there's nothing in the hook array [00:27:55] if you hook UserArray instead of ObjectArray, it means the hook gets called less often [00:27:55] anyone? re: the link? [00:28:03] (i know, sounds n00bish. iyam who iyam) [00:28:15] and I don't know why you need a hook in ObjectArray [00:28:19] TimStarling, how many things will possibly be hooked into ObjectArray? Three? [00:28:21] eido: See the category page at [[:Category:Something]] [00:28:26] For the same reason you want one in UserArray, presumably . . . [00:28:27] ah, leading : [00:28:27] thanks anyways :-), *goes back to clicking delete a million times* [00:28:28] thank you :) [00:28:34] you could have hooks in the subclasses only [00:28:59] nwwaew, sounds weird. Maybe try re-downloading and re-uploading the files and reinstalling. [00:29:14] you're missing the point [00:29:15] TimStarling, one hook for each subclass, copy-pasted with five characters changed each time? [00:29:27] You could do that, sure . . . [00:29:40] it's not redundant [00:29:44] Simetrical, I'll probably have to do that. [00:29:53] Anyway, I don't really care as long as we can have different types of arrays like this that we can create with a few lines instead of copy-pasting the whole file like we have now. :) [00:30:13] it'd be redundant if it was some significant amount of code, a single hook call is not that [00:30:20] it's as factored as it can get already [00:30:59] say if someone wants to create their own subclass, a BlargArray [00:31:13] and they want quite a lot of BlargArrays, they're creating new ones in a tight loop [00:31:37] they don't want to be calling hooks that are registered for UserArray at every iteration of their tight loop [00:31:50] and if there are a lot of subclasses, there could be a lot of hooks [00:32:16] if you really want to make it shorter, you can just construct the hook name from the class name [00:32:51] wfRunHooks(get_class($this).'FromResult', array( &$array, $res ) ); [00:32:51] TimStarling, I considered that as well. I don't care which way it goes, really. Given that currently the constructor requires a database query result, I can't see the loop being very tight at the present time. [00:33:29] and, you ugly up the extension code [00:33:42] But it makes no real difference to me. The important point is 1) getting the functionality merged into one class that can be easily used as an array of arbitrary classes that satisfy the right interface. And 2) not breaking CentralAuth. [00:36:06] well, revert your revert, and change the hook to be precisely the same as it was before [00:36:16] then you won't break CentralAuth [00:40:44] is there a simple way of finding out how many pages there are on a mediawiki installation? [00:41:25] eido: Special:Statistics gives you sort of an answer [00:41:32] *eido clix [00:41:40] do you have direct access to the database? [00:41:54] no, actually, that's a very very good link [00:41:55] thanks ;) [00:41:59] yw [00:43:30] 03aaron * r39674 10/trunk/extensions/FlaggedRevs/ (FlaggedRevs.hooks.php FlaggedRevs.php flaggedrevs.css): Tweak contribs highlighting per bug 14814 [00:43:58] 03(FIXED) Show if current version is sighted in user contribs - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14814 +comment (10JSchulz_4587) [00:54:26] 03(mod) Show if current version is sighted in user contribs - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14814 (10m.l) [00:55:16] 03(mod) Show if current version is sighted in user contribs - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14814 (10m.l) [00:55:48] me again [00:56:54] so whats the little code snippet that shows the number of articles your wiki has? [00:57:17] Special:Statistics ? [00:59:05] What I mean is lets say on the main page it says "Welcome to my wiki, we have X number of articles." [00:59:38] Variable Output Description Versions [00:59:38] Entire wiki [00:59:38] {{NUMBEROFPAGES}} [00:59:43] http://www.mediawiki.org/wiki/Help:Magic_words [01:01:54] thanks [01:03:14] 03aaron * r39675 10/trunk/phase3/includes/parser/Parser.php: Remark static functions for performance. Same 15 test failures as before this change. [01:17:59] 03(NEW) 1. css "display: inline", 2. Negative top and bottom margin values - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=15246 15enhancement; normal; MediaWiki: General/Unknown; (dan) [01:21:08] 03(mod) 1. css "display: inline", 2. Negative top and bottom margin values - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=15246 +comment (10Simetrical+wikibugs) [01:40:48] 03brion * r39676 10/trunk/phase3/includes/specials/SpecialExport.php: (log message trimmed) [01:40:48] Part two of allowing Special:Export to work on very long page histories... [01:40:48] Part 1 was disabling the output buffers, allowing us to stream output continuously. [01:40:48] Part 2, here, is to use an unbuffered query to load the page/revision data, as [01:40:48] we do for the command-line scripts. (This is done in what Tim assures me is a [01:40:50] portable, database-neutral way, unlike all the maint scripts which still use old [01:40:52] hacks.) This lets us actually stream the *input* -- otherwise streaming the [01:41:04] 03dale * r39677 10/trunk/extensions/MetavidWiki/ (9 files in 4 dirs): updates for templates, other minor fixes [01:41:18] 03dale * r39678 10/branches/MetavidWiki-exp/skins/ (mvpcf/style.css mvpcf.php): mvpcf skin updates [01:47:23] 03aaron * r39679 10/trunk/extensions/CheckUser/CheckUser_body.php: make block code slightly cleaner [02:14:35] 03(ASSIGNED) Preview with forms on the bottom - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=10874 +comment (10dan_the_man) [02:23:02] 03brion * r39680 10/trunk/phase3/includes/specials/SpecialExport.php: Disable the time limit during full-history export [03:04:50] Hi all, I have a (hopefully) quick question. I am trying to set up short URLs per suggested configuration in the Short URL article in the manual. [03:04:54] (http://www.mediawiki.org/wiki/Manual:Short_URL#Setup_steps) [03:05:21] I have root access, I'm using a pretty standard LAMP setup, and I'm running PHP as CGI, not via Apache module. [03:05:39] Everything works pretty well, the site is here: http://wiki.paragonforge.com/wiki [03:06:17] However, some old links are using the format of index.php?title=Article_title, and those URLs no longer work. They pull up Index.php (with a capital I). [03:07:01] <_mary_kate_> did you put index.php in the same directory as the wgArticlePath? [03:07:07] <_mary_kate_> btw, http://wiki.paragonforge.com/wiki is a 404 [03:07:10] Well, crud, hang on, it might be working now. [03:07:32] <_mary_kate_> you should use /w/index.php for the scripts and /wiki/Main_Page for the articles [03:07:44] <_mary_kate_> don't try to do /w/Main_Page and /w/index.php, it'll give strange problems (like this one) [03:08:02] Ack, something is broken, it isn't redirecting corretly. [03:08:58] Ah, I had changed a setting. ;-) http://wiki.paragonforge.com/wiki is working again. [03:09:49] However, I'm back to my original problem, URLs formatted as, for example, http://wiki.paragonforge.com/wiki/index.php?title=Atlas_Park don't work. [03:10:14] You're right, though, http://wiki.paragonforge.com/w/index.php?title=Atlas_Park DOES work. [03:10:20] <_mary_kate_> run this query in the database: TRUNCATE TABLE objectcache; [03:10:30] <_mary_kate_> then do a force reload in your browser and see if the links changed to /w/index.php [03:12:44] I truncated the objectcache table, and http://wiki.paragonforge.com/wiki/index.php?title=Atlas_Park is still redirecting to Index.php [03:13:01] <_mary_kate_> right, but what about the thing that generated that link? [03:13:09] <_mary_kate_> it should have the right link now, instead of that one [03:13:49] Well, the trouble is that other sites have links to http://wiki.paragonforge.com/wiki/index.php?title=Atlas_Park, and I hate for those links to suddenly break. [03:14:05] Internally within the wiki, everything seems to be pretty consistent. [03:14:11] <_mary_kate_> well, you could try something like this: Alias /wiki/index.php /w/index.php [03:14:23] Ooh, let me try that... [03:14:28] <_mary_kate_> you won't be able to create a page called Index.php anymore, but i imagine the trade off is worth it [03:17:23] No dice, I get an Apache error that "The Alias directive will probably never match because it overlaps an earlier Alias." If I swap them around, I'm back to redirecting to Index.php. [03:17:36] <_mary_kate_> do you use Alias or RewriteRule for your short urls? [03:17:48] Alias, within httpd.conf [03:17:56] <_mary_kate_> hmm, actually try it again, but write Redirect instead of Alias [03:18:18] Well, technically, within a virtual host .conf file that is Included from within httpd.conf. :-) [03:19:26] <_mary_kate_> actually, you might need Redirect /wiki/index.php http://www.example.com/w/index.php [03:19:30] <_mary_kate_> (full url) [03:21:34] Hey, that works. [03:22:10] Just out of curiosity, does anyone know why it's not recommended to just have MediaWiki installed under the /wiki subdirectory directly? [03:22:31] <_mary_kate_> because it creates a namespace collision [03:22:42] <_mary_kate_> does /wiki/FAQ refer to a page called FAQ, or the file FAQ that's included with mediawiki? [03:23:34] Ah, I see, so you're guaranteed that /wiki/FAQ is an article titled FAQ, whereas /w/FAQ is a filename named FAQ that is part of MediaWiki's installation. [03:23:52] <_mary_kate_> exactly [03:23:58] hi all. is there help available to use in Help:Contents pages? i seem to recall theres no help shiped because its not translated into enough languages, but i'm after english, so i figure there might be some [03:24:21] <_mary_kate_> another example, Wikipedia actually has an article called Index.php: http://en.wikipedia.org/wiki/Index.php [03:24:33] <_mary_kate_> if the real index.php were in /wiki/, things would be very bad [03:24:47] I honestly hadn't thought of that. [03:25:18] Where can I sign up for the _mary_kate_ fan club? :-) (Seriously, thanks, that helps a lot!) [03:26:11] ah, think i found it. sorry, should have looked that little bit longer [03:29:25] looks like it doesnt happen yet. oh well. [03:30:32] Whatchalookingfor? [03:31:50] Dantman: a downloadable copy of the help http://www.mediawiki.org/wiki/Project:PD_help to use on an internal company wiki [03:57:01] 03tstarling * r39681 10/trunk/debs/librsvg2/ (24 files in 3 dirs): librsvg 2.22.2 with Brion's security patch [04:01:20] http://bugs.php.net/bug.php?id=18829 [04:01:30] 'PHP is not perl, since arrays are bastards (the unwed child of a hash and array) there is really not a more efficient way to handle this, [04:01:32] without breaking things badly...' [04:01:44] TimStarling: ;) [04:08:13] it's pretty easy to do it efficiently [04:08:17] reset($array); [04:08:22] $k = key($array) [04:08:28] unset($array[$k]) [04:08:59] hi [04:10:12] you can reindex the array afterwards for an O(N) hit [04:12:00] hehe, well it's wontfixed [04:12:38] it has to be dealt with in the application, array_pop is slow by design [04:12:49] the solution is not to use it [04:14:30] Hi, i'm trying to set up an infobox, but I can't seem to get it to with with my mysql server, can anyone help me? [04:31:26] whenever i try to insert a image into a page on my wiki, it just says Image:http://www.mysite.com/folder/imagename.jpg how can i fix this?? [04:32:59] =( [05:03:14] 03(mod) recursive parsing extensions interfere with SMW - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=13841 summary; +comment (10ssanbeg) [05:08:48] I'm making an update from 1.10.2 to the latest, 1.13 and would like to know if there are any DB changes between updates... I don't have access to the DB, but I'm told that the whole server has a back plan via "networker", an app I'm not familiar with. I have access to the wiki files and can perform the update but since the instructions state to backup "gra_wiki" first, my sysadmin wants to know if there are any changes to [05:08:48] the DB [05:09:29] There are changes [05:09:32] to the DB [05:09:43] I gather that rather than go in an backup the DB individually via phpmyadmin, he would like to just use the server-wide backup "networker" [05:10:12] thank you Wyvernoid - that helps very much [05:10:12] Let him backup then [05:10:20] np [05:43:27] 03(mod) Excessively large offset specified in {{#time:}} causes timeout - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14898 +comment (10krimpet) [05:56:27] 03(mod) alphabetical order method for DynamicPageList - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14971 (10amgine) [05:58:15] 03(mod) alphabetical order method for DynamicPageList - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14971 (10amgine) [06:00:44] anyone here that may be of some assistance? [06:01:04] Just ask -_- [06:02:06] on my page here, i was wondering what would be the best way so that the sections are "aligned" with the images if you know what i mean, not all cramped up and not aligned with the correct section [06:02:06] http://www.evogarage.net/index.php/General_Info [06:03:52] Can you explain more? Where do you want the images to be? [06:03:54] http://en.wikipedia.org/wiki/Wikipedia:How_to_fix_bunched-up_edit_links [06:05:29] you see how the sections Evolution VIII and Evolution IX the image is within the section (because it has more information) well i want the sections above it to have the images only within that section [06:05:32] if that makes sense :x [06:06:07] ahh [06:06:11] you need to "clear" the floats [06:06:24] http://en.wikipedia.org/wiki/Template:- [06:06:24] could ya help me do that? :) [06:06:38] you want:
[06:06:51] or
[06:07:03] on enwp the template is called {{-}} [06:07:07] so i need to add that template to my page first right? [06:07:13] Template:- [06:07:15] well, to your wiki [06:07:16] yes [06:07:20] ok let me do that real quick [06:07:48] you don't need all the documentation or stuff, just contents:
[06:08:44] ok i added that template with only the
code [06:08:46] now what :) [06:09:25] thank you in advance for your help [06:09:53] then add {{-}}, to the end of each section [06:09:57] ==Section== [06:10:02] floating images, text [06:10:04] {{-}} [06:10:12] ==Section 2== etc [06:10:34] Are you guys using widescreen? [06:10:58] wow i love you so much splarka [06:11:01] thank you soooo much :) [06:11:14] little thing has been givin me a headache [06:11:23] monitors? not me, but clear should work horizontally any width [06:11:25] rar [06:11:47] I didn't see any problem here, so it might be the screen width :X [06:11:59] yes, screen width can be a factor, but nothing to do with ratio [06:12:13] i am using a widescreen monitor [06:12:14] on my laptop [06:12:38] but looks perfect now with splarkas help :) [06:13:01] I mean, someone with a 4:3 monitor set to 1600x1200 will have more horizontal space than someone with a widescreen at 1280x800 [06:14:05] ya im runnin 1680x1050 [06:14:24] anyway, {{-}} should work regardless of width [06:14:34] although on bigger width monitors, you will notice some extra whitespace sometimes [06:14:36] yupp it looks exactly how i wanted it [06:14:41] especially with a tiny bit of text and a large image [06:14:46] as long as its not all bunched up, thats fine with me [06:15:22] TimStarling: Would there be anything wrong with me changing it so that the edit form submits to action=edit rather than going to action=submit? [06:17:13] yes [06:17:27] you wouldn't want to do that unless you had a really good reason [06:21:20] that trick where action=edit&redlink=1 goes to action=view if user doesn't have permission to edit, I like the idea in https://bugzilla.wikimedia.org/show_bug.cgi?id=15242 that it could do this for other cases, such as if the page actually does exist [06:24:16] TimStarling: For what reason can't action=edit actually stay on it's own action? [06:24:30] because that's how it is [06:24:38] backwards compatibility [06:24:41] for what reason can't it? [06:25:56] Backwards compat has nothing to do with this... Just because action=edit would point to action=edit doesn't mean that action=submit won't still point back to action=edit [06:26:33] that only applies for applications that are in control of what action is used [06:26:43] if you actually want to know what will break, here are some things: [06:26:55] 1. squid log analysis [06:27:09] 2. site/user javascript [06:27:53] 3. MW extensions that fetch the action using $wgRequest to determine their context [06:28:25] 2++: non-writeAPI javascript that submits to it, as well as manipulates the
(some of mine do), as well as those that need to detect a preview (wgAction == 'submit') [06:29:22] 3) seems to be a particular killer. [06:29:37] *Werdna joins. [06:29:45] I've just had five hours of essay-based exams. [06:30:02] what subject(s)? [06:30:12] english "modules", and legal studies. [06:30:26] english comes in modules now? [06:30:38] and here I've been using the home kits... [06:30:50] Paper 1 is "Area of Study", which is one short-answer question, one creative, and one analytical piece. [06:31:02] Paper 2 is "Modules", which is three essays to unseen questions. [06:31:16] based on knowledge of texts not given to you in the exam. [06:32:54] I hated English class - even as a good writer, reading awful books and writing papers wasn't my thing. -_- [06:33:29] TimStarling: Is now a good time for asking about schema changes? [06:33:30] people who fail english classes usually become writers, or english teachers [06:33:42] <_mary_kate_> people who fail English become Americans [06:33:54] (and how come all the home economics teachers are divorced, eh?) [06:34:43] the only time I enjoyed it was senior year of HS, where we had to write a creative Kafkaesque piece. mine consisted of a man being turned into a sandwich. :) [06:37:40] Werdna: I don't know if there will ever be a good time for asking about schema changes [06:38:04] TimStarling: Well, is now a better time for asking about schema changes? [06:38:31] is there a list somewhere? [06:39:18] if you want to speed things along, you could write a script to automate the procedure [06:39:39] brion has asked me to do it, since it kind of sucks to have to spend a full day doing a schema change [06:39:54] Well, I could.. [06:40:02] I have the requisite master/slave setup here. [06:40:17] My question was in relation to an actual schema change for a feature I've written. [06:40:25] I posted to wikitech-l about it, but nobody cared :) [06:41:33] a proposed schema change? [06:41:45] right. [06:41:54] I implemented the whole "Users can change group rights" thing. [06:43:04] I think we had that once before [06:43:05] I've still got some cleanup to do (like copying the messages for the change page from centralauth), but it *works*, at least. [06:43:16] oh? [06:43:48] in the original version of the user groups feature [06:44:11] hi all, after I define my own namespace in the localsettingsi, it is possible to name the first tab (the article-tab in en.wikipedia) by myself? [06:44:28] How does action=submit indicate a preview? action=submit can mean edit, preview, or diffpreview? [06:44:46] preview or diff, but not edit (except that diff/preview still is edit) [06:45:08] Eh? [06:45:25] TimStarling: and what happened? [06:45:49] it didn't work [06:46:14] sn4ke: for your new namespace only? [06:46:31] Dantman: I think it's time for you to stop arguing that there is no bad side of this change, and tell us what the good side is [06:47:05] Werdna: it was only in a pre-release version, there were never any updater scripts [06:47:16] sn4ke: MediaWiki:Nstab-YOURNAMESPACE [06:47:36] for example, on en.wp the first custom namespace is Portal:, the tab shows the text from: http://en.wikipedia.org/wiki/MediaWiki:Nstab-portal [06:48:06] 03(NEW) Sighting not possible from difflink if only diff is shown - 10http://bugzilla.wikimedia.org/show_bug.cgi?id=15247 major; normal; MediaWiki extensions: FlaggedRevs; (pbirken) [06:48:13] (which also happens to be a portal) [06:48:32] I'm trying to make it easier for extensions to extend the edit form... like how Semantic Forms creates a new form based edit form. [06:48:37] is it just me, or does flaggedrevs take up a large part of bugzilla lately [06:49:18] TimStarling: as in, it was poorly-implemented, or it was a bad idea? [06:49:30] poorly implemented [06:49:52] One of the big bugs is to do with preview... [06:49:56] 03siebrand * r39682 10/trunk/extensions/MetavidWiki/languages/MV_Messages.php: Update [06:50:43] Splarka: there a are only 3 open bugs [06:50:46] ask brion about it, he was more involved than me [06:51:15] jep for my new namespace only, ah thx @ Splarka [06:51:52] does your feature allow the sysadmin to choose group rights from LocalSettings.php? [06:52:21] or would they have to change the DB? [06:52:31] Yes. There's also a config variable as to whether or not users can override the groups in LocalSettings.php [06:52:45] (whether they can revoke rights assigned in LocalSettings.php) [06:52:55] I believe that was the major concern with the old code [06:53:03] it was like the interwiki table, unconfigurable [06:53:07] Well, it's designed as a bolt-on. [06:53:08] no UI, no LocalSettings [06:53:15] well, there's a UI here, too. [06:53:22] the same UI you get for global groups. [06:53:29] I've stolen that UI and made global groups a subclass. [06:54:26] send brion an email about it [06:54:39] AaronSchulz: and how many closed/wontfixed, etc? [06:54:44] I sent one to wikitech-l a few days ago, presuming he'd see it there. [06:54:44] and mention that it does have these abilities [06:55:09] if you send it to wikitech-l, he can convince himself that it was aimed at someone else [06:55:16] and so that he doesn't have to answer it [06:55:16] Dantman: http://img393.imageshack.us/img393/576/hesaidsemanticga2.jpg [06:55:30] ;) [06:56:19] Presumably, memcached is enough caching, or do I need a filesystem cache too? [06:56:34] As Semantic as Semantic Forms is, it's still a viable use that other extensions do as well [06:56:54] 03(mod) Sighting not possible from difflink if only diff is shown - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=15247 (10JSchulz_4587) [06:57:07] Used to have Simple Forms, and I believe someone else had an extension which split up the page by headers and had a box for each one [06:57:17] ow, he said it again, ow ow [06:57:33] the word the knight of ni cannot hear [06:57:35] it needs to be fast on both a default installation and on wikimedia [06:58:26] default installations don't have memcached [06:58:47] yes, but on default installations, an extra query per pageview isn't a big deal. [07:00:14] a single query? [07:01:02] how many rows? [07:01:06] how much processing? [07:01:33] one query, one row for every right assigned to a local group, no processing. [07:02:43] *AaronSchulz wishes there was some way to make parser faster [07:02:59] AaronSchulz: rewrite it in C [07:03:15] too many MW dependancies [07:03:25] bah [07:03:26] rewrite it in C as a PHP extension. :) [07:03:37] C parser in PHP [07:03:49] so are you looking for an easy way to make it faster, or just a way? [07:03:54] InlineC? [07:03:56] (bonus points if you can actually find the Zend Engine II docs) [07:04:02] any way really, I've been staring at it for hours [07:04:20] I've stared at it for a lot longer than that over the years [07:04:52] that's not to say that a few hours won't bring gains [07:05:00] I've made lots of improvements in that sort of timescale [07:05:20] hello everyone, does someone know the syntax to use while using the extension Special:Maintenance/deleteRevision ? [07:05:42] I'm guessing the only improvements are small ones in the recursively called functions and stuff in loops [07:06:11] no, all over [07:06:25] real improvements? [07:06:38] the first one I did, I had a day named after me for it [07:06:49] so it must have been pretty real [07:07:54] *Splarka remembers the day of UNIQ due to raw sigs... [07:08:42] hey splarka, how do I use this command? MediaWiki:Nstab-YOURNAMESPACE [07:08:45] what sort of improvement are you looking for? [07:09:38] sn4ke: go to your wiki and edit the page by that name [07:09:49] speed [07:09:53] average case or special case? [07:10:01] big pages [07:10:07] moderate to very large [07:10:21] Nstab? No Stab? ^_^ heh [07:10:27] special cases are easier than average cases, generally [07:10:42] namespace-tab [07:10:54] ^_^ I know that... [07:11:08] *Splarka nstabs dan [07:11:18] so if you have a big page which is slow, and it's special in some way, then you have the opportunity for a big improvement [07:11:34] me ponders the stab = nstab problem [07:11:41] 2 megs of randomly whitespaced apostrophes? [07:12:31] and what do I have to write? the name of my namespace? [07:12:40] by optimising a loop which hasn't been optimised before, or by taking advantage of redundancy with some memoization [07:13:01] sn4ke: yes, in lower case, typically [07:14:39] 03mkroetzsch * r39683 10/trunk/extensions/SemanticMediaWiki/INSTALL: updated documentation of required DB rights: ALTER TABLE and CREATE TABLE only needed during installation [07:14:53] is there a manuel on the wikimedia-site? because it doesn't work.. [07:15:42] Manuel isn't that common of a name, you might not find one. ^_^ heh [07:16:04] AaronSchulz: make sure you have the right tools [07:16:17] xdebug is so useful that it's worth installing linux to get it [07:16:18] 03aaron * r39684 10/trunk/extensions/FlaggedRevs/FlaggedArticle.php: Use the proper title -> Id mapping (bug 15247) [07:16:42] that was all I used linux for, for a while [07:16:47] heh... [07:16:49] sn4ke: what is your namespace name? [07:16:53] ^_^ Ya, xdebug is nice [07:17:00] 03(FIXED) Sighting not possible from difflink if only diff is shown - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=15247 +comment (10JSchulz_4587) [07:17:10] TimStarling: that good? [07:17:16] *AaronSchulz needs a bigger harddrive [07:17:29] Splarka: my namespace name is "Portal" [07:17:41] it has a profiler that'll break down the time spent into functions for you [07:18:29] like the internal mediawiki profiler, except it doesn't require you to add wfProfileIn()/wfProfileOut() everywhere [07:18:44] and with far less overhead [07:18:54] TimStarling: isn't that what cygwin / cross-compiling is for? :) [07:19:09] have you ever tried to use mediawiki on cygwin? [07:19:22] <_mary_kate_> cross compiling is generating a binary on one system that runs on a different system. i don't think that's what you want here [07:19:42] _mary_kate_: sure, cross-compile xdebug for windows. [07:19:52] <_mary_kate_> why not just compile it under cygwin? [07:20:09] you could do that, too. that's why I mentioned it. [07:21:13] Splarka, you said you had some scripts that depend on action=submitl, could you show me some? [07:21:42] dan: no, I said I had some that modify the [07:21:59] masochists could also try compiling it under Vista's POSIX layer. :p [07:22:22] sn4ke: should work, link? [07:24:13] Any tips on places to look? I'd like to see what kind of things are being used to actually see if there is a way to do this while still being backwards compat [07:25:21] can't you do it without changing the action? [07:25:32] you're never going to find everything that uses it [07:26:04] not everything, but a general idea on what hacky things depend on it [07:26:05] *Splarka thinks [07:26:30] once you get an idea, it becomes easier to come up with many of the other posibilities just with thought [07:29:42] TimStarling: what's involved in doing that schema change script? [07:30:08] 03mkroetzsch * r39685 10/trunk/extensions/SemanticMediaWiki/INSTALL: ALTER TABLE actually also needed for first installation [07:30:46] What is action=editredlink from? [07:30:58] it was briefly used for redlinks [07:31:04] changed to action=edit&redlink=1 later [07:31:10] mhmm, thought so [07:31:12] per suggestion that it would break userscripts (heh) [07:31:22] I don't think it was ever live on wikimedia [07:31:47] ^_^ And yet, we point it to the edit page, but don't bother trying to treat it like redlink=1 [07:32:44] Werdna: to do a schema update: [07:33:02] for each slave, take the slave out of rotation in db.php, then perform the update on that slave for all databases [07:33:19] then put the slave back into db.php, preferably in 2-3 stages for cache warmup [07:33:44] when the slaves are done, switch masters [07:33:50] then perform the schema updates on the old master [07:33:52] and do the update on the master.. [07:33:58] repeat for s1, s2, s3 [07:34:05] aren't there two s2s? [07:34:14] the procedure for master switching is here: https://wikitech.leuksman.com/view/Switch_master [07:34:41] I'm implying that s2a is part of s2, and s3a is part of s3 [07:35:03] Actually, rather than simply breaking userscripts (I'll try to avoid doing that kind of thing), there may be room for improving userscripts, there's an extra thought I'm debating on... [07:35:51] TimStarling: What's the difference between s2a/s2? [07:35:52] pf-^turing_complete++; [07:36:37] s2a is a subset of the databases in s2 [07:37:10] there may be a slave that is only replicating that subset [07:37:14] but the master is the s2 master [07:38:01] so you have to make sure that you don't switch the s2 master to the s2a slave. [07:38:10] is there a nice flv player plugin f??r mediawiki? [07:38:38] well yeah [07:38:51] it's not a small task [07:39:50] I think the best way to do it would be to create a new LoadMonitor subclass that draws its configuration from a remote server [07:40:15] the remote server would store the configuration in an in-memory hashtable [07:40:43] !e FramedVideo marvxxx [07:40:43] --mwbot-- http://www.mediawiki.org/wiki/Extension:FramedVideo [07:40:46] and you'd provide administrative tools to edit it, and also a way for machines to edit it, during master change operations and the like [07:41:08] Krimpet: thank you [07:41:46] TimStarling: don't you mean a new LoadBalancer subclass? [07:41:58] and what if i want to upload a flv and host the video by myself? [07:42:02] hi marvxxx [07:42:08] you dont want to use that plugin. get the flowplayer extension [07:42:37] what is this, facewiki? [07:42:40] ah, sorry, I was wrong then [07:42:42] marvxxx: the flowplayer extensions has a discussion page get the code from there and you will need to add the "globla wgscript" as it mentions on the bottom [07:42:50] marvxxx, try http://www.mediawiki.org/wiki/Extension:FLVPlayer [07:43:06] no [07:43:10] which one is better from the both? [07:43:15] LoadMonitor is a new interface I introduced recently [07:43:18] Krimpet: i think the flowplayer is better [07:43:22] it's not quite powerful enough for this though [07:43:26] Krimpet: that one doesnt work with latest flowplayer [07:43:47] I don't know, maybe there's a simple way to do all this [07:43:49] oh, never mind me then :) [07:43:56] like parsing configuration files and editing them that way [07:44:03] TimStarling: I have the source file open. LoadMonitor seems to be something that checks a server to see if it's overloaded or not. [07:44:14] http://www.mediawiki.org/wiki/Extension_talk:FlowPlayerExtension [07:44:21] that was the idea of it, yes [07:44:32] How does that relate to master switches? [07:44:36] this code worked well for me - but i had to add global $wgScript to the main function [07:44:38] it could also depool servers [07:45:35] i will try this out. im planing to record screencasts in flv for our wiki and add them to the wiki [07:45:57] marvxxx: basically i took that flowplayer code and tweaked it for my needs. it's very simple but works well [07:46:41] oh i need to configure flowplayer first? [07:46:58] well you need to install it on your machine along with a small javascript function which comes with flowplayer [07:47:02] yeh [07:47:17] here is that extension in action on my wiki. http://www.exotica.org.uk/wiki/Magnetic_Fields_%27Revenge%27_Party [07:47:24] TimStarling: by unsetting that server in scaleLoads? [07:47:42] yes [07:48:57] Why not use memcached instead of a dedicated server with an internal hash table? [07:51:16] it may well be possible to use memcached [07:51:40] is that prohibitively slower than a dedicated server? [07:51:53] oh, no a dedicated server would be slower [07:52:13] because memcached has a PHP extension? [07:52:14] but it would be simpler [07:52:43] you could configure the external scripts to write to the dedicated server without reading the mediawiki configuration [07:52:55] there's less ways for it to go wrong [07:53:05] exobuzz: it looks well [07:53:19] hello [07:53:40] you can write to memcached without the MediaWiki configuration... [07:53:55] the only issue I can see is figuring out which server to write to. [07:54:22] I don't think it's a good project for you to work on just yet [07:54:49] switching masters as a whole, or using memcached? [07:55:01] switching masters, applying schema updates [07:55:16] fair enough. There isn't a lot of room for errors. [07:55:32] there's a lot of ways master switches can go horribly wrong [07:55:44] yeah, this is a job for tim [08:12:29] 03(mod) Link with action=edit&redlink= 1 leading to existing page should redirect to plain view - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=15242 +comment (10dan_the_man) [08:24:22] 03aaron * r39686 10/trunk/phase3/includes/SkinTemplate.php: minor refactoring [08:40:51] 03aaron * r39687 10/trunk/phase3/includes/SkinTemplate.php: [08:40:51] * Profile a tad more [08:40:51] * Code style tweak [08:43:45] 03tstarling * r39688 10/trunk/debs/ (11 files in 3 dirs): Split off the image scaler task to a separate virtual package, and added an rsvg dependency. Not installable yet because it depends on an ffmpeg package that I haven't written yet. [08:51:01] 03aaron * r39689 10/trunk/extensions/FlaggedRevs/FlaggedRevs.hooks.php: make InjectStyleForSpecial() faster [08:59:06] 03aaron * r39690 10/trunk/extensions/FlaggedRevs/FlaggedRevs.hooks.php: make parserMakeStableImageLink() and galleryFindStableFileTime() faster [09:02:30] hi all, it is possible to change the title of an article by a command? for example: i have my own namespace who called "test" and an article "testarticle" inside this namespace. Then the articlename title is "test:testarticle" but I would like to name this article "test" [09:03:17] i know, it's against the wiki-structure, but I would like to try something [09:03:38] it is currently not possible without nasty javascript hacks [09:04:12] there is the DISPLAYTITLE command, but it allows only names that normalize to the same, i.e. it allows iPod for IPod, but that's it [09:04:20] in 1.14 it will be possible to disable this restriction [09:05:24] ah okay [09:05:31] thx [09:15:09] it is possible to disable a category from it own category-list? [09:16:19] eh? [09:17:13] 03aaron * r39691 10/trunk/extensions/FlaggedRevs/FlaggedArticle.php: delay text fetching [09:19:42] why is the category in itself? remove the tag or template in that category with that category [09:20:00] eg [[Category:Foo]] shouldn't be on the page of that title [09:21:10] ah I've discovered the mistake.. [09:22:39] e.g. i have the article "products" and then I make a redirect to "Category:Products" the Products-article will be listet in the "Category:Products" [09:22:45] AaronSchulz: you know about logging. How do I add a new type of log from core? [09:23:01] also, am I supposed to be adding new types of delete log entries in extensions? [09:23:18] if they are needed, yes ;) [09:23:47] problem comes when displaying deletion log on viewing a deleted article. [09:23:53] extension massages not loaded :( [09:24:00] look in defaultsettings.php or an extension for example [09:24:03] $wgLogTypes[] = 'stable'; [09:24:04] that's the rub [09:24:05] $wgLogNames['stable'] = 'stable-logpage'; [09:24:06] $wgLogHeaders['stable'] = 'stable-logpagetext'; [09:24:08] $wgLogActions['stable/config'] = 'stable-logentry'; [09:24:26] ah, that's where I add them. [09:25:02] you can add the messages and load them always [09:25:18] I could, but that would suck. [09:25:18] so they show at logs...or you can you put them with the specialpage [09:25:35] which apparently get loaded [09:27:37] Wernda: I like to put the wfLoadExtensionMessages( 'x' ); at the top of special pages [09:27:48] AaronSchulz: I do that, but it's not a special page. [09:27:52] it's this page: [09:28:30] http://epstone.net/testwiki/index.php?title=Long_title_is_looooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooong&action=edit&redlink=1 [09:31:46] Wernda: you can always use $wgLogActionsHandlers [09:32:03] then load the messages in the callback [09:32:41] AaronSchulz: sounds hacky. Why don't we load all extension messages before displaying any log? [09:33:04] Yuck [09:33:25] presumably we do it before we load recentchanges and Special:Log. [09:33:57] Weren't we doing it when we load a MediaWiki: page? [09:35:16] http://www.mediawiki.org/wiki/Manual:Configuration_settings#Debug.2Flogging which of those will dump me the SQL query on the screen? [09:35:55] Werdna: did you set $wgLogNames ? [09:36:05] LogPage should autoload the extension messages [09:36:16] O RLY? [09:36:27] the issue is I'm adding to the delete log type [09:36:29] log page* [09:36:45] well there is the issue I'd wager [09:37:18] hmm [09:37:22] then again, shouldn't matter [09:37:40] it's for the deletion queue, so I think it should be mixed in with the rest of the deletion log. [09:37:51] the the loading code there sucks [09:38:13] is there a mediawiki syntax for assigning a color to a certain text? [09:39:11] bar [09:39:15] duuuuh [09:39:23] Werdna: extracts don't call logname() [09:39:44] Drazha, what are you trying to add color to? [09:39:55] Lady_Aleena: just random text in a page [09:40:22] Drazha, there is no wikicode for that, however, there is style="color:;" [09:41:06] Lady_Aleena: Werdna: thanks [09:41:14] Drazha, no problem. [09:43:59] 03aaron * r39692 10/trunk/phase3/includes/LogPage.php: Load messages in a less shitty and more consistent manner for extensions. Previously relied on logName() being called. Failed miserably for extracts. [09:44:00] Werdna: ok, try it now [09:47:19] hehe, abstract class fun [09:48:32] AaronSchulz: <3 [09:52:42] ok, another one MediaWiki question: is there a shortcut or smth for the "edit this page" link that I can insert in the page text? [09:54:47] Drazha: now by "this" do you mean the page you are on, or another page? [09:54:59] Splarka: I mean the page I am on [09:55:04] [{{fullurl:{{FULLPAGENAME}}|action=edit}} edit this page] [09:56:17] ^_^ [{{fullurl:{{FULLPAGENAME}}|action=edit}} {{int:edit}}] heh [09:57:13] int: is... bad [09:57:34] why? [09:58:40] ^_^ I can agree that it's poorly named... but I quite like it... [09:58:49] I changed int recently, did you see? [09:58:52] {{#ifeq:{{int:edit}}|Modifier|[[I am french]]|[[I am not french]]}} [09:58:57] it doesn't use a separate parser anymore to do the transform [09:59:07] did ya? which r? [09:59:16] it means it won't quite give the same output as wfMsg() [09:59:57] but it means it won't use the wrong page title anymore [09:59:58] why didn't you close https://bugzilla.wikimedia.org/show_bug.cgi?id=14404 then? [10:00:19] presumably he didn't see it. [10:00:20] because it's still open [10:00:30] so it is still an issue? [10:00:42] that's why the user language is in the page rendering hash [10:00:52] ---> int: is... bad [10:00:58] mmm, loopy flowchart [10:01:22] so what is int for? [10:01:26] is there a reason to use {{int:}} other than to get the user language? [10:01:35] 03aaron * r39693 10/trunk/extensions/FlaggedRevs/FlaggedArticle.php: [10:01:35] * Delay text loading [10:01:35] * Improve short-circuit [10:01:37] I thought that was the only remaining point of it [10:02:43] so... [10:03:22] {{#ifeq:{{int:edit}}|Redigera|[[bork bork bork]]|[[not swedish]]}} [10:03:31] which of those two ends up in the link table for the page? [10:03:42] depends on who edits it [10:03:50] that's what you get for using {{int:}} [10:03:50] T_T [10:03:53] then I stand by my earlier statement [10:03:56] int: is bad [10:04:21] do null edits and purges count? [10:04:32] how about the first person to view a page after it expires from memcache/squid? [10:06:31] anyway, could it be broken for parserfunctions (post-PF expansion for example, so the parser function sees "{{int:Edit}}")? and could it only return unparsed code like msgnw: ? [10:07:06] then it could be used for good, like the above [~~~ {{int:Edit}}], but not for #switch or calling messages with links/transclusions/fluffyunicorns [10:08:29] yes, null edits and purges count, no it's not broken for parser functions [10:08:46] int is a parser function itself, and works like any other [10:09:29] I mean *could* it be broken for parserfunctions? [10:09:37] (expanded after) [10:12:17] I don't think so [10:13:24] mmm, could any usage of {{int:}} not register image/transclusion/category/external links? [10:13:50] {{#ifeq:{{int:edit}}|Modifier|[[Category:Pages last edited by frogs]]}} [10:14:11] eg, treat them as dummy/ghost code? [10:14:30] {{#ifeq:{{int:edit}}|Modifier|[[This link appears in the page but not in the links table]]}} [10:15:00] 03aaron * r39694 10/trunk/extensions/FlaggedRevs/FlaggedArticle.php: delay fr_text loading here too [10:17:07] I think it's fine how it is [10:18:49] hello [10:20:02] some bugs are more trouble than they're worth [10:20:48] it's a rarely used, obscure feature [10:21:12] there are, however, some important use cases which aren't affected by the bug [10:21:20] so it's not worth just removing it to avoid the bug [10:21:33] How about a $5 donation required to use it... (man, do I wanna get stabbed or what) [10:21:44] and the bug can be documented in the same place as how they found out about it [10:21:55] WONTFIX/LATER? or is that a bug to keep open to remind people it is there? [10:21:56] which must be somewhere, you don't just guess that {{int:}} must do something [10:22:04] *Splarka grins [10:22:57] just because I've said I'm not interested in fixing it doesn't mean it won't be fixed [10:24:56] I might even end up fixing it myself [10:25:18] I never would have rewritten the whole preprocessor stage just to fix bug 6563 [10:25:34] it just so happens that in rewriting it, that bug came within reach [10:26:19] 4899 was the tracking bug [10:26:29] not 6563 [10:30:11] 03aaron * r39695 10/trunk/extensions/FlaggedRevs/FlaggedRevs.hooks.php: short-circuit redirect hook [10:30:57] fair nuff [10:31:19] there is always the holistoc approach... [10:31:36] 03(mod) Excessively large offset specified in {{#time:}} causes timeout - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14898 (10ed.nr.drie) [10:31:42] parse it for each language for the purposes of populating the tables [10:31:56] separate tables for each language. [10:31:57] *Werdna ducks. [10:32:00] eg, whatever possible categories it could go into for {{#switch|{{int:}}...}} [10:32:12] heh [10:32:32] *Lady_Aleena glowers at her monitor. [10:32:43] I think it would have to count as 10x expensive parser function, heh [10:35:25] *Lady_Aleena tried mixing two things that don't want to mix. She sulks. [10:37:02] oil and water? oil and al gore? [10:37:26] class=""check-icon" and {{Click}} [10:37:39] without the typo [10:39:23] which stylesheet is check-icon defined/used in? [10:39:39] Splarka, I have no clue, you were the one to give it to me. [10:39:53] ahh, right, en.wp common.css [10:40:04] .check-icon a.new {display:none;} [10:40:16] so you want to hide an for an [10:40:21] if the image doesn't exist? [10:40:38] Right, well, it won't hide the link if I use {{Click}} [10:41:21] I tried this ... {{Click|image=The sun1.jpg|size=20px|link=User:Lady Aleena/test}} [10:41:27] The image and link still showed. [10:41:31] probably because imagemap doesn't use [10:42:33] Hence the glower and sulking. [10:43:42] *Splarka grins [10:44:02] well, you could ask for... [10:44:13] .check-icon a.new, .check-icon p.error { [10:45:02] Splarka, well I might have if I had known WHAT to ask for. [10:45:13] hmm, actually, #iferror should work [10:45:18] preg_match( '/<(strong|span|p|div)\s[^>]*?class="error"/', $test ) ) { [10:46:14] Um, I don't read code that well. [10:46:15] except it doesn't seem to, hmm [10:48:43] Tim: does #iferror not work with #tag ? [10:49:08] http://p.defau.lt/?6fzNP_PCMVsb7bawK2zjqg returns 'error noerror noerror' [10:49:12] We should really have proper implementation for {{Click}} [10:49:32] Werd: more proper than #tag:imagemap ? [10:50:12] does that work properly? [10:50:19] see click on en.wp [10:50:45] http://en.wikipedia.org/w/index.php?title=Template:Click&action=edit [10:52:02] werd: dirty hack, they could enable one of the icon/imageclick type extensions [10:52:24] or maybe a global variable like $wgAllowImageLinks [10:52:41] [[Image:Foobar|link|[[Yo Mama]]]] [10:52:56] or regex for Manual:$wgAllowExternalImagesFrom [10:54:33] I mean, it is basically allowed now, with imagemap [10:54:52] might as well make it a simple global to enable with native code [10:57:25] *Lady_Aleena watches the conversation with interest, however, she can not contribute too much to it. [10:58:23] *Splarka ponders hilighting Tim per his previous question... with trepedation... [10:58:36] TimStarling: does #iferror not work with #tag? can't get it to work with #tag:imagemap [10:58:41] *Splarka hides [11:00:16] I think DanTMan is doing some link stuff [11:00:49] Whatzat? [11:00:56] Dantman: find a nice (un-semantic-clever) syntax for making image links if enabled via $wgAllowImageLinks so people don't have to install imagemap just for image links [11:01:22] by "image links", he means a link that links somewhere other than the description page. [11:01:37] :/ Dude... I'm trying to keep the parser consistent and extendable... not get my improvements reverted.. [11:01:58] *Splarka grins [11:02:01] heh [11:02:54] ;) Large parser changes + contravercial feature = brion's wrath [11:03:06] controversial. [11:03:07] I think have link as a parameter, which would be exclusive of thumb and frame [11:03:13] Dantman, its for me. :) [11:03:26] Lady_Aleena: ah, he'll change his mind now... [11:03:29] linkto= [11:03:34] *Lady_Aleena giggles. [11:03:37] [[Image:Foo|link|page name]] , if disabled use current behavior, 'page name' becomes alt text [11:03:44] if enabled, link to page name [11:03:49] Eeeeeeeeeeewwwwww.... [11:03:58] you'd never want to thumb/frame an imagelink, I imagine [11:04:30] :/ And then when someone uses [[Image:Foo.bar|Caption text]] [11:04:41] what would that break? [11:04:50] same behavior, unless they add 'link' [11:04:58] Oh, I see [11:05:15] However, I'm not so fanatic about that [11:05:16] [[Image:foo|link|page|caption]] [[Image:foo|link|page]] (caption == page title) [11:05:28] <^demon> Bah, why is Roan never here :( [11:05:49] 2param syntaxes don't look that pretty to me [11:06:13] well, yah [11:06:16] it should be [[Image:foo.bar|link=baz|caption]] [11:06:21] And it especially does not look like something people will understand by just looking over the page [11:06:33] Yes, I to would vote for the = syntax [11:06:37] Werd: kinda... changes the whole system of parameters in images [11:06:40] ^_^ Though I like linkto= [11:06:41] that is ugly to me [11:06:44] how about [11:06:54] [[Image:Foo|link|[[page]]]] [11:06:56] [[Image:Foo|link|[[page|text]]]] [11:07:05] intuitive [11:07:16] Splarka, assignable parameters have never existed... of course syntax is going to be different [11:07:18] uses [[link]] syntax [11:07:30] That 2param syntax allone is non-standard [11:07:35] Cause there is no standard [11:07:41] if no [[]] is specified, don't link... [11:07:50] sometimes you want an unlinked image [11:08:01] [[Image:foo|link]] = no link at all [11:08:08] [[Image:foo|link|foo]] = no link at all, but caption [11:08:16] [[Image:foo|link|[[foo]]]] = link to foo, caption is foo [11:08:22] [[Image:foo|link|[[foo|bar]]]] = link to foo, caption is bar [11:08:31] *Dantman debates the contravercial feature implementation of a img: prefix... [11:08:44] *Splarka shudders [11:08:51] {{img:Foo.bar|25px|linkto=FooBar}} [11:09:15] who decided [[Image:]] should embed an image, [[Category:]] should categorize a page, [[en:]] should modify the sidebar, but anything else should just link to the page? [11:09:22] bad language, no cookie [11:09:31] ;) That's why I suggested it [11:09:40] *Lady_Aleena hides the cookies. [11:09:41] {{#img:}} anyway [11:09:45] *Splarka grins [11:10:06] {{#category}} {{#image}} {{#iw}}, need a timemachine and cluebat [11:10:09] It's a method of jumping to a better syntax without breaking old syntax [11:10:50] *^demon takes a cookie from Lady_Aleena's secret stash [11:10:51] sure, but definitely don't use {{img:}} [11:10:54] #img or nothing [11:11:21] *Lady_Aleena rotfl. [11:11:31] 03nikerabbit * r39696 10/trunk/extensions/Translate/TranslatePage.php: * Support passing parameters with subpage syntax [11:11:38] ^_^ {{#category:FooBar|sortkey|displaytext=displaytext}} (Or was it something else that people were requesting for extending from the Category syntax?) [11:12:10] However I don't like #iw since that shows up in the Languages bar [11:12:28] #il maybe, but #interlanguage or #interlang sounds better [11:12:39] {{#category:FooBar|sortkey|pagedisplaytext=FooBar (maintenance)|hidden=true|categorydisplaytext={{PAGENAME}}}} [11:12:47] heh [11:12:48] <3 feature creep [11:13:02] ^_^ Good thing is parserfunctions can have multiple names [11:13:24] yes, never (probably) gonna happen in core [11:13:29] Now... onto making EditPage explode... [11:13:41] but linkable images could be done native (disabled by default)... [11:13:49] it would sure be nice if !imagelink said... [11:13:56] $wgAllowImageLinks [11:14:17] hello [11:14:18] 03nikerabbit * r39697 10/trunk/extensions/Translate/ (8 files in 2 dirs): * Second try at wikipage translation [11:14:50] Nike: do you always say hello before committing? [11:14:56] *Splarka offers cookie [11:15:20] why does PHP hate my sneaky syntax? [11:15:22] return isset($g = $wgGroupPermissions[$group]) && isset($r = $g[$right]) && $r; [11:15:42] *Lady_Aleena watches the conversation in awe. [11:15:49] <_mary_kate_> Werdna: how can isset($a = $b) ever be false? you just assigned to $a, it has to be set [11:15:51] Wooow... I think I just suddenly switched to taking a liking to previewonbottom... [11:15:59] _mary_kate_: oh, damn. [11:16:11] I'll move the $g to outside the isset [11:16:21] wait, that won't work either [11:16:25] ^_^ It can, because PHP in all it's shittyness considers null as unset [11:16:36] (and how about a damn preference to disable edittools...) [11:17:07] we like watching you suffer. [11:17:11] ;) Unlike in lisp, where not only can you set a default and use named parameters... But you can actually get a boolean telling you if someone actually inputted a parameter or not [11:19:19] (defun foo (bar (baz T p-baz)) (unless p-baz (format T "T_T You didn't pass me a second variable, don't you like me?")))(foo :bar) [11:20:16] *Dantman rewrites all use of [[ and ]] in Wiki software into (( and )) [11:20:18] heh [11:20:32] Um, is that good or bad? [11:20:45] which? [11:20:49] I got lost a while back. [11:21:04] whatpoint? [11:21:07] Splarka: no [11:21:33] *Lady_Aleena doesn't know how to write programming code. She can't get from one end of a javascript to another without getting lost and confused. [11:21:53] You talking about my code? [11:22:09] *Lady_Aleena wishes progrmming was as easy as markup. [11:22:18] Dantman, general terms. [11:23:05] ^_^ Oh, though don't try to understand what I wrote... That was lisp... you'll have a easier time understanding normal Turing languages... Lisp is something completely different [11:23:49] Dantman, the most I can do is write scalars, arrays, and hashes in Perl, but doing anything with them is beyond me. [11:24:02] <^demon> Werdna: What are you trying to accomplish with said syntax? [11:24:06] *Lady_Aleena gave up trying to learn Perl. [11:24:29] <^demon> Lady_Aleena: Don't give up :-) [11:24:35] ^_^ Lisp's power lies in it's use of paenthesis... Most of Lisp is programmed in lisp, unlike other languages you can define your own internals [11:24:51] Hmmm [11:25:07] ^demon, I had tried, but it is too hard to write things backwards. [11:25:09] What is the kind of thing you are always having issues with in programming? [11:26:05] *Lady_Aleena wanted to write a random generator in Perl, but writing backwards drove her nuts, plus the fact that she couldn't get it to work even with all the help she got. [11:26:23] hmmm? [11:26:25] Uhm. [11:26:38] Oh, I wouldn't really suggest Perl as your first language [11:26:39] perl -e "print rand();" [11:26:42] *Lady_Aleena is a gamer. [11:26:51] I honnestly never got into it [11:27:06] Dantman, the reason I tried Perl is because I don't have anything else that will work in my webspace. [11:27:16] Dantman: I would. But then, I had C as first language. [11:27:22] I don't have PHP, ASP, MySQL, or any else cool. [11:27:28] <^demon> Dantman: It was my 2nd :-) [11:27:37] PHP, JavaScript, or Python... The second might agravate you a bit though [11:28:00] PHP aggrevates ME. [11:28:05] Dantman, I thought Perl looked smaller than javascript. [11:28:12] I recomend Python people say it's a good learning point for beginners... And you can install it on just about any system [11:28:19] But only from the point of view of Administration, Programming and Code Review. [11:28:27] Dantman, I don't have Python on my ISP. [11:28:41] Why do you need it on your webserver? [11:28:47] I would have to pay about $10 more a month for anything cool. [11:29:16] ;) BlueHost offers quite a good package for only arround $7/mo [11:29:19] Dantman, I was trying to write web pages with Perl, adding some functionality to my site. [11:29:26] And there are plenty of free PHP hosts [11:29:44] Free=Ads [11:29:55] ^_^ Actually... no [11:30:04] AwardSpace had no ads at all [11:30:05] Also, Free=no control [11:30:17] free=never free :) [11:30:21] You can't get PHP and you think you have control? [11:30:23] *^demon has the best host ever, get full control and everything. [11:30:34] *Dantman likes his VPS [11:30:39] <^demon> Localhost :-) [11:30:42] heh [11:30:55] I had free space once, uploaded a good bit of my site to it. I had a hard drive crash and lost it all, and then when I went to get the stuff back, I found to my horror that the free space was gone too. [11:31:01] ^_^ I used to run my family computer as a webserver [11:31:08] heh [11:31:17] I lost my first PHP project in a crash [11:31:36] Hence, I do not trust free servers anymore. [11:31:38] ^_^ Not that it ran 24/7 anyways [11:31:59] <^demon> I came across some stuff I wrote a few years ago recently....god how much things changed since then. Whoo PHP4 non-oop :-P [11:32:43] Old PHP4 code? http://glc.awardspace.com/ http://glc.awardspace.info/ [11:32:47] Dantman, so, do you think there is a way that I can use an image that is a link to an article on Wikipedia, but for it not to show up if the page does not exist without using #ifexist?> [11:32:55] ^_^ Horribly ood... but.. [11:33:19] O_o [11:34:36] <^demon> Site Cookie Not Detected? Hehe, you spewed a banner when they didn't have a cookie? [11:34:37] <^demon> Hehe [11:35:55] Dantman, I am running afoul of the parser function ceiling on a page I am building. [11:36:14] Heh... old stuff [11:36:53] <^demon|away> Later folks. [11:37:03] The layout archive was the key feature [11:37:36] Bye ^demon|away [11:45:56] 03(mod) Allow limited indirection by redirects, up to $wgMaxRedirects levels. - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=11644 (10roan.kattouw) [11:58:43] why would the name of an extension appear just above my wiki logo? see: http://elinux.org [12:02:01] it is printing it's name? [12:02:04] some debug echo? [12:02:18] hi, how is it possible to edit pages via MediaWiki API? http://www.mediawiki.org/w/api.php?action=edit says unknown_action Why? - howto says it available at 1.13 [12:02:31] yes [12:02:36] but it can be disabled [12:02:40] as it is on WMF wikis [12:03:16] and how can i edit pages? [12:03:54] don't use the api [12:04:47] what's the reason for disabling this? [12:05:06] 03(mod) 1. css "display: inline", 2. Negative top and bottom margin values - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=15246 (10dan) [12:07:55] it wasn't enabled [12:07:58] does anyone know, how it is possible to disable the title at the mainpage? [12:07:58] i want to upload a bigger FLV file...its added to extensions which are allowed. but when i try to upload it nothing happens..no failure message...its just doesnt get uploaded. no error in apache logs [12:07:59] Platonides: thx, I'd stupidly left some text above the beginning of the extension script that wasn't properly commented out [12:08:15] :) [12:08:26] marvxxx, check the upload limits at the server and php.ini [12:08:44] Platonides: that i didnt thought of that [12:09:05] Platonides, ok, then what was the reason for not enabling editinig in MediaWiki Api ;-) [12:09:19] Platonides: this shouldnt be the problem [12:09:32] i have 20MB allowed and the video is 13MB big [12:09:57] check the error log [12:10:13] nothing happens is a blank screen? [12:10:35] Platonides: no error in the apache logs [12:10:46] nothing happens means that it shows me a empty upload screen again [12:11:46] Agh... stupid edit page [12:13:36] is there a special mediawiki error page? [12:16:00] marvxxx, no [12:16:09] if there's an error it should be noted in the upload screen [12:16:22] or a confirmation one [12:16:34] such as "empty file", "forbidden extension", or "file exist, overwrite?" [12:16:53] it just reloads the upload page [12:17:13] do i get an error when the file is not allowed to upload? i mean the extension [12:17:18] if the post data is too big perhaps it's just being stripped out [12:17:32] that would explain that behaviour [12:17:41] marvxxx, yes [12:18:11] i will rise the upload size....but i will see if it helps [12:19:06] Platonides: nope...didnt helped [12:19:15] 200MB should be enough for 13MB [12:20:44] http://www.mediawiki.org/wiki/Manual:Configuring_file_uploads [12:20:55] this tells me that it should give me an error if it would be the filesize [12:21:17] what's the limit at apache? [12:21:32] Hi, how can i make certain page title not appear at the top of it? [12:21:42] Platonides: you mean php.ini? [12:21:50] is there no wiki markup for
? and also why is it common practise to use : :: for indentation, because they use definition lists right ? which is not really semantically correct.. why not something which uses blockquote which is far more suitable surely ? [12:21:56] Platonides: upload_max_filesize = 200M [12:22:13] i mean something like LimitRequestBody [12:22:34] exobuzz, i think you can place
verbatim [12:22:45] you can. but that defeats the point of having wikitext [12:22:45] Also, i'm working on an extension for my server, and what can i do to publish it when it's done? [12:23:02] Platonides: in the apache configuration? [12:23:13] i mean shouldnt blockquote be used for standard indentation rather than : :: ::: which is bad use of definition lists ? [12:24:55] 03(mod) Watch pages for a few days only - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=6964 (10jlerner) [12:25:53] Platonides: i didnt put anything like LimitRequestBody in the apache config [12:25:58] In EditPage, why do we have things like $this->preview and $this->formtype? [12:25:59] and nothing is written in it [12:27:00] 03(mod) public and private watchlists - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=7467 (10jlerner) [12:28:30] 03(mod) Indicate number of users watching a page for privileged users - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=10753 (10jlerner) [12:29:54] 03(mod) Special: Watchlist enhancement - allow return of removed items to list - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=12030 (10jlerner) [12:30:44] hm.. why nobody wants to answer my questions? i tried searching myself [12:30:46] 03werdna * r39698 10/trunk/phase3/includes/Xml.php: PHP Sucks. Having a value of 0 was making $value appear as false, so you couldn't set a value when adding an option. Fixed this up with a strict check. [12:31:07] exobuzz: using blockquotes for indentation is semantically just as wrong as using definition lists. [12:31:16] erm, isn't it expected behaviour for most languages? [12:31:24] exobuzz: it *should* be simply
[12:31:38] Duesentrieb: what is the solution then ? the problem with the definition list, is there is no easy way to style it without wrapping a div around it. [12:32:04] 03(mod) Special page for recent changes in unwatched articles - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=13063 (10jlerner) [12:32:15] Duesentrieb: you dont think indented text should be marked as so with some actual markup ? [12:32:17] exobuzz: how would that be better with a blockquote? [12:32:28] aww [12:32:38] >> Indent? [12:32:39] e7th04sh: hold on a sec. it's a css hack [12:32:52] exobuzz: html is suposed to be semantic. it does nto have markup for "indent". [12:33:20] exobuzz: an indentation is nither a quite, not a definition. so
and
are both semantically wrong and should not be used. [12:33:22] Duesentrieb: well.. it wouldnt i guess. [12:33:31] exobuzz: to get a simply typographical effect (indent), use CSS. [12:33:33] i think we should have something though.. [12:33:54] i mean some wikitext which indents which uses neither then ? [12:33:56] exobuzz: if HTML has something like for indenting, well, that would be great. but it doesn't. [12:33:59] which uses margin [12:34:17] exobuzz: imho ::: should render to
[12:34:27] abusing dl for it sucks [12:34:34] i would be happy with that [12:34:38] And is there some easy way to allow usernames begin with small letter? [12:34:42] it's basically left over from the never-used ;foo:bar syntax [12:34:48] then i can style my default definition lists to be inline without messing up indentations [12:34:50] that is my problem [12:35:13] i want "title: definition\n" for my lists.. but it messes with "indentation" [12:35:14] e7th04sh: no. user names have to be valid page names, and i think they are forced to upper case even if you allow lower-case titles in general [12:35:29] i use ;foo:bar all the time [12:35:35] thank you [12:35:39] for various lists [12:35:40] !csshideheader | e7th04sh [12:35:40] --mwbot-- e7th04sh: To hide the header on the main page, you need to add this CSS to the wiki page [[MediaWiki:Common.css]]: "body.page-Main_Page h1.firstHeading { display: none; }". If your main page's title is not "Main Page", you'll need to change it accordingly (look at the class on the tag in the HTML source). [12:35:59] Duesentrieb: so.. maybe you can push to get this changed in mediawiki ? [12:36:25] exobuzz: good then. anyway, the right thing would be to change the parser to handle : separatly from ;..:, and render the former as
[12:36:33] i agree [12:36:37] exobuzz: or, to remain compatible, use dl but assign a special class. [12:36:46] exobuzz: file a feature request [12:36:54] there's probably something there already [12:36:59] you can push just as well as i can. [12:37:01] ok will do [12:37:07] you are more popular [12:37:08] :-) [12:37:11] the fastest way to get stuff done is always to do it yourself [12:37:43] e7th04sh: that factoid talks about the main page, but it's true for any page [12:38:19] i cant upload flv files. its allowed by LocalSettings and uploadsize is ok in my php.ini but i always just get back to the uploaddialog without a error message. no error message in my apache log. anyone has a idea? [12:38:37] marvxxx: do other files of similar size work? [12:39:22] Duesentrieb: so there is arleady https://bugzilla.wikimedia.org/show_bug.cgi?id=4521 [12:39:37] i hope i can find a bigger size file [12:40:07] Duesentrieb: looks like simetrical goes for the blockquote [12:40:32] exobuzz: replacing one abuse by another? that sucks big time. [12:41:09] hello Duesentrieb [12:41:14] exobuzz: anyway... read and add your 2?? [12:41:17] Hey Nikerabbit [12:41:19] yep [12:41:26] thank you again [12:41:38] exobuzz: ideally, submit a patch :) [12:41:41] Duesentrieb: doenst look like that it works [12:42:37] so it's a size problem. try to figure out if a file half that size works. [12:42:46] yes it does [12:42:54] so, try 3/4 of the tsize :) [12:43:03] the file was around 13 MB and i checked a 7MB file [12:43:03] if you care to find out what the limit is [12:43:11] knowing that sometimes helps to identify the problem [12:45:28] 10MB doesnt work [12:46:41] 9 neither [12:47:02] but where can i check for that? i thought its just php.ini i have to take care of when its about upload size [12:47:10] 03(mod) Definition list abused for indentation purposes - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=4521 +comment (10buzz) [12:50:39] ok post_max_size should be resized too [12:51:24] unbelievable...now i get a mediawiki error that the file is damaged ;-) [12:52:56] Agh... so much strewn throughout that friggin EditPage function [12:54:51] When I'm calling parse(), what should I give for the options array? [12:57:12] 03werdna * r39699 10/trunk/phase3/includes/SiteConfiguration.php: Add "+setting" type code (adding to the existing global) into getAll, since that is what we use on Wikimedia [12:57:18] There is no options array? Thats a ParserOptions object as I remember [12:57:49] Depending on where you are, you may actually have a better option than using parse [12:58:07] I'm in an extension [12:58:24] What do you think I should use? [12:58:46] :/ That doesn't help [12:58:56] Extension is a highly generic term [12:59:04] What matters is where you're calling from [12:59:28] ParserFunctions hook, tag hook, somewhere in the article area, some hook, a special page, etc... [13:00:46] AAAaaaaaaggghhhh... damn you EditPage! [13:01:22] from a tag hook [13:02:09] What do you think I should use? [13:02:17] What are you parsing? [13:02:40] the contents of the tag [13:03:08] does anyone know, how it is possible to disable the title at the mainpage? [13:03:35] Use $parser->recursiveTagParse( $text ); [13:03:48] It's meant for those recursive calls [13:03:59] Calling ->parse is going to screw things up [13:04:01] really, I only need to expand templates and variables. [13:04:08] thanks [13:04:09] Oh, just those [13:04:12] Waitasecond [13:05:11] sn4ke: add to CSS : body.page-Main_Page h1.firstHeading { display:none; } [13:05:33] or whatever page-NAME is in (view page source) [13:05:36] Try replaceVariables [13:05:50] that also expands templates? [13:05:53] Yes [13:06:19] thank you so much [13:06:20] ^_^ Oh fun... I actually understand the parser [13:06:24] :) [13:06:58] I used to be like everyone else... Utterly confused an afraid of it... heh [13:07:06] T_T Corruption! [13:07:59] :/ Now if I could only fathom the horrid organization of EditPage [13:08:06] hmm, it's not doing what I want it to... [13:08:20] What's it doing? [13:08:43] I included the tag in a template, which I put on another page with an argument, but it still shows {{{1}}} [13:08:53] Hmm ok ya... [13:09:07] I suppose that part is meant for use where you actually know the current $frame [13:09:15] The newer parserfunctions have that, but not tags [13:09:58] Is there any way to make it work? [13:10:22] Just use $parser->recursiveTagParse( $text ); for now [13:10:37] :/ Stupid parser [13:10:39] *Splarka blinks [13:10:54] i get an error that my file is corrupt or has the wrong externsion....but it has the right extension and is not corrupt. i get it with different larger files too...the rror [13:10:59] if you want to expand wikicode in a , use {{#tag:tag|parameters}} ? [13:11:09] You know the tag callbacks are actually called in extensionSubstitution :/ Which is passed the $params and the $frame... [13:11:31] (or make a #parserfunction instead of a to begin with) [13:11:41] It's perfectly viable to pass them a frame [13:13:22] it works with #tag: [13:13:50] but I would much rather use it as a tag... how would I pass a frame [13:14:44] s are ugly, but there is no tasting for accounts, er, no accounting for tastes [13:15:39] I will need to pass fairly large things to the tag... won't a parserfunction look ugly then? [13:15:52] *Dantman tracks down blame on the father of the horrid manchild called Editpage [13:16:22] indeed it will, but s in general are annoying [13:16:31] *Werdna eats VasilievVV [13:16:54] *VasilievVV supposed Werdna will do it [13:16:56] why is that? the frame buisness? [13:17:02] hello Werdna :) [13:17:12] VasilievVV: why'd you make me use array_merge_recursive? :( [13:17:18] there are already some allowed html,



    1. ...etc [13:17:33] and some magic transclusion things, [13:17:46] and some formatting things, , [13:17:49] onlyinclude? [13:18:14] Werdna: because I thought it worked :) Anyway, I'm writing a better merging function now [13:18:22] xml tags throw a whole 'nuther monkey wrench in,
       etc
      [13:18:43] 	you make a very good point... you think multi line input to a parserfunction looks better... so it shall be
      [13:19:04] 	also bad are the ambiguities twixt {{template}} {{magicword}} {{parserfunction}} {{{templateparameter}}}
      [13:19:22] 	VasilievVV: what's wrong with array_merge?
      [13:19:24] 	;) The nice thing about parserfunctions is rather than multiline input, you use parameters
      [13:19:24] *Splarka 	shrugs, personal opinion
      [13:20:26] 	in what cases do i get the corrupted file upload error?
      [13:20:30] 	Oh god... nowonder EditPage is so horrid
      [13:20:35] 	so they're both bad?
      [13:20:38] 	i tested it now with two mediawikis...and its the same problem
      [13:20:42] 	s are good for things that generally need to preserve whitespace, linebreaks, and integrity without accidental parsing, like pre, poem, math, hiero, imagemap
      [13:20:54] 	i even increased the limitrequestbody in php.conf
      [13:21:32] 	#parserfunctions are good for... things that depend on wikicode, {{#ifexist:{{TALKSPACE}}:{{PAGENAME}}|[[{{TALKSPACE}}:{{PAGENAME}}|talk page]]|no talk page}}
      [13:21:44] 	Werdna: it doesn't handle subarrays. E.g. if default settings have $wgGroupPermissions has key 'sysop' and overriden $wgGroupPermissions has key 'sysop', the eariler will be overriden by the latter, not merged
      [13:21:49] 	since you seem to want to pass parameters to it, you *can* use #tag, but seems easier to just make it a pareserfunction
      [13:22:00] 	what some people do is make both, #foo and 
      [13:22:08] 	jlerner: thx
      [13:22:31] *Shaiaqua 	starts looking up how to make a parserfunction
      [13:23:40] 	http://www.mediawiki.org/wiki/Manual:Parser_Functions
      [13:23:50] 	er
      [13:24:06] 	Help:Parser Functions
      [13:24:08] 	I think.
      [13:24:09] 	an example anyway
      [13:24:16] 	Werdna: may you show me a configuration, under whcih you did actually test r39582?
      [13:24:37] 	what's r39582?
      [13:24:43] 	this has been my test case, most of the time
      [13:25:01] 	Shaiaqua, start here: http://meta.wikimedia.org/wiki/ParserFunctions
      [13:25:02] 	Werdna: interwiki userrights changes
      [13:25:24] 	hello
      [13:25:30] 	(no commit this time, Splarka)
      [13:25:37] 	hah
      [13:25:40] 	Lady_Aleena: um...
      [13:26:04] 	Splarka, I know I know it's a redirect
      [13:26:14] 	VasilievVV: I didn't test it directly. I tested each component of it. I can see the problem, though.
      [13:26:16] 	wrong wiki, wrong topic...
      [13:26:16] 	Erm...
      [13:26:28] 	that is about the extension called ParserFunctions
      [13:26:29] 	Lady_Aleena: We're talking about writing
      [13:26:29] 	I used this to test the siteconfiguration stuff
      [13:26:31] 	$c = new SiteConfiguration; $c->settings = array( '+x' => array( 'foo' => array('fred' => 'bar'), '+home_wiki' => array( 'george' => 'boo' ) ) ); $x = array( 'baz' );
      [13:26:40] 	Oh, I will shut up now.
      [13:26:44] 	and then used debugging output statements to verify that everything else ws going okay.
      [13:26:52] 	Werdna: that's why you got broken-by-design feature which didn't handle anything correctly
      [13:27:08] 	it's not broken by design.
      [13:27:28] 	It misses some impotant parts
      [13:27:29] 	It's broken because it needs to use a better array merging function.
      [13:28:26] 	Werdna: not only. Read http://lists.wikimedia.org/pipermail/wikitech-l/2008-August/039056.html
      [13:28:54] 	$magicWords['example'] = array( 0, 'example' ); what is the zero?
      [13:29:59] 	The first item in the array is case sensitive
      [13:30:23] 	anyone ever tried the flowplayer extension?
      [13:30:24] 	The 0 is used as a placeholder to bump things over so that 'example' won't be case sensitive
      [13:30:27] 	VasilievVV: okay, so one minor bug, and oversight and a shortcoming.
      [13:30:31] 	the bug and oversight are fixable.
      [13:30:47] 	The shortcoming is a pain, but it's better than using the *local* groups to populate the list.
      [13:31:12] 	that does not make the feature "broken by design"
      [13:31:26] 	At worst, it has a shortcoming in that it doesn't nail every single group.
      [13:32:03] 	There's no need to harass me about it.
      [13:32:38] 	Agh...
      [13:32:41] 	ahh, thanks
      [13:33:02] 	:/ No wonder people using the messages hook get things screwed up when editing things
      [13:33:19] 	wfMsgWeirdKey is used to grab text, and since that doesn't use the db, the hook never gets called
      [13:33:51] 	Werdna: I'm not harassing you. I got tons of valerian drops taken while writing a function to get group permissions of another wiki and trying to point you some major problems
      [13:34:27] 	T_T EditPage makes me want to kill someone...
      [13:34:33] 	VasilievVV: Yes, and thank you for looking over it. But it's certainly not a "broken-by-design feature which didn't handle anything correctly"
      [13:35:06] 	Sorry for calling it such
      [13:35:25] 	now, what's wrong with array_merge_recursive?
      [13:35:28] *Werdna 	reads manual
      [13:36:15] 	oh, I see the problem.
      [13:36:16] 	lame.
      [13:37:09] 	http://rafb.net/p/pCuFUe72.html - brion showed it here
      [13:37:15] 	question, is there an established process for taking over responsibility of an extension listed on MediaWiki.org that appears to be abbandoned ?
      [13:38:23] 	SignpostMarv: try contacting the author?
      [13:38:55] 	I have
      [13:39:06] 	VasilievVV: okay, I wrote a better merging func
      [13:39:09] 	Werdna: how are you going to get $wgGroupPermissions for another wiki?
      [13:39:10] 	email, user talk page, extension talk page
      [13:39:15] 	heh, that was clever of me
      [13:39:26] 	jlerner: the author hasn't made any contributions to the wiki in over a year
      [13:39:32] 	VasilievVV: I might merge the array that I collect this way with a SELECT DISTINCT ug_group FROM user_groups;
      [13:39:44] 	which extension?
      [13:39:50] 	VideoFlash
      [13:39:58] 	http://en.wikipedia.org/w/index.php?title=Wikipedia:Village_pump_(technical)&oldid=233094213&diff=next (clever bit: links to its own diff)
      [13:40:10] 	Werdna: and if it is a group which should be only be promoted by stewards and is not promoted to anyone yet?
      [13:41:25] 	is there a way to use VideoFlash with local videos?
      [13:41:43] 	jlerner: I was requested to submit my modification to the admins of a wiki- they said they'd feel more comfortable I either forked or took over the extension
      [13:42:11] 	marvxxx: drop in support for file and data URIs ?
      [13:42:44] 	i mean not local in local harddrive..local in uploaded flv videos in mediawiki
      [13:42:53] 	VasilievVV: userrights-interwiki gives rights to /all/ interwiki rights.
      [13:43:07] 	I thought that was a neater solution than cross-wiki addgroups/removegroups.
      [13:43:19] 	I might look into it :-P
      [13:43:41] 	Werdna: I mean if nobody is promoted to that group yet, what should it do?
      [13:43:44] 	however, there is still the issue of checking if there is any policy for assuming ownership of an extension
      [13:44:14] 	Could somebody please try connecting to my http at e7.glt.pl?
      [13:44:19] 	VasilievVV: well, I can't think of an easy way around that.
      [13:44:35] 	Easiest solution is tell the steward to go to the other wiki and do it themselves using userrights there :).
      [13:44:42] 	I imagine those circumstances will be rare enough.
      [13:44:43] 	Werdna: you were on the correct way, using $wgConf
      [13:44:52] 	im working the whole day already to get the flowplayerextension working...no chance
      [13:45:12] 	VasilievVV: I was going to use both.
      [13:45:38] 	Isn't that a bit reduduant to use both?
      [13:45:57] 	03shinjiman * r39700 10/trunk/phase3/languages/messages/ (4 files): Localisation updates Cantonese, Chinese and Old/Late Time Chinese
      [13:46:15] 	VasilievVV: as you say, neither will pick up all.
      [13:46:34] 	i used 
      to split a section in two columns as described here : http://www.mwusers.com/forums/showthread.php?p=27736 [13:46:48] Werdna: $wgConf will, if we use it correctly [13:46:54] but next section starts in the right column first, and only later flows to whole width [13:47:07] what would be the best way to force next section after columns ? [13:47:16] I wouldn't want to risk making some established snafu by just replacing the code with my mod and assuming ownership without checking in here first :-P [13:53:55] hello, what's the best solution for php5 + apache2-mpm-worker on debian? [13:54:21] recompiling php5? using php5-cgi? [13:56:15] T_T EditPage::getPreviewText horrifys me [13:57:26] Man I wish EditPage::getPreviewText was protected... [13:57:41] VasilievVV: can you look at this? http://pastebin.ca/1179644 -- it doesn't seem to work properly. [13:58:10] it doesn't work properly. [13:58:20] Werdna: array keys are usually not arrays [13:58:32] yannf: could recompile. be careful with what modules you use not all are thread safe. easier to use fcgid probably and php-cgi [13:59:09] VasilievVV: Where do I make that assumption? [13:59:20] $out[$key] is not an array key. [13:59:30] Hmmm [14:01:35] It works for me [14:02:00] *SignpostMarv wasn't aware PHP supported arrays as keys [14:02:34] thought it was scalar values only ? [14:02:38] VasilievVV: http://pastebin.ca/1179646 [14:03:28] SignpostMarv: it is [14:03:48] exobuzz, yes, i'd recompile if possible: so does any of the problematic php modules are needed for mediawiki? [14:03:51] Werdna: mixing numeric and string indexes is a very bad idea [14:04:13] VasilievVV: ooh, that's it. [14:04:16] stupid, stupid, stupid. [14:04:27] well spotted [14:05:21] 0 != '0' [14:05:34] if both are present, anyway [14:06:25] SignpostMarv: not really. For me, "0" == 0 [14:06:40] SignpostMarv, in PHP, 0 == '0'. [14:06:50] VasilievVV: heh, I know, I fixed a bug in wiki sets with that error a few hours ago :P [14:07:03] ah wait, it's false it's not equal to, since a non-empty string equates to true, yes ? [14:07:08] $ php -r 'var_dump( 0 == "0" );' [14:07:08] bool(true) [14:07:10] you couldn't remove a wiki set from a global group [14:07:24] $ php -r 'var_dump( (bool)"0" );' [14:07:24] bool(false) [14:07:32] SignpostMarv, welcome to PHP. [14:07:49] I hope you enjoy your stay. But I doubt it. [14:07:59] I'm quite familiar with PHP, I'm just using === and !== because of the loose typing quirks [14:08:14] 0 != '0' [14:08:23] That's not right. 0 !== '0' is right, sure. [14:08:46] aah this one again [14:09:03] 03werdna * r39701 10/trunk/phase3/includes/ (GlobalFunctions.php SiteConfiguration.php): [14:09:03] Use a nice fancy deep-merge function for merging arrays in SiteConfiguration [14:09:03] (newly written), and move the merging of config options and globals deeper into [14:09:03] get(), so we don't need to duplicate the same functionality in the entry points. [14:09:07] i have the answer you know.. .. php is sh*t.... [14:09:10] :) [14:09:26] But that doesn't help you for array indexes. $arr = array(); $arr[0] = 'foo'; $arr['0'] = 'bar'; var_dump( $arr ); [14:09:27] array(1) { [14:09:27] [0]=> [14:09:27] string(3) "bar" [14:09:27] } [14:09:34] Yay PHP! [14:09:57] SignpostMarv: comprasions aren't the only point. All standard functions messes up arrays with numeric strings. Try var_dump( array_reverse( array( '4' => 1, '5' => 2 ) ) ); [14:10:39] I believe that's what uasort() was invented for :-P [14:10:46] I think the big mistake with php happened when someone went "I want to build something to help me with my website.. i know. ill call it personal home page" and it was all downhill from there [14:10:53] I believe that's what real languages like Python were invented for. [14:12:01] i love that bug from earlier.php -r "strtotime('+1000000000000 hours');" only php can be so great. [14:12:02] ^_^ Try comparisons in Lisp, they're even more confusing' [14:13:05] 03werdna * r39702 10/trunk/phase3/includes/ (GlobalFunctions.php SiteConfiguration.php): *ahem* self-revert. Something weird happened with getAll() [14:13:13] 03(mod) Watchlist categories - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=5875 (10jlerner) [14:13:16] far too late to be coding. [14:13:17] exobuzz, isn't strtotime() just a wrapper around a GNU library function? [14:13:17] night, all. [14:13:58] Simetrical: dunno [14:14:36] i like php more than cobol though.. that has to be said [14:14:59] More than BASIC. [14:15:05] More than, oh, punch cards. [14:15:07] Not saying much. [14:15:11] im not one of those people who think that computer languages should be like written/spoken languages [14:15:26] I think Python does that well. [14:15:28] I added 'mm' to $wgFileExtensions -- directly in includes/DefaultSettings.php -- I tried uploading such a file, and got an U;load warning: "The file is corrupt or has an incorrect extension. Please check the file and upload again." [14:15:34] It's readable without being verbose or hard to predict. [14:15:45] Like using "and" instead of "&&" and "not" instead of "!", that kind of thing is nice. [14:16:02] Simetrical: im all for readable. i mean like cobol where its "ADD SOMETHING TO SOMETHING AND SUBTRACT SOMETHINGELSE" [14:16:12] SQL too. [14:16:14] Simetrical: & is a common operator [14:16:19] The problem with that is that it's verbose and hard to predict. [14:16:35] and/or do work in php and most other languages you know [14:16:38] VasilVV, did I say it wasn't? [14:16:50] ^_^ (and foo bar) [14:17:00] Simetrical: that means it's readable [14:17:22] i like to do "unless something {}" instead of "if (! something) {]" in perl [14:17:23] :-) [14:17:28] VasilVV, no it doesn't. Perl is also common, that doesn't mean it's readable. [14:17:52] ^_^ (when ...) (unless ...) [14:17:58] exobuzz, that does seem like an interesting construct, but ultimately not a very necessary one. [14:18:02] 03siebrand * r39703 10/trunk/extensions/Translate/Translate.i18n.php: Tweak 'translate-tag-noedit' [14:18:08] i wrote a nasty piece of perl earlier. i will functionalise it and clean it up but.. here we go.. http://malus.exotica.org.uk/~buzz/ft.txt [14:18:20] parsing a binary file in perl..ehm [14:18:25] !wgwgFileExtensions? [14:18:25] --mwbot-- I don't know anything about "wgwgfileextensions?". [14:18:30] !wgFileExtensions? [14:18:30] --mwbot-- I don't know anything about "wgfileextensions?". [14:18:42] :/ [14:18:48] !wg FileExtensions [14:18:48] --mwbot-- http://www.mediawiki.org/wiki/Manual:%24wgFileExtensions [14:19:10] Simetrical: perl has lots of stuff like that. but so does php. php is so function bloated.. [14:19:36] Python doesn't. :) [14:19:51] why preg_match and preg_match_all. wtf is wrong with one function with a parameter ? [14:20:04] (loop for i from 1 to 10 summing finally (format T i)) ^_^ [14:20:05] Simetrical: python is on my "to do" list :) [14:20:08] How about ereg_match? [14:20:17] And strpos. [14:20:24] yeh strpos.. wtf.. [14:20:25] And . . . how many other variants are there? Five, ten? [14:20:34] Which all do basically the same thing in slightly different ways? [14:20:46] do we need split and explode ?. why are parameters always different orders [14:20:47] Okay, separating simple string functions from regex ones is sensible enough. [14:20:55] Dantman: "doesn't work" for whatever reason. [14:21:01] split and explode do two different things [14:21:22] And preg_split? [14:21:54] :/ What's wrong with preg_split other than taking up memory just like anything else that uses arrays? [14:22:14] i know there are differences. but thats the thing.. other languages make do with one function which does what you need, php needs 3 or 4 with slight differences [14:22:28] exobuzz, Python does have separate regex functions. [14:22:28] what about join and implode then ? [14:22:33] Because they aren't a core part of the language. [14:22:34] they are the same [14:22:45] Or die() and exit(). [14:22:53] Or &&, and, AND. [14:23:01] Simetrical: it is different in that cas.e i mean the problem is php has everything in the core. it should be split out [14:23:10] yeh [14:23:13] exactly [14:23:37] 03(mod) Indicate where the thread was moved to on placeholders - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=15133 (10minuteelectron) [14:23:44] Except that since every extension is a C module, you need to be root to install it, and therefore third-party authors can't rely on the presence of any optional modules. [14:23:46] 03(mod) On thread history page move items, indicate target and source - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=15134 (10minuteelectron) [14:23:54] 03(mod) Visually subdue deleted replies - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=15135 (10minuteelectron) [14:24:07] Whereas in, say, Python, most modules are loaded as-needed by import statements, and the modules are usually written in Python anyway. [14:24:11] 03(mod) Let users choose to hide deleted threads\replies - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=15136 (10minuteelectron) [14:24:19] mysqli_escape_string mysqli_real_escape_string etc.. do we need two calls depending whether it looks at the characterset ? [14:24:20] bah [14:24:21] 03(mod) On archive pages the radio button for "Any date" is not shown - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=15137 (10minuteelectron) [14:24:24] backwards compatibility sucks [14:24:28] 03(mod) Format dates in a more attractive manner on archive pages. - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=15138 (10minuteelectron) [14:24:30] exobuzz, if you agree that &&, and, AND shouldn't all be allowed, and you currently use Perl, you'll like Python. :) [14:24:36] 03(mod) Show a warning message, or optionally prevent, users from editing each others replies - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=15139 (10minuteelectron) [14:24:45] That's what Python 3 is breaking reverse compatibility. \o/ [14:24:52] In a reverse-compatible way, though. :) [14:25:00] Simetrical: i will have a look [14:25:05] let's recode mediawiki in python [14:25:08] would be faster! [14:25:09] :D [14:25:22] ill start.. gimme a few days [14:26:52] If only Brion would take that idea seriously. :( [14:26:59] do_you_think_there_is_a_competition_with_php_coders_on_who_can_make_the_longest_function_call() ? apart from one guy.. whos name is FrdBlgs who prefers short functions [14:27:40] whose [14:30:11] exobuzz: yes -- they don't want to be confused with perlmonks [14:34:30] 03vrandezo * r39704 10/trunk/extensions/SemanticMediaWiki/includes/SMW_GlobalFunctions.php: aligning code [14:41:23] Hi guys, can i get here some info on how to modify some parts of mediawiki? [14:42:12] When you ask mor specific, yes [14:44:12] ok. First of all, I would like to know, how to enable characters like _ in user name... [14:45:42] I have already removed the rule, when first character of any user name is capital, but can't find where to modify, to let users use _ in thir user names [14:46:04] thegr0m: I fear _ is not possible. all _ will be substituted to ' ' (space) [14:46:54] Ugh... T_T that kind of stuff is ugly business without my title rewrite [14:46:56] 03(mod) divs with display: inline still have paragraphs added around them ( are treated as block-level by the parser) - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=15246 summary; +comment (10Simetrical+wikibugs) [14:47:20] ^_^ You'll have to poke/pay me enough to ever get that done [14:47:35] 03(mod) Definition list abused for indentation purposes - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=4521 +comment (10Simetrical+wikibugs) [14:47:43] thegr0m: and how do you have removed the rule, that first character of any user name is capital? [14:48:35] http://moeffju.net/blog/2006/06/14/case-sensitive-mediawiki/ here's the code. But for earlier versions. I have modified it a bit and now it works [14:48:58] This is why I think, that everything is possible. But I can't understand where to start... [14:50:31] The funny thing is that, that if you try to login with wrong name, in the message you can see all this _. But it is not compared with database. It is getting all _ away, before compare... [14:51:15] quick poll: if you see Google adsense on a wiki, are you turned off (1) not at all, (2) not enough to leave if curious about the wiki (3) significantly (4) severely (leaving forever)? [14:52:59] How to allow _ only in user names? :( [14:53:41] Smaug, (1)-(2) here. [14:55:04] thegr0m: patch the code. it is not possible out of the box. and you will get a lot of sideeffects. I propose not to do that [14:55:08] thegr0m: wiki page name normalization is applied to user names. that means all _ are converted to speaces [14:57:29] Yes, I understand, that page normalization is applied to names, but how to disable it only for user names? I don't have open registration. I'm trying to make cross-server registration with one online browser game, where from I can get only few things over the GET request... [14:58:11] Simetrical: ty for the response [14:59:03] I already did a parser of those things and registration to database. But there are nicknames, containing _ and ()... Everything is registering fine. But I can't login, be cause it is cutting off _ [14:59:05] hello [15:01:14] Can somebody please point me, atleast, on this function, which is cutting off all illegal characters? [15:06:41] hey all, was wondering if anyone has had the chance to work with semantica? [15:07:37] semantica? [15:09:15] yup [15:09:21] http://www.semanticresearch.com/products/semantica-wiki.php [15:12:52] "Use open standards such as Wikimedia and KML-based GIS viewers to push and pull data from multiple sources quickly and easily" [15:13:00] that sounds like complete and utter bullshit [15:13:12] Wikimedia is an organization, not a standard. [15:13:22] "KML-based"? [15:13:25] very basic question: once I change a setting in LocalSettings.php, how do I "apply" the changes? [15:13:41] e.g. get them to take effect [15:13:41] Ah, I see, that's a real standard. [15:13:48] mpuccio, they take effect immediately. Reload the page. [15:13:54] thanks [15:14:16] the use of "Wikimedia" there is even trademark abuse, if they don't have a contract with Wikimedia Inc. [15:14:53] 03(mod) Mediawiki categories User-Javascripts - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14573 +comment (10dan_the_man) [15:15:22] 03gri6507 * r39705 10/trunk/extensions/WhiteList/SpecialWhitelistEdit.php: test check in [15:16:19] Duesentrieb, Simetrical, so as i see it, it's pretty much bs? [15:18:50] Hi all [15:19:10] I have qaustion [15:20:03] !ask | Sterkebak [15:20:03] --mwbot-- Sterkebak: Don't say "I have a question", or ask "Is anyone around?" or "Can anyone help?". Just ask the question, and someone will help you if they can. Also, please read < http://workaround.org/moin/GettingHelpOnIrc > for a good explanation of getting help on IRC. [15:20:27] I wan't to update . I will Just overwrite all file's but then i must open siteadmin.php? [15:20:55] there is no file by that name in a standard mw install [15:21:03] Or must i do more? [15:21:17] How did you install MW? [15:22:41] I did not [15:23:01] I have got it and now i have to update [15:23:41] I am the new nwoer [15:23:48] Owner [15:24:49] So if i overwrite all files the files will be uptodate. [15:25:36] But then i must update the database [15:25:51] How must i do that [15:28:03] 03mkroetzsch * r39706 10/trunk/extensions/SemanticResultFormats/: Add base directory for new SMW extension to collect extra query result formats not shipped with SMW [15:29:42] php maintenance/update.php [15:29:57] You need access to the command line (Look for "SSH" access on your host) [15:30:11] Ack, tim is gone [15:33:10] 03(mod) Preview with forms on the bottom - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=10874 (10nathan) [15:35:18] but next section starts in the right column first, and only later flows to whole width [15:35:22] what would be the best way to force next section after columns ? [15:49:36] 03vrandezo * r39707 10/trunk/extensions/SemanticResultFormats/README: Initial README [15:55:31] Hi brion [15:56:00] *Jack_Phoenix waves to brion and ialex :-) [15:56:22] hello Jack_Phoenix :) [15:56:25] rar [15:58:00] wazzap [15:58:07] hi brion :) [15:58:37] hello [15:58:47] Werdna: for r39701: the problem might be that GlobalFunctions.php is loaded after executing LocalSettings.php [15:58:59] hello Nikerabbit [16:08:50] Can someone point me on that file and function, what is replacing _ with spaces? THanks [16:09:04] in names, I mean... [16:10:02] str_replace ? ... [16:10:16] oh [16:10:53] it's probably the same as for the titles, so be careful [16:12:53] DarkoNekom thanks, but I mean, where is this function in MW :) [16:13:17] I just want to know how is it working and what exactly replacing... [16:14:01] thegr0m: Title::new*(), Title::secureAndSplit(), all in includes/Title.php [16:14:02] 03brion * r39708 10/trunk/phase3/ (3 files in 3 dirs): [16:14:02] Revert r39416, 39421, 39427, 39489, 39515, 39516 "Rewrite allpages to use a "tree" of index range subpages (similar to the starting page) rather than one increasingly large range list (bug 13902)" [16:14:02] Breaks several aspects of paging behavior: [16:14:02] * Subpage parameter seems to have incorrectly changed from starting point to prefix [16:14:05] * We've lost forward and backward paging links [16:14:23] ialex, thanks. I'll check it... [16:14:44] thegr0m: and maybe a lot of other places too ;) [16:14:53] :) [16:16:01] I Just want to know what exactly is it removing, when registering a new user... For example if I'll enter _thegr0m_, it will return just thegr0m. Even without spaces. And I need to know what else will it replace, and how is it removing smaces from begining and from the end... [16:22:46] ialex, thanks. That helped. Found everything, I was looking for :) [16:24:59] Hi, i asked this before, but due to unfortunate event i lost the information i received. Could someone give me again information on how to hide page title via this css hack? [16:25:28] 03rotem * r39709 10/trunk/ (2 files in 2 dirs): Localization update for he. [16:28:00] 03(mod) Link with action=edit&redlink= 1 leading to existing page should redirect to plain view - 10http://bugzilla.wikimedia.org/show_bug.cgi?id=15242 +comment (10mormegil) [16:30:04] 03vrandezo * r39710 10/trunk/extensions/SemanticMediaWiki/includes/ (SMW_GlobalFunctions.php SMW_QueryProcessor.php): Moved SMW_QueryProcessor::$formats to $smwgResultFormats [16:40:58] brion: does the hack in Skin.php to "Hide the styles from Netscape 4 without hiding them from IE/Mac" is still needed? [16:44:07] ialex: is that a hack that we killed last month? or a different hack? [16:44:26] brion: the CSS hack [16:45:08] Skin::getSiteStyles() and Skin::getUserStyles() [16:45:49] the point is that SkinTemplate based skins don't have it [16:48:29] I wonder, is there some why to bind a function to a hook, without parsing *whole* function code unless hook happens? [16:49:33] way* [16:49:43] my brain rots [16:52:52] autoloading [16:52:57] put the function in a class [16:53:03] and then put the class into the autoloader [16:53:08] thanks [16:53:13] then make the hook the callback [16:54:46] ialex: my recommendation is to ditch all the old-style skins and replace them with a consistent SkinTemplate-based system [16:55:03] i updated the CSS loading on SkinTemplate to use consistently but haven't touched the old skin code as it's nasty [16:55:35] brion: i did that for non-SkinTemplate skins [16:55:52] (using for CSS styles) [17:18:21] Hi [17:18:32] Can i change userrights from sysop to siteadmin in the database? [17:20:31] siteadmin is a right, not a group [17:20:56] unless you created a new group using $wgGroupPermissions [17:22:11] ialex how do i give myself the right from the database? [17:23:02] Sterkebak: you don't, you need to assing it to a group using $wgGroupPermissions and then you can assing the group in the database [17:24:05] 04(REOPENED) Postgres - Searches that include a number as a term always return no results - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=15229 summary; +comment (10brion) [17:24:16] 03(mod) PostgreSQL/pgsql support (tracking) - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=384 (10brion) [17:24:52] 03(mod) can't search for numbers (no numerical search) - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=42 (10brion) [17:26:19] 03nikerabbit * r39711 10/trunk/extensions/Translate/tag/Hooks.php: * Bugfix [17:28:45] ialex is there a way to give me other rights from the database then? [17:29:08] Sterkebak: as I said, only groups [17:29:40] But as i look at the groups i don't see the group Toezichthouder :( [17:29:48] But that is my admin group [17:30:54] brion: oy [17:31:10] *AaronSchulz redoes allpages again [17:33:14] Sterkebak: Toezichthouder is the displayed name, internal name for the sysop group is "sysop" (the one that will appear in the database) [17:33:32] okey i have three of them :s [17:33:43] I will drink a cup of coffee and try again. [17:33:46] yo yo [17:33:51] *brion is caffeinated \o/ [17:33:53] Thanks for your time :) [17:34:14] np :) [17:34:43] Caffeine is the work of the devil. [17:36:19] devil, hehe [17:37:39] more dangerous by far than the devil is the superdevil! [17:37:44] hurm. 15229 wfm, but then again I"m using a current version :( [17:45:01] 03(mod) LinkSearch results should use as much of the path as is provided, not simply search by domain - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=15218 (10brion) [17:45:20] Werdna: https://bugzilla.wikimedia.org/show_bug.cgi?id=15219 [17:47:05] 03(mod) Disable renaming of wiki sets to already existing names - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=15219 (10brion) [17:47:35] what's the purpose of patrolmarks? [17:47:43] http://en.wikipedia.org/wiki/Wikipedia:Village_pump_(technical)#.22go.22_button_in_watchlist <-- Hmm, agree, looks kind of ugly. [17:47:44] being able to see which edits are patrolled? [17:50:26] 03aaron * r39712 10/trunk/phase3/ (3 files in 3 dirs): redo allpages again less obtrusively [17:50:58] 03(mod) Allow .ttf files - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=15195 (10brion) [17:51:11] brion: better? [17:51:14] Is there an example I can view somewhere that will show me how to use the #if parser function (in a template) to show a field if a value has been entered, and not show the field if there is no value in it? [17:51:22] 03greg * r39713 10/trunk/phase3/maintenance/updaters.inc: Update to match postgres/tables.sql [17:52:14] I have been reading http://meta.wikimedia.org/wiki/Help:ParserFunctions, but I still can't get it to work [17:52:16] AaronSchulz, what's the purpose of patrolmarks? [17:52:17] being able to see which edits are patrolled? [17:52:35] yes [17:52:47] and patrol to view and set as patrolled, ok [17:52:57] 03nikerabbit * r39714 10/trunk/extensions/Translate/tag/ (Hooks.php Tag.php Utils.php): * Bugfixes [17:53:37] it's not documented anywhere [17:53:42] and [17:53:42] 'wgOnlySysopsCanPatrol [17:53:50] appears on meta and config! [17:54:16] *Platonides mumbles about removed options confusing people [17:54:33] for example: I have "{{#if: {{{example-field|}}}||}}" ... the field name shows up whether the field is filled out or not, and I also get "{{#if: ||}}" showing up on my page [17:55:20] do you have parserfunctions? [17:55:45] if it's something I had to add, then I guess not. I thought it was built into mediawiki :\ [17:55:51] 03ialex * r39715 10/trunk/extensions/OnlineStatus/OnlineStatus.php: [17:55:51] Tweaks for OnlineStatus: [17:55:51] * Fix PHP5.3.0aplha1 errors [17:55:51] * Hide "Status" tab in personal urls in Special:Preferences, there's already a switch on that page [17:56:45] 03(ASSIGNED) Special:BlockIP said to be broken in PostgreSQL - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=15148 +comment (10greg) [17:57:57] !parserfunctions | Seiken [17:57:57] --mwbot-- Seiken: "Parser functions" are a way to extend the wiki syntax. ParserFunctions is an extension that provides the basic set of parser functions (you have to install it separately!). For help using parser functions, please see . For details about the extension, see . [17:58:00] brion: I really can't stand allpages with the uber long lists that lag firefox [17:58:28] 03(mod) can't search for numbers (no numerical search) - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=42 (10reed) [17:58:43] Platonides: thanks, I am reading up on how to install now. [17:58:58] 03(mod) Postgres - Searches that include a number as a term always return no results - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=15229 (10reed) [18:00:53] 03(mod) Non-breaking spaces in wikilinks should act like regular spaces - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=15248 summary (10matthew.britton) [18:01:18] 03(NEW) Non-breaking spaces in wikilinks should act like regular wikilinks - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=15248 15enhancement; normal; MediaWiki: Page rendering; (matthew.britton) [18:04:52] 03aaron * r39716 10/trunk/extensions/FlaggedRevs/FlaggedRevs.hooks.php: Make isFileCacheable() faster [18:05:02] 03(mod) Special:BlockIP said to be broken in PostgreSQL - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=15148 (10greg) [18:05:16] "said to be" [18:09:39] hi all, I would like to design my main page with boxes and borders like at the main page onmediawiki.org or wikipedia.org. Do I have to do this by CSS or are there finished templates? [18:10:12] 03(mod) LinkSearch results should use as much of the path as is provided, not simply search by domain - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=15218 (10mike.lifeguard) [18:10:33] sn4ke, people usually use tables. [18:11:03] hi Simetrical [18:12:12] 03brion * r39717 10/trunk/phase3/ (8 files in 5 dirs): [18:12:12] * $wgAjaxSearch has been removed; use $wgEnableMWSuggest instead. [18:12:12] I never liked the take-over-the-screen UI of the old ajax search; the new suggestion search does the same thing in a more natural, integrated way. [18:12:29] 03rotem * r39718 10/trunk/phase3/languages/messages/MessagesHe.php: Localization update. [18:13:26] 14(INVALID) Ajax search feature does not work in modern skin - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14444 +comment (10brion) [18:13:34] Simetrical: but wikipedia and mediawiki is made with CSS?! [18:13:43] Platonides: it works! :P [18:13:50] 03(mod) Special:BlockIP said to be broken in PostgreSQL - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=15148 (10overlordq) [18:13:51] sn4ke, MediaWiki uses CSS for most things. Wikipedia content often uses table-based layout. [18:18:47] Simetrical: but the main page of wikipedia is made in CSS as well?! or is a layout like this possible with tables? [18:19:01] sn4ke, the main page of Wikipedia, last I checked, is table-based. [18:20:01] Simetrical: ah ok, thx [18:20:32] 03aaron * r39719 10/trunk/extensions/FlaggedRevs/FlaggedRevs.class.php: tweak cache expiry [18:21:16] 03(mod) Special:BlockIP said to be broken in PostgreSQL - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=15148 (10greg) [18:25:57] 03brion * r39720 10/trunk/phase3/includes/HTMLDiff.php: fix for html diff on page with images -- ImageNode $attributes member was incorrectly declared as private [18:26:01] guyvdb: doing some quick testing w/ $wgEnableHtmlDiff before switching it on on test/en.labs for some public testing [18:26:27] i seem to be missing the diff headers, so we're missing the revision information and paging links [18:26:35] ah [18:26:39] yeah that could be [18:26:54] can you fix that up real quick and i'll go ahead and turn it on there? thx :) [18:26:59] okay [18:28:00] iirc, you can't see category and interwiki link changes [18:28:16] brion: I could also show the old diff, but that will increase the execution time even more [18:28:58] mm, well it might be good if we can conditionally switch it in for testing purposes [18:29:04] (and we need the header in either case) [18:29:31] *ialex would like an user option for $wgEnableHtmlDiff (I know that we don't like new options) [18:30:22] does anyone know, if it is possible to make internal link to another namespace? [[namespace:article]] doesn't work [18:30:47] that should work [18:31:01] 03aaron * r39721 10/trunk/extensions/FlaggedRevs/FlaggedRevs.hooks.php: Make overrideRedirect() faster [18:31:30] sn4ke: if it's category: or image: those are special-cased -- to make a regular link, put a : in front like [[:Image:Foo]] [18:32:30] brion: ah okay so [[:category:article]] is possible as well?! [18:32:52] yeah [18:33:06] ah ok thx [18:44:08] 03ialex * r39722 10/trunk/extensions/OnlineStatus/ (OnlineStatus.js OnlineStatus.php): Put ajax function in the OnlineStatus class [18:44:13] another question: subcategories and categories are apart. It is possible to take them together? [18:44:45] 03aaron * r39723 10/trunk/extensions/FlaggedRevs/FlaggedRevs.hooks.php: remove more grannyware [18:45:56] 03guyvdb * r39724 10/trunk/phase3/includes/DifferenceEngine.php: added diff headers for HTML diff [18:45:58] brion: done, r39724 [18:47:23] 03ialex * r39725 10/trunk/extensions/OnlineStatus/OnlineStatus.php: Whitespaces fix *sigh* [18:49:58] guyvdb: you should add a new message instead of hardcoding "HTML diff" [18:50:15] ;) [18:50:47] how would you translate HTML diff in another language? :p [18:50:58] yeah I need to do i18n for the differ itself too [18:51:01] it's on my todo [18:51:09] guyvdb, you could translate "diff", anyway. [18:51:22] Maybe transliterate "HTML" (although I've noticed that usually people don't transliterate jargon). [18:52:12] "diff" doesn't say anything to most of the people (neither does HTML, but that's besides the point) [18:53:14] and we should avoid jargon, so it could be like "Differences in rendered versions" or something [18:53:28] the word diff is used everywhere in the code [18:53:39] all the links say "previous diff" [18:53:41] etc [18:54:26] two bads don't make the third good :) [18:54:44] Nikerabbit, "rendered" is jargon. [18:55:12] jargon is jargon [18:55:13] "graphical" might be more comprehensible, but I'm missing context here. [18:55:24] "Jargon" is not jargon. :) [18:55:35] Simetrical: you right, but I'd imagine it would be more understandable than diff [18:55:43] Well, yes, for sure. [18:56:09] it also helps translators the more we try to avoid them [18:57:16] I'm all for changing the term HTML diff, the problem is that I don't know a suitable replacement, I'm not a native english speaker [18:57:24] Visual Compare has been sued before [18:57:31] just Compare [18:57:47] Inline Compare [18:57:57] Where's the message shown? [18:58:13] "Visual" or "graphical" is good. [18:58:21] "Visual comparison" sounds good. [18:58:24] "Inline" is bad, more jargon. [19:00:52] thx guyvdb, i'll take a look in a sec [19:01:47] 03aaron * r39726 10/trunk/extensions/ConfirmAccount/SpecialConfirmAccount.php: minor refactoring [19:02:18] is there any particular order in which the MessagesEN.php entries are? [19:02:31] no [19:02:41] just somehow related messages together [19:03:57] (and don't forget to update maintenance/language/messages.inc ;) [19:07:10] guyvdb: ok we've still got a security issue -- text is getting de-html-escaped [19:07:37] :s [19:07:49] ialex: what's ???messages.inc for? [19:07:53] example: write in a page this text "" [19:07:56] then html-diff it [19:08:23] it should show as plain text, but instead it's output as raw html and the script is executed [19:08:54] guyvdb: it lists all messages in MessagesEn.php, just add the message name at the correct place [19:09:40] 03guyvdb * r39727 10/trunk/phase3/ (3 files in 3 dirs): 'Visual Comparison' added to messages [19:11:52] guyvdb, messages.inc is used by maintenance scripts to ensure that messages are consistently grouped and ordered in all message files. [19:12:01] Actually, though, why can't you just parse MessagesEn.php instead? [19:12:09] Hmm . . . [19:13:00] 03(mod) Excessively large offset specified in {{#time:}} causes timeout - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14898 minor->04CRIT; normal->high; +comment (10krimpet) [19:13:26] 03aaron * r39728 10/trunk/phase3/includes/Article.php: function is not static [19:13:35] brion: I don't really understand where these characters get decoded [19:13:42] the parser encodes them as special chars right? [19:13:57] then the XML parser decodes them? why? [19:14:18] apparently PHP's strtotime() can cause an endless loop if passed certain values -_- [19:15:04] what is grannyware? [19:15:10] Krimpet: php bug open? [19:15:26] Nikerabbit, yes. [19:15:32] http://bugs.php.net/bug.php?id=45822 [19:15:52] also, grannyware, is that like granny panties? :p [19:16:17] brion: htmlspecialchars on parsed characters will do the job? [19:16:25] 03siebrand * r39729 10/trunk/phase3/ (2 files in 2 dirs): Fixes for r39727 [19:19:42] brion: done [19:19:49] 03guyvdb * r39730 10/trunk/phase3/includes/HTMLDiff.php: Escape characters that were unescaped by the parser [19:20:17] Nikerabbit: grannyware == sloware [19:23:17] 03rotem * r39731 10/trunk/phase3/languages/messages/ (MessagesEn.php MessagesHe.php): Localization update. [19:27:05] 03aaron * r39732 10/trunk/phase3/includes/Skin.php: use quickUserCan() [19:36:40] 03dale * r39733 10/trunk/extensions/MetavidWiki/ (9 files in 6 dirs): updates for advanced search bill support [19:37:48] guyvdb: better thx :D [19:38:28] *AaronSchulz does a page view [19:38:30] wfMsgReal 7.43% 10.45% 15514 5171.33 0.24 0.76 1261.59 3930.76 [19:38:39] 15514 calls :) [19:41:56] guyvdb: and a way to switch between regular and html diffs would be great [19:42:31] 03ialex * r39734 10/trunk/extensions/CheckUser/CheckUser.php: Per report of Thogo on IRC, declare checkuser-log right in $wgAvailableRights [19:44:40] 03(mod) Postgres - Searches that include a number as a term always return no results - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=15229 (10reed) [19:49:21] 03(NEW) Make flagging from difflinks for unsighted pages less error prone - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=15249 15enhancement; normal; MediaWiki extensions: FlaggedRevs; (pbirken) [19:51:23] *qsheets asks brion to by him a PUMA [19:51:25] 03(NEW) Link tracking should use latest version, not the last reviewed - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=15250 15enhancement; normal; MediaWiki extensions: FlaggedRevs; (vasilvv) [19:54:06] brion: you want a flag to enable the html diff, and then still have the option to use the old diff? [19:56:22] maybe a way to switch it in/out for any request, so people can test side by side [19:56:32] 03btongminh * r39735 10/trunk/phase3/includes/api/ApiLogin.php: Provide some info on which case value was not handled in ApiLogin [20:10:07] 03(mod) Link tracking should use latest version, not the last reviewed - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=15250 (10JSchulz_4587) [20:12:36] Hi gang, what folder is the default logo in? [20:15:00] 03(mod) Make flagging from difflinks for unsighted pages less error prone - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=15249 (10JSchulz_4587) [20:17:21] 04(REOPENED) Change configuration for autopromotion on de.wikipedia.org - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14975 +comment (10pbirken) [20:18:09] hi... I've created this template, which includes the same different template with a lot of different parameters.. this second template might be empty though depending on the parameters [20:18:17] 03(mod) Change configuration for autopromotion on de.wikipedia.org - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14975 (10JSchulz_4587) [20:18:57] my problem is, that when the templates are empty, mediawiki interpret it, as though I want a
      tag [20:19:19] is there any way to avoid that? [20:20:08] Avoid extra newlines when calling the template. [20:20:36] 03(mod) Change configuration for autopromotion on de.wikipedia.org - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14975 (10pbirken) [20:21:09] alnokta, can I borrow your arabic-ness? [20:21:53] yeah, but it is much prettier/easier to edit when it on seperate lines [20:22:16] is there no way to turn off this behavior? [20:22:18] *alnokta hands over arabic to kibble [20:22:24] :-) [20:22:27] alnokta, see pm [20:25:56] 03(mod) Change configuration for autopromotion on de.wikipedia.org - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14975 +comment (10raimond.spekking) [20:28:33] num num num korean bbq [20:28:54] RickZilla: skins/common/images [20:29:06] brion-lunch: Thanks [20:40:17] 03(mod) Skins "Simple" and "Modern" are broken - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14954 (10wiki.bugzilla) [20:50:47] 03(NEW) A to Z display of inline queries - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=15251 15enhancement; normal; MediaWiki extensions: Semantic MediaWiki; (laurent) [20:53:08] i have a style issue about log files, in general -- not limited to MW [20:53:18] anybody go ahead and jump in [20:53:47] do you like to create a log file with a static filename, such as 'mythisorthatlog' [20:54:10] or a timestamped filename, such as 'log20080820' [20:54:11] ? [20:54:50] 03(mod) Switch Wikipedia search button to go straight to Google site search - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=15238 (10brion) [20:55:14] obviously the former will overwrite while the latter will not [20:55:19] i see advantages to each [20:55:42] does anybody, hopefully with more experience than i have, care to indicate a preference? [20:55:55] 03(mod) Last modified display date not the last one - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=6263 (10wiki.bugzilla) [21:01:52] Xiong: well, the unix pholosphy says: do separate things with separate tools. this is why unix programs generally write everything to a statically named log file, and there's a separate tool, logrotate, for renaming and comrpessing logs every so often [21:02:10] i think that's the best way [21:02:15] the philosophy is what i'm after [21:02:45] i've seen -- i don't know how many -- applications create log files; some always use the same filename, others datestamp it [21:03:12] i havn't sen many that use timestamps on their own. [21:03:54] well, i don't like the idea of timestamped logfiles during development, because i'm likely to do dozens of test runs, one after the other, and then have to throw the things out [21:04:07] but i'm trying hard to create re-entrant code [21:05:02] i think i have to rely, at a higher level of abstraction, that the caller will have the sense not to supply the same log filename already in use, if he's "not the same guy" [21:05:21] uh? [21:05:47] usually, you write everything to a single log file, really [21:05:54] ah, here i am in the low-level logging package, creating a new log object with a supplied filename [21:06:05] some systems even use a single log for all prgorams (that's why the syslog service exists) [21:06:33] two different higher-level packages could be calling me; shouldn't write to the same log -- ah, don't think it makes sense in my project [21:07:04] this is not any kind of system log but rather a progress report on a given run [21:08:02] the utility logger thing doesn't know, really, its larger context [21:08:34] ha ha, enough to drive a guy crazy, trying to keep track of all the things he's not supposed to know [21:08:41] thanks for the tipe [21:08:47] is it possible to use # on entry's names? [21:08:51] for example [[#mediawiki|#mediawiki irc chan]] [21:09:01] ooh, bad [21:09:24] 03(mod) DynamicPageList - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=11112 (10mostafa) [21:11:00] http://en.wikipedia.org/wiki/Main_Page#irc [21:11:40] Shown: # is used to reference sections, just as usual in urls [21:11:59] Shown: you can do whatever after the | though [21:12:07] i know [21:12:22] there's no way to name an entry so [21:12:28] http://en.wikipedia.org/wiki/User:Xiong/Sandbox [21:12:47] actually the link is completely valid [21:12:54] but it's relative [21:13:53] In the process of moving a mediawiki instance from one server to another, it seems like the categories have lost track of what pages should be in them (as in, the [[Category:Foo]] link is present on the page, but the page is not listed under Category:Foo) [21:14:05] Is there any way I can globally refresh all of the categories? [21:27:25] 03ialex * r39736 10/trunk/phase3/ (includes/EditPage.php languages/messages/MessagesEn.php): (log message trimmed) [21:27:25] Tweak for r29770 (yes, some months after it): [21:27:25] If the wiki is read only mode, don't show a "database locked" error if [21:27:25] previewing or showing diff, but rather the "normal" action with a warning that [21:27:26] the database is currently locked. If the user is trying to save the page, he'll [21:27:28] see the preview page instead. Currently, if you are saving or previewing a page [21:27:30] while the database is locked, you'll see the "database locked" error with the [21:37:32] hi guys. on my wiki, i have my main page protected so only i can edit it. what would be the best way so users could submit a page to me so i can review it and add it to the front page? [21:38:24] make them add a template to the page which categorizes it; review the contents of the category periodically? [21:39:01] hmm im not sure what u mean exactly or how to do that [21:39:04] do u have an example? [21:46:16] !categories | b00st3d [21:46:16] --mwbot-- b00st3d: http://www.mediawiki.org/wiki/Help:Categories [21:46:21] !templates | b00st3d [21:46:21] --mwbot-- b00st3d: For more information about templates, see . The most common issues with templates copied from Wikipedia can be fixed by installing ParserFunctions and enabling HTML Tidy . [21:46:41] b00st3d: but the simplest way is to tell people to put any suggestions on the talk page of the main page [21:46:45] that's what talk pages are for. [21:50:09] thanks dues [21:50:48] 03vrandezo * r39737 10/trunk/extensions/SemanticResultFormats/ (7 files in 3 dirs): Initial commit of the Google Charts visualizer and the graphs extension [21:53:14] Hi, how can I modify colors of tabs on monobook? [21:53:43] and how to modify hyperlinks? I don't need them to be blue... [21:54:28] !css | thegr0m [21:54:28] --mwbot-- thegr0m: To change styles for your wiki, go to one of the MediaWiki:xxx.css wiki page and put your custom styles there (sysop/admin rights required). MediaWiki:common.css is for all skins and should be used for content styles. MediaWiki:monobook.css is for the MonoBook skin (default), etc. For more information, see !skins and [21:55:35] !skins [21:55:35] --mwbot-- Overview: . Skin usage: . Gallery of CSS styles: . Writing your own: [22:00:04] 03dale * r39738 10/trunk/extensions/MetavidWiki/ (5 files in 5 dirs): [22:00:04] media search clean up & [22:00:04] fixes to advanced search [22:22:43] 03demon * r39739 10/trunk/phase3/includes/AjaxResponse.php: Document a bit. [22:23:25] brion: I'm changing the history page so that there are 2 compare buttons, one for HTML and one for Source [22:24:06] hmmk [22:25:18] I can't have 2 submit buttons :( [22:37:19] <^demon|away> guyvdb: Btw, I'm tweaking your HtmlDiff to use messages instead of the hardcoded $bundle in TagToString. [22:38:16] oh thanks [22:38:23] that was on my todo [22:39:15] <^demon> Yeah, should be done shortly. Just formatting them into MessagesEn then changing your getString() method into wfMsg calls, etc. [22:39:34] much obliged [22:40:27] there already is a section for the html diff in MessagesEn [22:41:46] <^demon> Yeah, putting them with that.