[00:00:49] Danny_B, I think that's one of the things that the Dynamic Pagelist extension (DPL) does [00:01:12] dpl creates images? [00:01:24] together with some other extensions, yes [00:01:27] they have examples [00:02:18] o_O [00:02:25] and that's why we don't install DPL2 :) [00:02:29] too big and scary :D [00:02:51] :'( [00:02:56] :-( [00:02:59] too awesome and useful, you mean XD [00:03:12] heh, cool: [00:03:16] {{ #ifexpr: [00:03:17] {{DATEDIFF2|15 December 2008|{{#time:l}}}} < 0 | [00:03:17] {{#expr:abs( {{DATEDIFF2|15 December 2008|{{#time:l}}}} )}} days in future | [00:03:20] {{DATEDIFF2|15 Decmber 2008|{{#time:l}}}} days in past [00:03:23] }} [00:03:50] there should be something between curent worthless dpl and dpl2 [00:04:05] well, DPL isn't worthless. it's a helluva lot better than not having anything [00:04:44] I've had a look at what's available and installed the WikiDB extension now, which seems to do exactly what I want [00:04:44] well, yes [00:04:45] 03aaron * r41907 10/trunk/extensions/CodeReview/ (CodeReview.php CodeRevisionView.php codereview.css): [00:04:47] * Use scroll for wide diffs [00:04:47] * Don't show comment header if nothing below it [00:04:47] * Move stuff to css [00:04:47] brion: there we go [00:04:54] but it doesn't even do the basic function - sorting by adding to such category :-( [00:05:00] I try to run parserTest, but I get --> MySQL returned error "1146: Table 'wikidb.parsertest_objectcache' doesn't exist (localhost)" [00:05:00] TimStarling: could you take a look at the patch on https://bugzilla.wikimedia.org/show_bug.cgi?id=15919 ? [00:05:01] DPL not caching and potentially even parsing on every hit sounds too much of a resource hog to me [00:05:48] indeed, that's why we want it fixed [00:06:01] we're lucky to have DPL(1) on small sites [00:08:01] Anyone feel like reviewing a tiny patch for me? I wanna know how badly I fail :) [00:08:18] is there a way to assign the result of a template expansion to a "variable" for me to test against multiple times without repeating it? [00:08:53] cjb: there is a variables extension but it isn't used on wmf, which usually means it has something wrong with it [00:08:54] (the code in question is what I just pasted, http://pastebin.com/deeebfda ) [00:09:01] Splarka: ah, ok [00:09:16] Splarka: do you think there's any other way to remove the repeated {{DATEDIFF2..}} from my code? [00:09:22] usually what is done is to call a subtemplate [00:09:32] huh [00:09:40] not sure I understand how that would work [00:09:44] well... [00:09:55] oh, I guess I do. it's just recursive templates. [00:10:01] you're already doing it [00:10:04] right. [00:10:13] this means you end up with a maze of subtemplate calls [00:10:49] yeah. do you think what I have now is as good as I should make it, then? [00:11:02] MrZ-man: it really needs to have a limited size [00:11:28] otherwise we'll have the same problems that we had with the link cache and the link holder array [00:11:42] cjb: it is pretty simplistic yah [00:11:52] say 1000 [00:11:57] https://bugzilla.wikimedia.org/show_bug.cgi?id=7865 [00:13:06] ok :) [00:18:23] brion: CodeReview sure does like throwing exceptions [00:18:29] :) [00:18:39] i was pretty lazy about pretty errors for invalid input [00:18:51] i'm doing some funky fun for the diff timeouts [00:19:02] *AaronSchulz waits for the next scap :) [00:19:08] you don't have to internationalise exceptions, right? [00:19:26] Can sysops still (un)block while blocked? [00:19:52] i generally wouldn't bother; internationalization belongs in user-friendly error messages :) [00:20:09] I mean is that why you used them? [00:20:14] nope [00:20:23] Mike_lifeguard: yes [00:20:34] k, thanks [00:20:40] just a quick way to do something sensible with invalid parameters or backend failures until a nicer display is worked out [00:22:33] brion: if I'm modifying User::canSendEmail() to check whether email is enabled globally, how should I work around the hook? [00:22:40] (thanks, Splarka!) [00:22:59] ? [00:23:02] what hook's that, Emufarmers ? [00:23:18] UserCanSendEmail [00:23:20] 03(NEW) problems getting thumbnails with chopped ogg streams - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=15920 15enhancement; normal; MediaWiki extensions: OggHandler; (dale) [00:23:24] http://en.wikinews.org/wiki/Potential_Wikia_mass_exodus [00:23:26] hmm [00:23:29] well, if it's disabled globally, then nobody can ever send email [00:23:34] no matter what some hook would like to say [00:24:26] I haven't worked with hooks before; do I [00:24:33] er [00:24:51] http://en.wikinews.org/w/index.php?title=Special:RatingHistory&target=Worldwide_markets_fall_precipitously [00:24:55] *AaronSchulz <3 svg [00:25:03] http://pastebin.com/mf820d6b Is that good? [00:25:16] woot [00:25:33] (@AaronSchulz ... gonna look at your thing in a sec emu) [00:25:58] Emufarmers: i probably wouldn't bother running the hook if it's disabled [00:26:06] so check first, then run the hook [00:26:15] OK [00:27:19] 03tstarling * r41908 10/trunk/phase3/maintenance/parserTests.txt: Parser test for bug 15196 [00:29:09] Which is clearer: if( !wgEnableEmail || !$wgEnableUserEmail ) or if( !(wgEnableEmail && $wgEnableUserEmail) ) ? [00:31:47] TimStarling++ :) [00:35:19] TimStarling: should the limit only apply to actual file objects? Currently it only adds true for the first instance, then adds the file object if its used twice [00:35:40] whatever [00:37:34] I'm going to work on code review for most of today I think [00:37:43] it's about time we svn'd up [00:38:08] \o/ [00:38:14] 03aaron * r41909 10/trunk/extensions/FlaggedRevs/ (2 files in 2 dirs): Improve graph title [00:40:34] it might be nice to have a filter for a given changed path [00:40:48] then we could search for revisions related to the one at hand [00:43:00] 03dale * r41910 10/trunk/extensions/PlayerStatsGrabber/ (11 files in 3 dirs): added flowplayer support test, added reporting the requested url to the plyaback log, added consistent sample media across media types [00:44:18] if an extension returns nulls, it is rendered as "
" [00:44:29] can that be avoided ? [00:48:03] 03(mod) Suppress the "email this user" link in the toolbox if said user has opted not to/can't receive emails - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=1306 (10N/A) [00:52:04] j4zzcat: what type? parser tag? parser function? some other hook? [00:53:34] I'm working on Cite.php [00:54:46] http://en.wikipedia.org/wiki/Special:ExpandTemplates?contexttitle=&input=a%3Ccategorytree%3E%3C%2Fcategorytree%3Eb%0D%0A%0D%0Aa%3Chiero%3E%3C%2Fhiero%3Eb%0D%0A%0D%0Aa%3Cpoem%3E%3C%2Fpoem%3Eb%0D%0A%0D%0Aa%3Cpre%3E%3C%2Fpre%3Eb%0D%0A%0D%0Aa%3Creferences%3E%3C%2Freferences%3Eb%0D%0A&removecomments=1&generate_xml=1 [00:55:18] some parser tag extensions can return inline null [00:55:40] it isn't always
, sometimes it is

, sometimes it is

[00:56:42] why this http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/includes/DefaultSettings.php?view=markup is different from http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/includes/DefaultSettings.php?revision=41714&view=markup&pathrev=41714 ? [00:56:47] I'd say, check whatever categorytree and hiero do [00:58:10] for example $wgGroupPermissions['sysop']['suppressredirect'] = true; in the first one is missed [01:02:53] 03tstarling * r41911 10/trunk/phase3/includes/specials/SpecialMovepage.php: Fix error display on invalid destination title on GET, e.g. with URL /wiki/Special:MovePage/Main_Page?wpNewTitle=Main_Page . Broken by r35990 and again by r41343. [01:06:22] 03(mod) Greater flexibility with references - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=5997 (10ref visible="no" name="aaa">This is a ref for AAA [01:06:22] This is a ref for CCC [01:06:22] This is a ref for DDD [01:06:22] [01:06:22] [01:06:34] -- [01:06:36] Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email [01:06:38] ------- You are receiving this mail because: ------- [01:06:38] :) [01:06:40] You are the assignee for the bug. [01:06:42] You are watching all bug changes. [01:06:44] 03brion * r41912 10/trunk/extensions/CodeReview/ (5 files): [01:06:44] Mwahahaha... asynchronous load of uncached diffs for CodeReview! [01:06:44] Pretty hacky, and probably not ideal. ;) [01:06:46] _______________________________________________ [01:06:48] Wikibugs-l mailing list [01:06:50] Wikibugs-l) [01:06:52] 03(NEW) define/document $wgUseEnotif in DefaultSettings.php - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=15921 15enhancement; normal; MediaWiki: Documentation; (alan.harder) [01:06:55] ugh [01:07:28] what is wikibugs doing? [01:07:38] Mike_lifeguard: what do you mean? [01:07:44] ah [01:07:45] curious [01:07:55] guess it got confused :D [01:08:01] in bugzilla comment, how do I reference my attachment ? [01:08:14] j4zzcat: probably 'attachment NNN' where NNN is the # [01:08:18] does wikibugs read the mail sent out? [01:08:21] or.. just say 'my attachment' and we'll figure it out [01:08:26] ok [01:08:26] Mike_lifeguard: yeah, it's a little hacky [01:08:44] if the mail changed format, it might parse incorrectly [01:08:56] 03erik * r41913 10/trunk/extensions/Collection/Collection.i18n.php: Kollektion->Sammlung [01:09:09] yeah, someday we'll prolly replace it with something that plugs to bugzilla more directly or uses some kind of sensible api [01:10:55] 03brion * r41914 10/trunk/extensions/CodeReview/ (CodeRevisionView.php codereview.js): snip some commented-out debug code no longer needed [01:10:57] hmmm [01:12:31] 03aaron * r41915 10/trunk/extensions/CodeReview/CodeRepository.php: Rename $skipCache [01:12:39] Unknown column 'cr_path' in 'field list' (10.0.6.21) [01:13:17] yep, the field needs to be added ^ [01:13:28] d'oh [01:14:29] adding [01:14:58] good, working. [01:14:59] AaronSchulz: i'm noticing that i'm not always seeing my changed (like new tags) right after saving... probably a little slave lag [01:15:25] 03skizzerz * r41916 10/trunk/phase3/ (3 files in 2 dirs): * integrating UniversalEditButton extension into core (enabled by default, set $wgUniversalEditButton = false; in LocalSettings to disable) [01:16:01] .http://www.mediawiki.org/wiki/Special:Code/MediaWiki/author/nicdumz mmmm looks like the bottom part is buggy. all green ?! [01:16:13] iirc we've got some handy way to stash a master position in the session which the next load should wait for... [01:17:26] brion: any chance that CodeReview will support repo browsers other than ViewVC? [01:17:46] 03tstarling * r41917 10/trunk/extensions/Renameuser/SpecialRenameuser_body.php: [01:17:46] Fix for r41347 and some previous error: Use Title::makeTitleSafe() for [01:17:46] constructing title objects where the namespace is known, not [01:17:46] Title::newFromText(). Title::newFromText() with a default namespace allows the [01:17:46] input to override that namespace, e.g. renaming a user to a template. [01:18:09] 03brion * r41918 10/trunk/extensions/Collection/Collection.php: [01:18:09] Revert r41883 "only set config vars, if they have not already been set" [01:18:09] We do it this way to protect against attacks when register_globals is on on the server -- that would allow an attacker to override all your defaults with their own values, potentially dangerous. [01:19:08] AaronSchulz, http://www.mediawiki.org/wiki/Special:Code/MediaWiki/41633 : the conf var name can be changed ; what name would you imagine ? [01:19:33] where's status=don't care [01:19:43] TimStarling: status=[[UN:N]] ;) [01:20:01] how am I meant to tag extensions that aren't reviewed? [01:20:34] heh [01:20:46] well what i'm doing for now is tagging things we don't use as ok, as long as they're not blowing stuff up [01:20:51] we could make a separate status for that perhaps [01:20:56] "later"? [01:21:01] "meh" [01:21:25] notcore? [01:21:41] "d'oh" [01:21:57] duncare [01:22:08] well, extensions that we use aren't technically core... [01:22:27] they CAN be with a bit of effort :D [01:22:34] :) [01:24:03] also, you lied. You said UniversalEditButton would be a one-liner. It was three (not counting line breaks in the if statement, the array, or the ending curly braces) :o [01:24:21] you know, a newline isn't required there ;) [01:24:41] I suppose :P [01:24:48] d'oh looks like we lost aaronschulz [01:24:50] anyway, add a status for it of some kind, or else I'll do it [01:25:06] go ahead, should be pretty straightforward [01:25:09] *Skizzerz should add Trac support to CodeReview :) [01:25:18] add it to the enum and the little listy thing of valid values [01:25:29] *brion stomach rumbling, it's getting to dinnertime :) [01:26:07] i'll catch up w/ you folks later... [01:26:07] 03(mod) Implement the Interlanguage extension in Wikipedia - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=15607 (10puzzlet) [01:26:28] brion, currently everyone can link users on mw.org . you probably want to change this :p [01:27:08] ( codereview-link-user ) [01:27:18] bah [01:27:34] how about "not reviewed"? [01:27:47] maybe ambiguous? [01:28:06] *brion tweaks CommonSettings... [01:28:13] TimStarling: 'deferred'? [01:28:37] ok [01:28:56] another alternative might be having some sort of magic tagging for 'revisions in stuff we care about' -- trunk phase3, extensions we use live, and leave the other dirs to be reviewed whenever [01:29:10] (through a filtererd view) [01:29:16] but this'll be quicker for now ;) [01:29:21] ok i'm really leaving this time ;) [01:30:24] Twofold question: Where does one edit/modify the indicia after usernames on RC (talk, contribs, block), and should or should not there be a system message for that? [01:31:35] you can change the words, but not easily the links/meaning [01:31:52] 03nicdumz * r41919 10/trunk/extensions/CodeReview/CodeReview.i18n.php: Adding "right-codereview-link-user" [01:31:53] see Special:Allmessages (in the soup) [01:31:54] Nor hide, if desired? [01:32:13] you could probably null the appropriate message, but be aware they may be used otherwhere than just on RC [01:32:18] Yep, I've been looking at allmsgs [01:32:36] what do you want to hide? [01:32:39] 03tstarling * r41920 10/trunk/extensions/CodeReview/ (CodeReview.i18n.php CodeRevision.php codereview.sql): Added 'deferred' status. [01:32:54] Didn't want to change talk or contribs or block links across the wiki, just on rc [01:33:18] Like, say, to avoid accidentally clicking on a block link [01:33:38] well, try it [01:33:42] it brings up a block form [01:33:49] Splarka: For logged in sysops, that whole array (talk - contribs - block) [01:34:00] is not a single-click action [01:34:15] anyway, you might be able to use a hook to modify the rendered output and strip the block link, in an extension [01:34:20] Yeah, but I just figured why even go one click if you don't have to, y'know? [01:35:16] *Skizzerz uses the block link on rc quite often... click it then check the diff in a different tab so that I don't have to find the block link on the diff page if it's a bannable something [01:35:49] 03(NEW) initial cursor placement/focus - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=15922 15enhancement; normal; Wikimedia: General/Unknown; (csarsenault) [01:35:52] http://www.mediawiki.org/wiki/Manual:Hooks/OldChangesListRecentChangesLine [01:36:20] *Skizzerz doesn't know why that isn't a mw message [01:36:35] although it would be pretty confusing :P [01:36:46] how would it handle sysop/non? one msg for each? [01:36:58] hmm... no idea [01:37:01] MediaWiki:RecentChangesUserLink and MediaWiki:RecentChangesUserLinkBlockAccess ? [01:37:15] it would also have to handle normal/enhanced rc too [01:37:20] ew [01:37:22] which means 4 messages [01:37:30] so yeah.. that's probably why [01:37:36] so that's why [01:37:40] so that's why [01:38:28] And that's undesired? With all of the other system msgs for little things? [01:54:19] 03tstarling * r41921 10/trunk/phase3/ (3 files in 3 dirs): Fix stomach-churning case of edititis in r41350: made optional. [01:56:26] anyone with +Coder on mediawiki.org want to link my svn account with my wiki account? [01:57:26] same name? [01:58:53] yeah [01:59:02] http://www.mediawiki.org/wiki/Special:Code/MediaWiki/author/skizzerz/link [01:59:35] *Skizzerz could theoretically just give himself the group and do it himself, but that wouldn't be a very smart course of action :) [01:59:56] The action you have requested is limited to users in the group: Coders. [01:59:56] meh [02:00:30] DarkoNeko, back off :p [02:00:46] *DarkoNeko hisses [02:06:34] TimStarling: better? http://pastebin.com/d68021d65 [02:07:19] Skizzerz: done [02:07:24] thanks [02:09:03] # Don't cache the first instance so we don't cache every file on the page [02:09:05] why? [02:09:42] is this a special-case optimisation for a particular test case? [02:10:12] hello [02:10:42] hi Werdna [02:11:05] Werdna: hey [02:11:13] *Werdna grumbles about people whining about "Main Page" being in the wrong namespace, again. [02:11:18] We must have had 50 discussions on it. [02:11:27] well the cache doesn't really help if the image isn't used more than once, it would just be a bunch of file objects filling up memory [02:11:27] well, it only takes one [02:11:39] it is only one guy. [02:11:41] they don't need a majority do they? [02:11:56] and every time it gets rejected, he comes back and phrases it slightly differently. [02:12:56] lol [02:12:59] heh [02:13:01] just ban the guy or something [02:13:15] related to http://en.wikipedia.org/wiki/Wikipedia:VPT#Chess_pages_will_not_load [02:14:02] MrZ-man: what if every image is used twice? [02:14:54] then you've missed the opportunity to reduce the number of file fetches by half [02:15:44] teehee, reasons given: [02:16:31] 1/ The wrong nstab. 2/ Copying would have one extra article. 3/ The 'Cite this page' link would disappear. 4/ The {{NUMBEROFARTICLES}} would be more correct (yes, 1 page out of 2.5 million) [02:19:29] 5/ it would shut him up [02:19:35] which could almost be worth it [02:19:45] I don't believe that we should reward people who waste our time like that. [02:19:49] except he'd then go to other projects, reinforced with that victory [02:20:08] you don't think stopping people wasting time is worth wasting time over? heh [02:20:09] exactly :P [02:20:26] *Splarka watches the weather channel [02:21:00] TimStarling: it was Brion's idea :) I guess with the limit on cache size its probably unnecessary [02:21:49] probably [02:21:55] have you tried measuring the memory usage? [02:22:25] I have profiling on [02:22:56] how much space does it take per file? [02:24:01] hmm, what's the 'deferred' status? [02:24:16] = 'I don't care' [02:25:42] <^demon> For those who are unaware, what is the reason for tying a commit name to a username? [02:25:42] I just tryed to log into onto my wiki and it says I have an incorrect password? I told it to email my password and I tried to log in with that password and I still couldn't log in. Itsaid I had the wrong password. But I copied what I had in the e-mail? [02:37:25] *Von has a cold and it's kicking Von's ass [02:38:14] about 300kB per file to cache it [02:39:26] no, that's not right [02:39:37] madness90: Are you admin? [02:40:03] If so, does it match your LocalSettings.php pswd? [02:40:45] for 5 images, none repeated, it uses 1239131 bytes [02:42:08] How to hide h1.firstHeading on select pages in a namespace without hiding it on all? Extension:NoTitle doesn't cut it. [02:43:03] AaronSchulz: I like your page of funny stuff. [02:43:42] [07:20] I think brion has perfected the art of using jokes as a replacement for documentation: [02:44:27] Von: pages have page-specific classes in the [02:44:32] 21 images uses 1373458 [02:45:02] body.page-Main_Page h1.firstHeading, body.page-Special_RecentChanges h1.firstHeading, body.page-User_Your_Name h1.firstHeading {display:none;} [02:49:03] Splarka: But if I display:none per namespace, that hides it on all, no? Or am I misunderstanding? [02:49:38] *all pgs in that ns [02:51:23] you aren't doing all pages in a namespace with that example [02:51:41] okay, tell you what, give me a list of all pages you want the h1 hidden on in the form of: [02:51:52] [[User:Foo]] [[Main Page]] [[Special:RecentChanges]] etc [02:54:36] ns-0 [02:55:09] Does that work? [02:55:11] ignore namespace, it doesn't matter for your question [02:55:14] oh [02:55:30] How to hide h1.firstHeading on select pages? [02:55:36] is your question basically [02:55:38] list the pages [02:55:52] or, an example, of say 5 or 10 [02:57:14] Well it's a range of pages in the (Main) ns, they have different titles... no user pgs, specials or anything else [02:57:52] So, "Foo" I guess? [03:00:24] Sorry if I'm not understanding. [03:00:55] well, you have to list each one individually in the form of: [03:01:03] body.page-Main_Page, [03:01:07] body.page-Another_Page, [03:01:13] and then for the last: [03:01:20] body.page-Last_Page {display:none;} [03:01:29] well, with h1.firstHeading for each of course, heh [03:01:52] body.page-Main_Page h1.firstHeading, body.page-Another_Page h1.firstHeading, ... body.page-Last_Page h1.firstHeading {display:none;} [03:02:12] the class is page-Pagename where Pagename is the escapeclass'd css safe name [03:02:20] you can find it by viewing page source, is in the [03:02:31] oh, I think I see... so you can just use the page title? [03:02:46] sort of, you have to use what MediaWiki determines is the CSS class safe page title ^_^ [03:02:56] hmm, k [03:03:18] *Von goes to see what happens [03:05:39] Could that be rendered per page as body.page-{{{foo}}} h1.firstHeading {display:none;}, as in a template on that page? [03:06:37] no [03:06:41] this has to go into site CSS [03:07:04] [[MediaWiki:Monobook.css]] (assuming you have that as your default skin) [03:07:15] can't be templatized [03:07:21] for that you'd need an extension [03:07:32] Yes, mono. dang, that's a lot of pages to do then [03:10:06] if they all have the same prefix you could use advanced CSS selectors (won't work in IE): body[class^="page-Main_Page"] [03:10:16] would get [[Main Page]] [[Main Page/foo]] etc [03:10:32] anyone want to review my changes? I'm not going to mark my own changes as "ok" [03:10:49] oop, damn, muliple spaces, have to be something like body[class*=" page-Main_Page"] [03:11:45] How about a class that calls on that CSS line? Thinking out loud, here.... [03:12:35] Like, I saw id=titlehack on Uncyclopedia [03:14:01] Is DarkoNeko French? [03:14:19] how do I output some template code only if the user specified the template field? [03:15:33] btw, Splarka, yes, that does work... ty [03:15:34] von: well, if you want to get into javascript... meh [03:16:03] yeah, I can't get into .js [03:16:12] regex: with ParserFunctions extension? [03:16:43] Von: Uncyc used to use pure CSS, I wrote 90% of it myself, but then they ditched that for a JS solution, was inelegant [03:16:58] Now if only there was a cure for the common cold... *sniff* [03:16:59] just {{ #if template_field_name | html_to_output }} ? [03:17:25] {{#if:{{{templatefieldname|}}}| true | false }} [03:17:38] cool thanks [03:17:39] you have to specify the name as a variable name in {{{}}}, and give a null fallback, with a pipe [03:17:58] because #if _only_ checks for a null string (or empty, for you sticklers) [03:18:13] What do they expect if .js is disabled? [03:18:16] so in order to check if variable names are defined, {{{name}}} won't work, have to use {{{name|}}} [03:18:23] Von: failure [03:18:41] but as it is aesthetic, it isn't critical [03:18:46] That makes sense, actually... for Uncyclopedia. [03:18:54] *_mary_kate_ wonders why someone would disable .js without disabling inline javascript [03:18:55] hey, same for En.wp [03:18:56] <_mary_kate_> ;) [03:18:57] TimStarling: brion can ;) [03:19:22] they used to use javascript to change titles, like IPod to iPod [03:19:40] (until DISPLAYTITLE was rewritten to facilitate such things, but DISPLAYITTLE won't work for your needs) [03:19:55] Yeah, what's up w/that ennywayz. [03:20:09] AaronSchulz: you could too, you're in the coder group [03:20:10] for those playing the at home drinking game: Splarka dissing javascript, 2 drinks [03:20:25] for those playing the at home drinking game: Tim asking Aaron to review his code, finish the bottle. [03:20:43] *Splarka hides [03:20:48] DISPLAYTITLE = happiness... once. [03:20:50] TimStarling: I doubt you of all people would want me to do it [03:20:55] perhaps andrew? [03:21:09] *AaronSchulz pokes Werdna [03:21:30] I'm quite happy for you to do it [03:22:02] Splarka, what would you suggest given that this is my true code? do I need to put it in a template to get it to work? http://pastebin.ca/1224288 [03:22:03] you're quite capable [03:22:09] *AaronSchulz goes to subway [03:22:28] I still have stats homework I just found out is due tomorrow [03:22:38] oh well, only a few probs [03:24:31] regex, are you asking if that's the correct syntax for specifying {{{title}}}? [03:24:39] regex: pain and suffering are forthcoming [03:24:47] i have to do it splarka [03:24:49] of you want to wrap that in a conditional, you have to escape the pipes [03:24:50] am committed...:) [03:24:52] ^if [03:25:03] create Template:! with contents of one single | pipe [03:25:16] and replace wikitable | with {{!}} [03:25:42] That's sort of the prerequisite first step in creating any range of templates. [03:26:04] That and {{tl}}. [03:26:10] what's that one? [03:26:13] and {{t}} [03:26:35] {{tl}} creates a template link [03:26:37] http://pastebin.ca/1224292 <-- regex [03:27:06] impressive... [03:27:08] and to continue on: http://pastebin.ca/1224293 [03:27:10] jeez [03:27:23] }}{{#if: <-- important to leave out stray

[03:27:41] next #if begins on same line last one closes for multiple in a row [03:27:55] regex: take a look at infoboxes on en.wp [03:28:07] you always give great help, thanks [03:28:13] you can enable tidy and use html instead if you want [03:28:45] {{#if:{{{foo|}}}|foo{{{foo|}}}}} [03:28:53] a bit cleaner [03:28:53] i'm using Semantic Forms, need to use these parser functions to modify the templates that their template forms outputted [03:29:03] !hesaidsemantic [03:29:03] --mwbot-- I don't know anything about "hesaidsemantic". [03:29:12] damn, whas that only mwbot2? ^_^ [03:29:50] TimStarling: there doesn't seem to really be much of a difference in memory usage between caching on the first use vs second use [03:30:02] i think it would output something like, "conceptually elegant but syntactically a nightmare" [03:30:05] nonsense [03:30:18] well, for a page with no repeated images [03:30:25] i guess that works for wikis in general [03:30:41] are you saying you can store a file object in zero bytes? [03:31:55] that would violate the 2nd law of thermo! [03:32:05] 03(mod) define/document $wgUseEnotif in DefaultSettings.php - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=15921 +comment (10innocentkiller) [03:32:14] or something:) [03:32:48] then how can one have a file of 0kb? [03:33:06] not a /significant/ difference [03:33:35] there is some cost to storing the file..it must be a few bytes for an empty file [03:34:09] <_mary_kate_> Von: that's data size, not includes metadata [03:34:46] <_mary_kate_> Query: CREATE UNIQUE INDEX ipb_address_unique ON ipblocks (ipb_address,ipb_user,ipb_auto,ipb_anon_only) [03:34:46] <_mary_kate_> Function: Database::sourceStream [03:34:46] <_mary_kate_> Error: 1 ERROR: could not create unique index [03:34:46] <_mary_kate_> DETAIL: Table contains duplicated values. [03:38:55] Damn! Wish one could do parserfunctions in css [03:41:17] regex: found it, http://img393.imageshack.us/img393/576/hesaidsemanticga2.jp [03:41:24] http://img393.imageshack.us/img393/576/hesaidsemanticga2.jpg even, failX_X [03:43:05] lol [03:45:12] this appears to be working. i have to admit that i do not want to do this 25 times, nor write a script to do it 25 times [03:47:08] Splarka, should this work? .foo bar:h1.firstHeading { display:none !important; } [03:48:20] firebug+webdeveloper [03:48:30] realtime testing of statements like that [03:48:35] 03(FIXED) English Wikipedia search results missing in action - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=15917 +comment (10sco_scam) [03:50:12] von: no... bad css there [03:51:15] regex: what's the current compatible OS, there? [03:51:25] body.page-Foo h1.firstHeading { display:none !important; } [03:51:56] should work on linux/windows/mac [03:51:59] i use linux/mac [03:52:12] (those are both just firefox extensions) [03:53:07] er, yah, I meant, latest browser compatibility [03:53:11] .foo bar:h1.firstHeading would be... , where the bar tag had a meta-property of h1, which doesn't exist [03:53:24] Von, if you want cross platform you have to use something else [03:53:30] erm, cross-browser fail [03:54:30] can be selected: object, object.foo, .foo, object#bar, #bar, and object.foo#bar / object#bar.foo in some browsers [03:54:53] although, i do seem to recall reading about the key piece of the javascript debugger being browser independent [03:55:04] maybe that was safari [03:55:35] Von: well, if you could do parserfunctions in CSS, you wouldn't need them, for this [03:55:44] that would imply inline