[00:00:09] ZWAndo: have you tried the FAQ? [00:00:15] I think I wrote an FAQ entry about that once [00:01:53] The only mentions of "Sidebar" in the FAQ deal with simple modification of the sidebar (adding a regular interwiki link and such). [00:02:00] I might have missed it, though [00:02:17] it was probably in the old FAQ [00:02:52] http://meta.wikimedia.org/wiki/MediaWiki_FAQ#How_do_I_make_interlanguage_links_work.2C_like_they_do_on_Wikipedia.3F [00:03:04] Ohhhhh [00:03:06] Wow [00:03:14] I feel stupid now. :P Thank you very much. [00:05:46] hmm, I was thinking of getting a PHP/MySQL reference book, but it's all online anyway. [00:05:54] I have a $200 book voucher to spend by the end of the month. [00:06:50] Wait, this doesn't seem to show how to get the links to display on the sidebar. [00:07:09] It mentions the sidebar, but I only see the prefix-creation procedure. [00:07:33] http://meta.wikimedia.org/wiki/MediaWiki_FAQ#I_tried_that_but_it_didn.27t_work [00:08:07] Um, doesn't a certain field have to be true in the interwiki table? [00:09:55] So if the three steps in that first guide are taken, the sidebar information will automatically be generated? [00:10:39] Er, rather, the section of the sidebar that displays the languages will be auto-genned. [00:12:55] yes [00:12:56] when i upgrade mediawiki software, am i able to keep localsettings.php the same? [00:13:06] Ooh, wow, okay then. Thank ye. [00:13:13] sorry, the "tried that but it didn't work" FAQ only works when you actually try it [00:13:20] RingtailedFox: yes. [00:13:24] ok [00:14:13] includes/parser/Parser.php: if( $iw && $this->mOptions->getInterwikiMagic() && $nottalk && $wgContLang->getLanguageName( $iw ) ) { [00:14:22] oh I see, that's how it figures it out. [00:14:27] If the interwiki prefix is a language code. [00:14:29] Interesting. [00:25:38] 03(mod) Special: Allpages for namespace 0 sometimes shows project namespace pages - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=16514 +shell; +comment (10lejonel) [00:34:43] if I imported only the most recent version of an article from another Wiki's Export, can I import the previous revisions of that article later, too? [00:35:52] yes [00:36:08] just import all revisions, duplicates are removed [00:44:31] Is it possible to bulk-create mediawiki accounts? [00:52:50] thanks TimStarling [00:53:08] I've been asking this question a dozen times before :) [00:54:23] just in case - what happens when the article in question has already been deleted on the wiki that I want to import it into? [00:58:07] nothing special [00:59:12] well, does it stay deleted or is it created anew? [01:02:26] both [01:02:38] same as if you recreated it manually [01:02:54] the deleted revisions stay deleted, and the new revisions are created [01:03:23] you can later undelete the deleted revisions, in which case you could get duplicates in the history [01:06:49] ah, ic [01:07:04] are the revisions applied by timestamp? [01:07:25] if there were revisions on the new wiki that conflicted / were later than revisions on the old wiki [01:08:23] all non-duplicate revisions will be imported [01:08:25] and possibly my last question... what if the article was moved somewhere else on the to-be-imported-on wiki ? [01:08:35] the history will show the revisions ordered by timestamp [01:08:41] regardless of import order [01:09:18] if the article is moved, nothing special happens there either [01:09:26] the import is by title, not by page ID [01:09:32] ok [02:06:40] Using $wgOut->parse($text, false) I'm now sometimes getting strings that look like: UNIQ4d7bba0848bd063e-item-0--QINU is this cache related stuff? Or something else bizarre? [02:10:15] puck: hmm, I've seen that before. Maybe Nikerabbit can tell you what's wrong there, because I think he fixed such a thing in Translate some months ago... [02:11:18] Okay, I've just added some level 2 headings to the same page, and the headers now have similar UNIQ strings as well. [02:17:00] Found the fix: http://www.mediawiki.org/wiki/Extensions_FAQ#.22NaodW....22_or_.22UNIQ....22 [02:18:11] i'm having a configuration issue.... tables don't render properly [02:31:50] no one here? [02:32:50] RingtailedFox: they will be [02:34:30] ok [02:36:24] i find it shocking that no one knows how anything works with the mediawiki software [02:36:35] well... yea [02:36:43] if you go to #wikimedia-tech [02:36:50] they should know, but it isn't really the topic there [02:38:37] please, don't direct people there for mediawiki help [02:38:57] why not? [02:39:03] because it's off topic [02:39:40] i see [02:55:53] Hi, is there an extension or a way to display a alphabetically sorted list including page title and some part of the content? [02:59:27] Special:Allpages? [03:02:31] it doesn't show contents, right? [03:03:57] I want like this: http://glossword.biz/demo/index.php/list/Example+dictionary/1.xhtml [03:14:27] does tidy need to be at the VERY beginning of LocalSettings.php? [03:31:02] Does anyone know how to change the links to the user groups in the User List [03:32:25] breath tests for Australian politicians? [03:33:09] What? [03:33:18] CWii: unrelated to your question [03:33:25] CWii: [[MediaWiki:grouppage-FOO]] IIRC [03:33:38] like> 'grouppage-bureaucrat' => '{{ns:project}}:Bureaucrats', [03:33:53] Oh okay, And I knew it was unrelated, It was just random :) [03:34:08] heh [03:34:52] http://news.bbc.co.uk/2/hi/asia-pacific/7764245.stm "Australia MPs 'face breath tests'" [03:48:23] 03(NEW) Allow getting parsedContent of Pages via API - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=16567 15enhancement; normal; MediaWiki: API; (wf) [04:01:20] Hi, how do I allow script includes in $NAMESPACE? [04:28:28] 03(mod) Allow getting parsedContent of Pages via API - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=16567 (10wf) [04:28:55] 03(mod) Allow getting parsedContent of Pages via API - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=16567 (10wf) [04:58:47] I'm having an issue with infoboxes and I'm wondering if anyone could give me a hand [05:01:37] 03(mod) Special: UnwatchedPages should list unwatched pages in the content namespace(s) - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=16433 (10nakonwiki) [05:11:46] I've got a MW install that appears to be sending password emails fine, but not EnotifUserTalk messages. Any suggestions on where to look first? [05:27:26] did you enable $wgEnotifUserTalk in LocalSettings.php and do you have a valid email address set? [05:32:34] nakon: After investigating a little further, it looks like something broke email completely. It was working, but isn't anymore. [05:33:13] I would have said that there should have been an EnotifUserTalk before the last email that did go out, but maybe not. [05:34:32] Sorry to interrupt but I have a quick question. Anyone know why the user function saveSettings doesn't do a commit? [05:36:01] it would increase the query count [05:36:38] sorry [05:37:01] I mean because backend functions don't commit transactions unless absolutely necessary [05:37:28] I'm having some troubles with infoboxes and wondering if somebody could give me a hand [05:37:46] the UI layer is generally responsible for transactions, so that an unexpected abort can rollback the entire UI-level operation, rather than just a part of it [05:38:03] It's definitely sending to a good address, and the UNIX "mail" command works fine. [05:41:52] PHP's mail function also seems to be working. [05:42:32] FunnyMan3595: are you using MySQL? [05:42:41] TimStarling: Yes. [05:43:27] is it user talk notification enabled in the target user's preferences? [05:43:52] did you edit the user talk page as the same user that was receiving the notification? [05:44:10] TimStarling: Yes, and as I told nakon, it looks like it's actually a global MW email issue. Emailuser isn't working either. [05:44:19] And no. [05:44:50] It's also not falling into the spam folder. [05:45:15] but password emails are definitely working? [05:45:45] No. I was misinterpreting that. [05:46:06] check PHP's sendmail settings [05:46:12] they usually don't work by default [05:46:36] TimStarling: I ran the example from http://www.w3schools.com/PHP/php_mail.asp (after suitable modifications) and it worked. [05:48:08] $wgSMTP is false, so it should be going through that same function... [05:48:28] Hrm I just grabbed the newest version of imagemagick (6.4.4.6) and chmod'ed images/thumb to 777, but for some reason whenever it goes to scale svgs it gives me. "Error creating thumbnail: convert: must specify image size." Google's pretty much giving nothing. Anyone else see anything like this? Is there an older version of imagemagick I'm supposed to be using? [05:49:41] MistaG: Are other images scaling right? [05:49:54] (e.g. png, jpg, etc.) [05:50:11] Let me quickly drop one in and see. [05:51:06] Wouldn't surprise me if SVGs had to be handled specially, since they need to be rendered, not scaled. [05:52:05] Bottom line though wikipedia's using svg's all over the place and they're scaling no problem. [05:52:23] MistaG: http://www.mediawiki.org/wiki/SVG [05:52:33] Can anybody tell me why my infoboxes are giving me this result: www.inhifi.com/wiki/index.php/Test [05:52:49] FunnyMan3595: Promising! [05:52:57] And yep scaled no problem. [05:53:06] Dang vector graphics! [05:53:42] TylerInHiFi: Looks like you're missing the extension that handles {{#if}} stuff. ParserFunctions, I think... [05:54:16] I think you just made my day [05:54:20] TylerInHiFi: Yup. http://www.mediawiki.org/wiki/Extension:ParserFunctions [05:54:57] Thanks guys, big help [05:55:17] TimStarling: Any other brilliant ideas for what stupid mistake I might have made? [05:56:47] I don't doubt that it is one, it's just that there are so many places I could have made it... [05:57:21] Hello again. Still hoping for some suggestions about user.php and why there's no commit as part of saveSettings [05:57:52] aja2by2: Probably because it's not critical that all the updates happen. [05:58:29] aja2by2: Anything that doesn't need to be atomic shouldn't be, because making it atomic takes resources. [06:02:56] TimStarling: You're just ignoring me so that I stick around and answer everybody else's questions, aren't you? ;) [06:03:34] Makes sense but there are quite a few comments in user.php that tell people to call saveSettings to commit the changes [06:03:53] *Splarka resembles that remark [06:03:55] aja2by2: "commit" as in save. [06:06:23] RingtailedFox is starting to answer other people's questions, while waiting for his tidy answer/solution/help [06:07:18] hm? [06:07:20] aja2by2: As opposed to the database's "commit" as in transaction. [06:07:22] i think it's a configuration issue, becuase i never did get an answer [06:07:22] RingtailedFox: people that come here and don't get help often get stuck giving help to others [06:07:23] "the comments are like this:" [06:07:23] It's the curse of competence. [06:07:23] well, no one has an answer to my problem, either [06:07:23] Those who have a clue give it to those who don't. [06:07:23] * Call saveSettings() after calling this function to commit [06:07:24] * this change to the database. [06:07:24] because 20 people come in a day and ask "what do I need to parse #if" "why is wgLogo = 'foobar.gif' failing on edit" "can I have per-page read restrictions" [06:07:37] There is a hook at the end of the saveSettings function [06:07:39] because apparently FAQs are out of vogue [06:07:53] that assumes they WERE in vogue :P [06:07:55] aja2by2: I think you're looking at two different meanings of "commit" and assuming they're the same. [06:08:08] This is the new result: http://www.inhifi.com/wiki/index.php/Test [06:08:25] wfRunHooks( 'UserSaveSettings', array( $this ) ); [06:08:39] I installed ParserFunctions and added the line to LocalSettings.php [06:08:46] RingtailedFox: I think your solution is to write your own templates from scratch from what works for your needs. You could have finished by now [06:08:49] I guess I should code in a call to commit in a function called by the hook [06:08:49] aja2by2: That comment is using "commit" more or less the way SVN uses it. Saving a set of changes back to the master copy on the server. [06:08:49] i would but the themplates don't work either [06:08:49] copying templates from Wikipedia is just hard to do [06:08:55] if anyone ever read what i typed, they'd know that [06:09:02] aja2by2: The kind of commit that MySQL uses is completely different, it's a way of ensuring that a set of changes all happen atomically (i.e. all-or-none). [06:09:11] okay now I understand you [06:09:15] it's not necessarily the "database" kind of commit [06:09:20] Right. [06:09:35] anybody? [06:09:42] Splarka: Actually, I'm not anything close to a regular here, I'm just a user who's read a fair amount of the docs and can piece things together. [06:09:46] TylerInHiFi: Looking... [06:10:27] FunnyMan3595, " I'm not anything close to a regular here" += " yet" [06:10:30] Also, I used the version of ParserFunctions for the version of MediaWiki that I'm running rather than the default [06:10:30] if that makes a difference [06:10:30] which is 1.13.2 [06:10:31] TylerInHiFi: Looks to me like ParserFunctions is working fine now, it's something else failing. [06:10:31] *sigh* [06:10:31] !tidy | TylerInHiFi [06:10:31] --mwbot-- TylerInHiFi: Wikimedia uses HTML Tidy, which allows mixed html and wikitables inside parser functions and templates. This can often be confusing for people copying templates from Wikimedia projects. For more information about HTML Tidy, see . Note: RingtailedFox has seen this message a zillion times. [06:10:31] oh, bot lagging, fun [06:10:31] Splarka: I take it "tidy" is what's responsible for escaping HTML? [06:10:31] I tried coding in the following in the function that calls $user->saveSettings(); [06:10:31] it is responsible for not escaping it [06:10:31] More or less the same thing. [06:10:31] $dbw =& wfGetDB( DB_MASTER ); [06:10:31] + $dbw->query('COMMIT'); [06:10:31] well, as I understand it, and TimStarling could clarify... [06:10:48] Hehe. [06:10:59] without htmltidy the Sanitizer.php matches all HTML tags pre-expansion, so all
must have a closing
in the same template hierarchy [06:11:13] but with tidy enabled, it defers that check to tidy which is after expansion [06:11:22] Interesting. [06:11:32] so {{div}} foo {{closediv}} can be
foo
[06:11:47] but that is my guess looking at code I don't understand and behavior that changes depending on the weather [06:12:07] Sounds like a reasonable explanation. [06:12:14] It's self-consistent, at any rate. [06:12:16] that lets you get away with more tricky stuff, if you have tidy [06:12:24] FYI solution is to not use imagemagick. Rsvg is much better. [06:12:33] In that it actually works. [06:13:00] the problem is, the alternative to html tables, are wikitables, which use pipe characters, which aren't allowed uncovered in parser functions, so if you want a conditional table row it looks like: [06:13:01] MistaG: For SVG, I'd expect so. Imagemagic is general-purpose, and Rsvg is--to judge by the name--SVG-specific. [06:13:13] {{#if:foo|{{!}}- \n{{!}}{{!}}bar }} [06:13:47] so wikipedians, who have a working balance of tidy and sanitizer, often take shortcuts by simply using html tables, which become uncopyable for anyone without that harmony [06:14:00] Yeah, see, this is why I didn't copy {{Infobox}} for my wiki, I copied a simpler example from the Dwarf Fortress wiki. [06:14:04] it is rather frustrating :/ [06:14:11] I think I'm understanding [06:14:37] the solution I've always followed is to convert the infoboxes to not rely on Tidy (usually possible as long as the affected objects are tables, and not other html elements) [06:14:42] but this is very time consuming [06:14:53] I took one look at {{Infobox}} and decided that it was too complex to deal with. [06:15:11] I don't need a Swiss army chainsaw. [06:15:12] {{#if:condition|}} ^becomes [06:16:02] The infobox template that I copied from wikipedia is full of lazy corner-cutting assuming that Tidy will be in use [06:16:03] ? [06:16:16] that is what it looks like, yes [06:16:31] especially with your symptom being lots of escaped table tagness [06:16:44] More like they've taken shortcuts that are available because they've got those. [06:17:02] Because sometimes it's easier to do things by hand. [06:17:08] I think that's what I was trying to say, I'm just having a bit of a retard day today [06:17:37] TylerInHiFi: We said basically the same thing, but I [[Assumed Good Faith]]. [06:17:45] Tim: pretty please could some bug monday in the future be dedicated to making the tidy-less behavior of HTML on various template depths work the same as with tidy? I am not saying replicate the behavior of tidy, but just have the sanitizer's tag pairing system check post-expansion? or is that not really possible without making it completely separate from the whitelist checkings? [06:19:21] (okay, technically, that should be [[WP:AGF|Assumed Good Faith]], but who's looking?) [06:19:46] pedanterasts are looking [06:20:00] and they'd say we're on the channel for mediawiki.org, where the link would have to include an interwiki to en.wp [06:20:01] Splarka: "pedants" [06:20:05] :P [06:20:18] saing "pedanterasts" is a good way to find them [06:20:32] *FunnyMan3595 figured as much. [06:21:13] Easier to assume it was a Wikipedia link, since I don't even remember interwiki syntax right now. [06:23:19] bah, *looked it up* [[w:en:WP:AGF]] [06:23:49] Well, thanks for the help, I'm going to go try to wrap my head around writing templates now [06:23:52] And then add the replacement text. Bleh. [06:25:37] personally I like links that do what they say, more than look nice inline [06:25:54] I don't have time to wait a fraction of a second for the tooltip, or un-F11 for the status bar [06:26:30] Splarka: But the messy one is far harder to interpret. If you've seen the article before, you'll recognize what the name is referring to. [06:34:52] have just upgraded to 1.13.2, no error messages, but can't browse the site, can anyone help? [06:51:45] ! [06:53:46] hey MZMcBride what was up with that guy blocking you, sounds like a lack of AGF to me tbh [06:53:54] %3F [06:54:08] Heh. Yeah, he apparently didn't realize I was running a script. [06:54:20] Or something. He's an ancient, ancient admin. [06:54:26] like with MASS protect amirite [06:54:44] Took me five minutes to finally find his promotion details. [06:54:50] All of two people voted. [06:55:06] omg stalker [06:55:14] if I were you I would have RFC'd him [06:55:32] when a police officer walks up to you in the street to yell at you for no reason, you probably ask for his badge number! [06:55:42] damn uppity sheeple [06:55:59] splarka, i'd like you see your javascript credentials with a notary signature [06:56:52] hmm, I have a notary stamp, from some county in Nevada [06:56:57] *Splarka tries to stamp his monitor [06:57:26] that reminds me of the joke about "shaving your monitor" because it was appearing "fuzzy" [06:58:47] Over a silly block? [06:58:59] My block log is pretty long. I don't really care. [06:59:33] that's what '''she''' said [07:00:22] well, it was pretty inappropriate tbh. [07:03:23] *MZMcBride shrugs. I think it's the third (fourth?) block like it. I got upset the first time. CBF the others. [07:04:05] maybe you need a feature... MediaWiki:Blocknote-MZMcBride [07:04:12] could work for IP/ranges too, heh [07:04:27] I hacked the protection form recently for an admin user talk page... [07:04:45] But I don't see a real need for me. I get blocked, it gets reversed, I restart the script. [07:05:34] the admins need to throw you an intervention for your addiction to deleting pages that you feel don't have a right to exist [07:06:20] [[Deletionist]] [07:07:16] i like deleting not needed things either, its nice to remove clutter that serves no purpose or holds no retention value [07:09:15] it is placebic action, it doesn't remove clutter, it isn't any less retained [07:09:23] it maybe saves bandwidth.... [07:09:56] and maybe time, if you're aimlessly looking for something in those namespaces [07:09:59] Not really, MW still serves up entire "this page does not exist" pages [07:10:20] Dan: but people aren't visiting those pages as much [07:10:23] ^_^ Which really, is bigger than some stubs [07:10:23] especially when they're red links [07:10:26] it's something to do, but some schmuck might say that effort might be better put to MAINSPACE WRITING [07:10:42] I don't click talk pages that are red, unless I wanna say something [07:10:57] [[AntiMetaist]] [07:11:09] without the non-mainspace trolls, the mainspace bridges would fall [07:12:36] '''Oppose''': Liek u haz lotsa werk in admonz related areaz but u dun rite in teh mainspace so no mop 4 u [07:18:42] Splarka: Part of a living wiki is deleting pages. [07:18:57] As important as one thousand User: pages that say "hi" are, they can go. [07:20:30] hi all [07:21:32] trying to hide the main page page title... any idea which file i should add this: body.page-Main_Page h1.firstHeading { display:none; } [07:21:45] please? [07:22:57] tried monobook/main.css but it's not working [07:24:01] hai wikibugs [07:24:25] why doesn't wikibugs have an i:line [07:24:50] well it would help if it was registered, heh [07:25:36] Does anyone know where to find a file called MediaWiki:Common.css ? [07:25:53] you just type it in the search bar and either edit or create it [07:26:14] it isn't a file, it is a page [07:26:22] http://yourdomain.com/wiki/MediaWiki:Common.css , http://yourdomain.com/wiki/index.php?title=MediaWiki:Common.css , etc [07:26:40] Naming the directory 'wiki' is usually a bad idea. [07:27:05] how so? [07:27:21] *Splarka corrects MZM...(again)... [07:27:24] MZMcSad: I named it /w and shorter my urls toward a virtual /wiki [07:27:34] Mathieu1: :-) [07:27:38] having the same script path and article path is a bad idea, but not as bad as having them both null [07:28:03] Who's the pedant again? [07:28:23] you, which is why I know you want to get it right [07:28:44] /wiki is fine for a script path, if you have an article path like /cheeseburger [07:29:02] mmm, burger [07:29:38] Splarka: should I edit the page :common.css if I want to hide my main page title? doesn't sound right to me but I might be wrong [07:29:39] *MZMcSad uses wiki.domain.com/page_title just to be a rebel. [07:29:39] can has? [07:29:55] Mathieu1: Heh. [07:30:05] !css [07:30:05] --mwbot-- 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 [07:30:11] MediaWiki:Common.css applies to all pages. [07:30:18] bah [07:30:21] *Splarka fix that [07:31:08] (MediaWiki:common.css wouldn't work well on wiktionary, heh) [07:31:16] !css [07:31:16] --mwbot-- To change styles for your wiki, go to one of the MediaWiki:xxx.css wiki page (NOT a file) 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 [07:31:49] *Splarka cues pedanterasts to go fix it more, but please do it privately or in mwbot [07:31:59] *Splarka grins at MZM [07:32:09] umm.. can't find this common.css page in any directories. Is it in the skin folder? [07:32:28] i might mix up folder and directories [07:32:33] It's a wiki page. [07:32:37] it is not a file [07:32:47] you will never find it, unless you scrape the SQL database [07:33:01] it is a page, on your wiki, that gets included in all regular pageloads as a CSS sheet [07:33:08] (no, that isn't a tautology) [07:33:15] So is that right to add: body.page-Main_Page h1.firstHeading { display:none; } [07:33:21] to the wiki page? [07:33:42] I'll try that [07:33:47] If your Main Page is named "Main Page", yes. [07:34:01] right, but the page you add it to has to be very exactly named.. [[MediaWiki:Common.css]] (and enabled, but it is by default) [07:35:44] I added it to: http://en.domain.com/wiki/domain:Common.css and but doesn't work [07:36:16] i think having a subdomain tough things up a little [07:36:32] Splarka, TimStarling: Bah, I finally managed to track down the problem. The email forward I was using was silently dropping the message, then abruptly started letting it through, for no apparent reason. Wandering off to bug them about that. [07:37:03] ahh, but you've been here more than 2 hours, so now you're stuck helping others [07:37:33] Mathieu1: wrong namespace [07:37:39] the namespace is literally MediaWiki: [07:37:40] Nooooooo! The curse of competence strikes again! [07:37:51] oh! i thought that was an example [07:37:52] no matter your domain [07:38:09] well, that would be for a project namespace, but then we'd use Project:... [07:38:30] Mathieu1: view a page source, look for a or
foo