[00:08:05] 03brion * r35521 10/trunk/extensions/Collection/ (Collection.body.php Collection.i18n.php): [00:08:05] * Convert some HTML messages to wiki [00:08:05] * HTML escaping tweaks [00:08:05] * formatting tweaks [00:24:42] Hello, I'd like to make a MediaWiki feature proposal… [00:24:59] Bugzilla [00:25:05] thanks [00:25:19] I was going to ask if that's the right place [00:25:37] Will I easily be able to find out whether the proposal's been made before? [00:26:20] not "easily" but you can search for it [00:26:24] https://bugzilla.wikimedia.org/query.cgi?format=advanced [00:26:30] what is your general proposal? [00:26:36] Lenoxus, you can just make it here, to start with. [00:28:19] jlerner: In a sense [00:28:25] 03erik * r35522 10/trunk/tools/planet/en/config.ini: +3 [00:29:09] Sasoriza: is there some trick i've missed all this time, to formatting templates in a maintainable way? [00:29:43] i want to clean this up: http://organizedwisdom.com/Template:Action?action=raw [00:29:46] well, since I've probably aroused curiosity, it's just this: full rendering of redirect pages. Does that come up a lot? What are the software limitations that allow only categories to show (at least on 'kpedia)? [00:30:16] that extension works if you have, say, {{#if:{{{this}}}|{{{that}}}|{{{somethingelse}}}, but with line breaks after each conditional [00:30:36] right [00:30:41] Lenoxus, it should be pretty easy to do this, I imagine. #redirect doubtless just short-circuits the parser output somehow. [00:31:01] i guess i could try for this:http://en.wikipedia.org/w/index.php?title=Template:Cite_news&action=edit [00:31:27] with a ton of html-style comments [00:32:07] Well, I'll go ahead and propose it and see what comes up [00:32:58] jlerner: can you use pastebin to show the code? [00:33:01] Lenoxus: well, search first for it [00:33:11] You're omitting something [00:33:45] by "full rendering" what do you mean? [00:34:16] https://bugzilla.wikimedia.org/show_bug.cgi?id=927 [00:35:03] Sasoriza: http://pastebin.com/d1a07e4e2 [00:37:11] bbias [00:37:21] Lenoxus: there are some reverse parts of this bug floating around, like https://bugzilla.wikimedia.org/show_bug.cgi?id=2333 [00:37:39] in that the preview shows up like a normal article, instead of like an actual redirect page [00:38:13] 927 is the closest I can find though, but it was closed as fixed (even though it was mostly the newline issue) [00:42:19] heh, protected function viewRedirect() is very minimal [00:43:41] Thanks Splarka! Funny, the reverse one is something I never noticed as a problem (The fact that it previews as "1. redirect (LINK)."). [00:44:01] On 927, Tim Starling's comment is indeed correct, as far as I can tell. [00:44:36] Text after the first line is just as much ignored as on any other, unless it happens to be a category. I think I even remember when the change occurred, but I'm not positive. [00:44:43] shh, don't let it go to his head [00:46:30] 03erik * r35523 10/trunk/tools/planet/en/config.ini: change tag for Lar [00:48:00] Lenoxus: you can render a redirect with &diff=next too [00:48:26] where do I put that? [00:48:36] after redirect=no [00:49:40] or, hmm, sometimes it works [00:50:23] sigh. Where is that new version page layout in the trunk? [00:50:26] http://en.wikipedia.org/w/index.php?title=Interacting_binary_stars&redirect=no&diff=next [00:51:28] That one's funny, Spacepotato moved the page instead of typing in "#redirect" [00:51:54] Sasoriza: http://svn.wikimedia.org/viewvc/mediawiki?view=rev&revision=30608 that? [00:52:30] Whoops I completely take back my last comment [00:52:37] urrrgh I'm in stupid mode [00:57:06] I have a question about mediawiki, is there a dev on? [00:57:15] Chobbit: [00:57:16] !ask [00:57:16] --mwbot-- 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:57:42] Chobbit: just ask your question please :) [00:57:50] Well, then I apologize completely. Ok my question is... [00:59:31] (the suspense!) [01:00:02] We want to have data in an OO representation. Ie, an Item will have a name and a number of variables. We want to be able to dynamically call these items into certain pages. Ie one page would have a list of these items, that are sortable by 3 different variables, and another page has a list of only items that have a certain value in one of the variables... Is this at all doable in mediawiki? [01:00:49] Ie, instead of having to hard code all that information on thousands of pages, just link to the item and the wiki will pull out the information it needs. [01:04:18] jlerner: left a note on your paste [01:04:24] tx [01:06:41] that'd just be a template, wouldn't it? [01:06:47] Chobbit: that sort of thing is doable, via templates. [01:07:00] Chobbit: however, you should bear in mind that Mediawiki is NOT A PROGRAMMING LANGUAGE [01:07:03] a big #switch for example, heh [01:07:30] Chobbit: so, while you probably *can* do your task with mediawiki, it is not necessarily the best information management paradigm for your issue [01:07:34] Template:Number2Name with contents {{#switch:{{{1}}}|00=foo|01=bar|02=baz|#default=unknown}} [01:07:36] Chobbit: then again, it may be. [01:08:17] btw, hey splarka.. :) [01:08:24] Sasoriza: thanks for looking [01:08:28] rar [01:08:34] there's not really a problem as it is - except that it's hard to read... [01:09:11] Well, overall for the general information, a wiki is the best choice, but there are a couple lists of items that would be much less tedious if there was a more dynamic way to present them [01:09:15] Ah. Thought it was the expression error that was a problem. [01:12:48] This is neat. I wish I'd known about it when it started: http://treasurehunt.appspot.com/ [01:13:00] 03(NEW) Redirect pages should render all text - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14323 15enhancement; normal; MediaWiki: Redirects; (lenoxuss) [01:14:39] Chobbit: usually, that is when templates come in handy. if you try to over-generalize your data in mediawiki, you will find madness soon.. but if you apply templates strategically for subsets of your content which need it.. it is "for the win" [01:15:10] Chobbit: you might wish to also look into namespaces, if it makes sense to logically seperate (for search, for example) the data-accessed-via-templates from the data-access-via-normal-means [01:16:15] derwin: Sounds like a plan, I'll look up templates and namespaces now~ [01:17:12] Chobbit: it may not necessarily be obvious how you should use templates and transclusion (other key concept) but the key is, imo, that you can pass arguments to templates, and the templates can transclude or link to other pages based on those arguments [01:18:33] 03(mod) Deleted tlh.wikt blocks SUL process - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14300 +comment (10Wiki.Melancholie) [01:18:58] derwin: hmm, and the data to be stored... how would that fit in? Can I just make a data page for the item with "name, 1, 27, "string", 12" and have the template understand after which comma the data should come from... or...? [01:19:30] I'm not sure I understand your question [01:19:38] but, lets say you had a bunch of widgets [01:19:44] o.O [01:19:45] "data for x case" data for y case etc [01:19:51] ok [01:19:53] as single, manually created wiki pages [01:20:05] as splarka mentioned above, you could call them via a template with a "switch" in it [01:20:43] but it depends.. do you need to link that page [01:20:51] or do you need to include its content in another page? [01:21:25] include it's content in another page, I believe if I understand the question properly [01:21:33] right, so "transclude" [01:21:40] heh, there is a trick to do both... [01:21:55] don't confuse him, Splarka :) [01:22:35] {{#switch:{{{1}}}|all|00=First page}}{{#switch:{{{1}}}|all|01=Second page}}... {{{{FULLPAGENAME}}|all}} [01:22:37] [01:22:40] lol, I love programming for a reason, and it's the confusion! xD [01:23:15] chobbit : for example, I have a usage of mediawiki where I have "process widgets" which are only ever included into "process" wiki pages. process pages live in "proc" namespace (custom namespace) and widgets are in "procw" and I transclude via template called Template:Procw which contains something like {{Procw:{{{1}}}}} [01:23:34] 03(mod) Rename "be-x-old" to "be-tarask" - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=9823 +shell; summary (10Wiki.Melancholie) [01:23:36] I see [01:23:51] the {{{1}}} is the first positional argument, so if I call Procw as {{Procw|Page Name}} it will transclude the page from procw namespace and optionally wrap it, or etc. [01:24:27] ok [01:24:45] that is an example of how you can pass-through using templates [01:24:59] not quite the example you are asking about, but a simple example which I think might help you understand the concept :) [01:25:44] The best learning method is hands-on. Experiment, see what happens. Just don't break anything. :) [01:25:47] heh, soon as I understand the basics to get your concept :) I seriously need a "Teach Yourself Wiki in 21 Days" book, lol [01:26:45] Chobbit: fwiw, I have found this channel _super_ helpful.. they helped me accomplish a wiki information design task in a few weeks time that I would have been hopeless to accomplish otherwise, esp. because mediawiki is good at documenting the various features but not how you might apply them. [01:27:10] yeah [01:27:28] the best pieces of advice I can give are the following : [01:27:37] 1) mediawiki is not a programming language. [01:27:51] 2) do not try to copy templates, especially complicated ones, from en.wikipedia. [01:29:30] lol, 1) I figured that, but it turns out I thought it was less of a programming language than it is ;D and 2) I tend to stay away from copying complicated solutions... i prefer to figure them all out on my own (as painful as that sometimes can be) [01:29:57] copying templates from en.wiki or elsewhere is usually possible as long as you've got the appropriate extensions installed, and copy everything under "Pages transcluded onto the current version of this page:" too [01:29:59] yeah, basically you can learn some interesting techniques but.. many pages use deep voodoo [01:30:21] Krimpet: the problem is that those pages also include other templates. and you end up manually copying templates in "template hell" [01:30:23] I originally was looking for a way to get an sql like database to hook up with a wiki, but since reserching turned up that it was a bad idea, i decided to simplify my questions [01:30:28] like "dependency hell" [01:30:31] derwin: ah, true. [01:30:57] most en.wikipedia templates seem to ultimately include an unlimited/bounded number of templates once unwrapped :) [01:31:10] at least most not-totally-simple ones [01:31:10] too true [01:32:01] not sure which is worse, that or trying to transclude templates into each other [01:32:33] include/exclude certain arguments, etc. [01:32:39] hmm, a toolserver tool that analyzes a template's dependencies so you can copy it might be nice [01:34:27] I still haven't figured out how to use #relabs to transclude via path only a portion of a page [01:34:42] Krimpet, I think Special:Export allows that automatically. [01:35:00] Simetrical: ohh, it does [01:36:44] I'd give my right arm if someone had a solution for that (hint hint) [01:41:55] Woot, newb demonstration time: The widgets usable in a wiki, as derwin was mentioning; How do I create one? The widget page just lists how to use them. [01:44:10] Is it actually widgets you want to transclude? [01:44:39] I'm not sure yet... I want to see what it is I can create when creating a widget and determine if that helps me in what I'd like to do [01:48:01] basically, in OO terms, I have a class Monst { string name; int lvl; string[ ] itemlist ; bitmap image; string[ ] locations } and some pages (like location page) will just display the image, lvl, and name and link to a different page that is specifically about that Monst, that lists everything, and the itemlist string all the strings are converted to links to the item specific pages, etc~ [01:51:23] This whole part of it would be so much easier if just done in a programing language, but this functionality only accounts for a minor part of the total project which is better suited to a wiki. :/ hence the delimma and myself getting stuck going back and forth between all these pages making sure the data matches up >.< [01:56:03] Well, a template will transclude whatever you tell it to transclude. Widgets, text, anything. [01:56:20] I am looking at this page: http://www.mediawikiwidgets.org/Widget:Ohloh_Developer and it appears to be able to do exactly what I'd want my data to do. The only problem is I don't know how he created his widget [01:58:09] I'm pretty sure I know what derwin was talking about, going from having a widget to the final output... now my main concern is getting to the widget... i'm not exactly sure what it is :/ [01:58:30] Do you have shell access? [01:59:00] Well wait, do you want the widget, or the extension that manages the widget? [01:59:26] what do you mean? [01:59:51] If you have access to your database, where the mediawiki files & folders are located, you can install http://www.mediawiki.org/wiki/Extension:Widget [02:00:30] ok, and assuming that get's installed, where do I go from there? [02:00:38] and then call #widget: like Sergey specifies [02:01:28] with {{#widget:WidgetName|etc|etc}}, yeah [02:01:36] *Sasoriza nods [02:02:07] however, how would I create teh widgit "chobbitswidget" so that I can use {{#widget:chobitswidget|var|var}} in the wiki? [02:02:12] the* [02:03:37] MW won't tell you how to build widgets (if it does, it's news to me)... You'd need to google for tutorials [02:04:25] I figured, but all the links i get are for creating rss aggregators >.<; I'll just keep looking then [02:13:35] btw [02:13:38] chobbit, I'm sorry [02:13:54] I use the word "widget" to mean something that mediawiki might not use it for [02:14:25] oh? [02:14:32] I use "widget" to describe "a page which exists only to be included in other pages" [02:14:47] ie, not a content node, something which is included in other content nodes [02:14:54] i see [02:15:01] did you mean "template"? [02:15:02] it is probably not a correc tusage in mediawiki context, as there is probably something called "widgets" [02:15:29] splarka : well, in the case of a template as a pass-through, the template allows you to wrap widgets [02:15:31] so that page would in my case be just a list of the data, and other pages would include parts of it? [02:15:55] Chobbit: in my case, that page is the atomic unit of data for a particular thing [02:16:36] Chobbit: ie, if the process needs to say "kickstart a host" and all process which say "kickstart a host" want to have the same underlying data which chcanges in all o fthem when it is updated [02:17:07] Chobbit: then I put the "kickstart a host" info in the widget custom namespace, and include it via a template which includes things in that namespace with wrapping [02:17:22] the base level atomic information page is still a standalone page [02:17:36] so if I understand your task, there might be a lot of base level pages [02:17:46] hmm [02:17:51] if you are asking if you can put all that info on one page [02:18:00] and switch between sections [02:18:13] I am pretty sure the answer is no, because, not least, mediawiki page limit size concerns [02:18:30] i see [02:18:42] the template allows you to pass-through one-to-many without manually creating all the links, for example [02:18:59] right [02:19:15] but the end level page still has to be an atomic page only containing its information [02:19:24] hmm [02:20:38] wow, that widget extension uses smarty [02:20:42] that's one way to do it [02:20:46] yeah i'm looking more for a many-many relationship [02:20:47] oh? [02:20:59] first, what's smarty? and second, how does that help? xD [02:21:58] sorry for confusing the matter with the word "widget" :) [02:22:23] lol, not a problem~ [02:22:36] smarty is a php templating system [02:22:45] seperate from mediawiki style templates [02:22:59] though that widget I linked to, looks like what I want to be able to do, ie send the widget data and a 'type' and depending on 'type' depends on what kind of output you get back [02:23:35] yes, {{Template Name|TYPE=mytype}} [02:23:56] and then parserfunctions style tests, etc. [02:24:10] I would suggest against trying ot use Extension:Widget unless you really need it [02:24:12] and the data you send, determines which of a thousand items it takes it's data from to return to you certain parts of that data [02:24:14] as it adds the smarty layer [02:24:20] lol, ok [02:24:36] but yes, the template page can act as a switch/pass-through [02:24:43] as an example, I use parserfunctions #ifexists [02:25:01] in the case that a per-cluster doc exists, with name Page Name (CLUSTER) it uses that.. if not, it uses Page Name [02:25:05] for example [02:25:29] more simple parameter pass-throughs are even more straightforward [02:25:59] hmm, is there a working example that i could go look to that you know of? [02:26:12] my stuff is all internal, unfortuantely [02:26:25] I figured [02:26:28] :) [02:26:51] but, essentially, parserfunctions will allow you to do certain types of logical tests on variables passed to your templates [02:27:17] which seems like it will allow you to use templates to connect between pages including that template and the back-end data pages [02:27:17] yeah, I was looking at those, the #if, #foreach, etc [02:27:43] but I am not 100% clear on what you are doing exactly, and am also not really a mediawiki expert, so.. grains of salt! :) [02:27:52] lol [02:27:54] I am definitely not a mediawiki expert compared to many regulars here [02:28:10] (many of whom actually wrote the thing!) [02:28:13] lol [02:28:39] (probably many of which are wondering why i'm trying to break their program so badly~) [02:29:24] well, I could show you kind of what i'm doing... not sure if it's ok to send a bunch of links that almost nobody cares about on this chat, if you want to see would pm'ing be a better idea? [02:29:56] I am on vacation and likely about to go to sleep, sadly :) [02:30:08] otherwise I'd be glad to :) [02:30:17] Chobbit: pastebin [02:30:55] derwin: lol, no problem, but thanks for all your help [02:31:01] Sasoriza: eh? [02:31:18] or, if you have a page to look at... [02:31:39] if not, http://rafb.net/paste/ [02:31:43] Chobbit: hopefully I have pointed you in some directions which might help.. and have not lead you too far astray.. :D [02:32:16] derwin: with programing even the oddest tangents are fun to travel~ [02:32:22] templates are actually very simple to intuit, once you understand what function is doing what [02:34:15] yeah the key is to understand how your data relates to each other, and what the atomic units are [02:34:41] after that, it's just some syntax weirdness/tweaking, and understanding what things you can and can't nest inside each other, which is not necessarily obvious :) [02:35:20] Sasoriza: The basic data is here http://www.mytrickster.net/wiki/index.php/Monster21#Fanta_Fish and many pages use the info (obviously this page uses all the info to display the monster), then for each of the locations, a page like: http://www.mytrickster.net/wiki/index.php/Beach_Field_5_-_Sand_Palace is linked to, and if you note, on the page is a link back... however it's changing so that the link back also includes a picture. T [02:36:16] What I want to do is have the info only recorded once, and each of the pages that uses part of the info to dynamically get it [02:36:42] so that if one piece of info is changed (say the Location) then all other pages would automatically update [02:36:54] instead of going to 50 pages and hardcoding the changes [02:37:16] that is a perfact case for transclusion and templates :) [02:37:24] This is all very intuitive to me from and OO standpoint, it's just getting the wiki to do what it is I want that i'm having trouble with [02:37:35] sounds like I need to go to transclusion & templates 101 then :D [02:38:04] right.. so if your template was called "monster", you'd place {{monster}} on each of those 50 pages, along with whatever conditionals you want specified, and then just make changes to the template as needed [02:38:23] Hmm. "The server at www.mytrickster.net is taking too long to respond." [02:38:35] And I'm on DSL. [02:38:37] >.> [02:38:40] lol [02:38:50] I say refresh and try again? [02:39:19] i'm currently modifying pages at the moment (going from [[Coin]] to [[Image: Coin.gif]] [[Coin]] ) [02:39:42] for each of a thousand items, and repeating for each page >.>; [02:39:50] hence my motivation for finding an alternative [02:40:38] chobbit, fwiw [02:40:47] the pages in the mediawiki are pretty flat in the db [02:41:07] you could probably do some mojo on the stuff in the "pages" table to change all those links in a semi-automated fashion :) [02:41:18] o.O? [02:41:22] except text is in the 'text' table [02:41:38] heh, sorry, yes. [02:42:21] alright, idling off now :) [02:42:24] good luck, chobbit! [02:42:27] thanks a lot derwin!! [02:43:37] If I understand correctly... You want the fantafish table to be transcluded onto other pages? [02:43:49] I' [02:43:51] I [02:44:35] (just using that as an example) [02:45:19] well, some pages just use the image and name, other pages just the name, etc [02:45:51] also if possible to have a page that does the ordering be dynamic so it can be ordered by lvl, experience or defence, etc [02:46:55] so... yes? [02:47:04] I'm getting an error message when I set $wgEmailConfirmToEdit = true in the latest version 1.13alpha SVN download...when it's set to true and an anonymous user tries to create a new account, they get a Permissions error stating "You do not have permission to create new user accounts, for the following reasons: You must confirm your e-mail address before editing pages. Please set and... [02:47:06] ...validate your e-mail through your user preferences." Do I need to do a Bugzilla report on this? [02:49:17] That sounds to me like a problem with your user rights. [02:50:01] You must allow all (*) to create accounts without being emailconfirmed [02:50:37] I'm going to bed, thanks for all the help [02:51:36] I did not change any user rights for (*) other than to set $wgGroupPermission ['*']['edit'] = false and $wgGroupPermissions['*']['createpage'] = false. [02:52:12] And, I've disabled all extensions and I'm still getting the same message. [02:55:08] just for the fun of it, try $wgGroupPermissions['*' ]['createaccount'] = true; [02:55:20] ok, hang on... [02:56:30] 03tstarling * r35524 10/trunk/phase3/languages/Names.php: * No need for a slash yet in hif: variant support has not been implemented for this language, and the Wikipedia edition is only in latin script. [02:57:31] Mike_lifeguard: no dice...still get the same error message. [02:57:55] I think this is a bug....this works with no problem in version 1.11.2. [03:05:23] ? [03:07:52] 03aaron * r35525 10/trunk/extensions/FlaggedRevs/maintenance/ (updateLinks.inc updateLinks.php): Remove orphaned include data too [03:10:19] :/ [03:22:46] 03aaron * r35526 10/trunk/extensions/FlaggedRevs/FlaggedRevs.class.php: Remove unused var [03:27:39] 03(NEW) $wgEmailConfirmToEdit is broken... - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14324 major; normal; MediaWiki: User preferences; (hoggwild5) [03:29:11] hi all, i'm not dev but i was discussing with an extension developer about have static window like gmail chat one [03:29:21] he said mediawiki do not support ajax [03:29:35] the extension is [03:29:36] http://www.gizmogarden.com/index.php?title=Ajax_whos_online&diff=1660&oldid=1659 [03:29:41] is it true? [03:31:27] mediawiki uses ajax in several places [03:31:29] mediawiki supports ajax for a limited number of operations in core, but has mostly seamless non-ajax fallbacks [03:32:06] oop *defers to t* [03:32:18] not really ajax actually, XML sucks [03:32:25] :( [03:32:45] the places where we use XmlHttpRequest use either HTML or JSON as an output format [03:34:44] ok [03:36:57] ajah [03:38:07] Tim: what do you think about using less XmlHttpRequest and using more dynamic