[00:19:11] {{#tag:source|{{{2}}}|lang="{{{1|text}}}"}} works - thanks so much bawolff would have taken forever w/o your pointer [00:19:24] glad to help :) [00:19:57] right, #tag:... Can't believe I said that wrong [00:32:56] hello [00:33:24] hello [00:33:27] hi [00:33:46] i have one problem in translate extension [00:35:00] i was installed translate extension, but this is don't work complete [00:35:40] see: http://wik.mjm3d.ir/wiki/X/y/z [00:38:34] see: http://wiki.mjm3d.ir/wiki/X/y/z [00:39:05] do u want make one page for translate? [00:39:47] do u can make one page for translate?* [00:40:35] :| [00:40:50] If anyone is interested, final form is
{{#tag:source|{{{2}}}|lang="{{{1|text}}}"}}
[00:41:05] Last gotcha was that a div id seems to be needed if the div is in a template. [00:42:08] i have some problem with MediaWiki !!!!!!! [00:43:13] translate system not work with me!!!! [00:43:53] If you describe your problems, somebody may be able to help you [00:43:55] this is strong, but support is weak! [00:47:40] @bawolff, i installed translate extension, then i wrote abc in my page, "Mark this page for translation" link appeared on my page [00:48:23] ok. What's the problem you're experiencing? [00:50:39] my page not show for trasnlate here: http://wiki.mjm3d.ir/wiki/Special:Translate?filter=!translated&action=translate [00:54:42] I get what looks like a chinese parked domain when I click on that link [00:55:12] Your visit my website, I will understand, I have to translate the test site to feel the problem: http://wiki.mjm3d.ir [00:56:04] @bawolff my site is chiness ?! [00:57:26] http://imgbin.org/images/21550.png [00:57:29] is what I get [00:57:36] Does not look like a mediawiki web site [00:57:50] * bawolff does not speak chinese, so doesn't know what the site says [00:59:37] what is this !!!!!!!! [00:59:43] beats me [01:01:06] this is like a ads on my site !! do u have any extension? [01:01:20] in firefox [01:01:29] nothing that would cause that [01:05:52] http://imgbin.org/images/21551.png [01:06:06] Crud, my knight in shining armour has departed... [01:06:43] Anyone know how to include text with pipes | in it as a template parameter? [01:07:09] (without manually putting in {{!}} everywhere) [01:08:21] bawolff is quit :( [01:09:18] Anyone know my problem for translate extension [01:09:24] :(( [01:10:26] 265 user is online in here !!!!!!!!!!!!!!!!!!!!!!!!!!!!! [01:10:35] :| [01:11:25] mediawiki support is zero level :| [01:12:20] fuck! [01:12:27] v [01:12:29] v [01:12:49] ?! [01:13:31] @amk072 ?! what ?! [01:25:07] Nevermind, did more research, looks hopeless. [01:49:28] hi, i have one template : {{DISPLAYTITLE:{{SUBPAGENAME}}}} [01:51:07] how i can use from this template in all page just with write once ? [02:05:24] jackol: what? [03:33:42] wonder if there'll ever be a 2.xx version [03:37:43] !2.0 [03:37:43] No, seriously, 2.0. Have a tracking bug: https://phabricator.wikimedia.org/T72000 [04:50:19] Lol might be possible in the future with some of the new SOA going on [05:23:53] hi there, i want to modify the parsing of my wiki's wikitext, for eg: when we add '''some text''' it gives us "some text" in bold , now can i modify this to return bold text in some different color by some hooks or something?? can anyone guide me in right direction? [05:34:42] cb__: Modify the site CSS. [05:34:49] !css [05:34:50] 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:Vector.css is for the Vector skin (default), etc. For more information, see !skins and https://www.mediawiki.org/wiki/Manual:Interface/CSS [05:35:15] cb__: Do you want to change one instance or every instance? [05:35:15] b { color: somecolor } [05:38:30] Fiona: hi, that was just an example, actually i want to modify a lot of other things, like adding some text on parsing of sections, lists,etc. [05:39:15] Are you saying you only want to style new text being added like an active diff rendering? [05:41:57] T13|mobile: no, actually i dont know what is a diff rendering, i am only a wiki user not coder or something... but know html css js, and some php , what i want to do is add some text to say when i add a new section header, i saw some parsing methods in Parser.php like formatHeadings but did not want to hack the core files... [05:43:11] I'm sorry, I don't understand what you want to do. [05:43:54] ok let me explain using an example: [05:46:01] if i add something using wiki markup all i want is freedom to add some posttext or some predefined formatting... ex : say i add a heading ===h3 head=== i want to add some text that goes along it in the side with small font size automatically.. [05:47:11] like

h3 head

some text here [05:48:28] T13|mobile: ^ i hope it makes some sense.. can i do this somehow? [05:52:30] cb__: You can add HTML directly. [05:52:32] If that helps. [05:52:42] Like

foo

works. [05:54:32] Fiona: yeah i know.. but I want to add this extra text automatically so that user does not have to add it on their own... [05:54:38] Why would you want to do that? You'd end up with broken code. [05:55:16] What you basically want though is just a template. [05:55:41] @link [[Help:Template]] [05:55:41] https://www.mediawiki.org/wiki/Help:Template [05:59:26] ok thanks everyone i'll give it a try.. :) [11:11:39] hi, question about the API [11:11:51] is there a way to get all &printouts= [11:12:04] without specifying a long list of x|y|z|etc [11:47:41] anyone? [11:58:27] norbert: as far as I can see, printouts= is not a standard parameter [11:58:42] norbert: and I'm also not sure what 'all' means in your context [12:01:00] valhallasw`cloud: oh, you are right [12:01:04] it's part of the Ask API, apparently [12:01:42] hi [12:03:55] how i can set one template on all page ? [12:04:25] this template: {{DISPLAYTITLE:{{SUBPAGENAME}}}} [12:09:16] Do not mediawiki forum for asking questions? [12:30:53] jackol: it is, but it's also the end of the year, and many people are on holidays, visiting family, etc. [12:31:27] jackol: also, your problem sounds like 'I want to show the subpage name on top of the page', not like 'I want to set one template on all pages' [12:34:51] helder: I submitted a patch for T66314.Kindly review it [13:34:17] is there someone here who works (or can work) on the API? [13:36:12] where do I report bugs or ask questions related to some issue with Wikipedia and what time zone are people normally active? [13:36:42] I tried #wikimedia-dev but it's quite populated by bot messages so not sure if that's the channel for this [13:42:44] sawrubh: bugs.mediawiki.org [14:41:25] Hello. Arab wikipedian community got a grand to create a mobile app to upload images directly into commons. https://www.mediawiki.org/wiki/API:Properties has nothing to offer. Any ideas [14:53:03] Tarawneh: there already is a commons upload app, so what would it do that app doesn't? [14:53:13] Tarawneh: I'm also not sure what you need from the properties api [14:53:30] Tarawneh: aren't you looking for https://www.mediawiki.org/wiki/API:Upload ? [14:57:53] valhallasw`cloud: perfect , exactly what I needed [14:57:59] https://www.mediawiki.org/wiki/API:Upload [14:58:01] :) [14:58:20] Tarawneh: As valhallasw`cloud asked, why are you making *another* app for uploading to commons? There is one already. [14:58:42] We need a customized version [14:58:53] "we" meaning ar.wikipedia.org? [14:59:05] almost [14:59:07] :) [14:59:18] Tarawneh: What needs to be customised? [14:59:28] arabic wikipedia is working with the a few universities now in Jordan [14:59:32] and [15:00:00] The students need to make a 10 hrs community service in Jordan [15:00:24] So what we did is to get the universities to accepts the uploads to commos as an acceptable hrs. [15:00:53] Tarawneh: And? [15:01:02] but the photos need to be objective and help provide information needed for Jordan cities [15:01:26] The app will count each student upload and [15:01:52] provide a feed back to the universities as which student compleated the required work [15:02:20] Tarawneh: We already have a way to count user uploads. [15:02:24] the app will connect to a local server in each university depending on the student [15:02:32] Yes we do I know [15:02:33] Not *in the app* because that's a silly way to do it in general [15:02:44] The API can count uploads. [15:02:56] but we need something that tells the universities exactly what they need [15:03:16] Tarawneh: What do they need beyond "number of uploads"? [15:03:24] API can't count, but the app with a data base on the university side can do that [15:03:43] ...uh-huh [15:03:55] Tarawneh: You can get the list of user uploads, count them, and post them to the university. [15:03:59] Better security, less dev time. [15:04:19] (because client-side counting and posting means it's vulnerable to tampering) [15:04:23] :) we are talking about 12000 student [15:05:02] Tarawneh: I don't see what that has to do with it [15:05:07] each time the student sends an image to commons , the app will connect to the university data base, update it with all required info [15:05:53] the Q.S. office will be able to tell what did all the students do [15:06:03] when and which photos [15:06:09] on thier own servers. [15:06:18] Tarawneh: Unless some clever student fucks with your app's memory and makes their count big enough to pass [15:06:27] And then shares that hack with the rest of the students. [15:06:39] :D [15:06:49] Just links to some random Good Picture candidates [15:07:04] we already got the money to work on it. [15:07:44] I'm sure you did, I'm just saying 1. You can do it more easily, and better, and 2. If you don't, there are serious vulnerabilities [15:08:14] *higher quality* for *less investment* is a no-brainer. [15:08:16] marktraceur: I am always open to suggestions [15:08:24] I'm sitting here giving you a suggestion. [15:08:28] this app will be a first step toward building a large framework [15:08:28] Don't write a new app [15:08:58] is the current app opensourced ? [15:09:02] Tarawneh: Have your students register their Commons usernames, then using those, fetch their upload lists once a week, count their uploads, and use those to update the University databases [15:09:13] Tarawneh: Don't even talk about developing an app, you don't need to [15:09:47] Tarawneh: But yes, the current Commons app is free software [15:10:35] hmm, we need a way to make sure that the usernames are owned by the students and not just any active account that a student find on commons [15:10:37] :) [15:10:52] an oath or something [15:11:02] Tarawneh: Use OAuth. [15:11:28] Tarawneh: http://mediawiki.org/wiki/OAuth [15:11:44] Tarawneh: Even better, https://www.mediawiki.org/wiki/Extension:OAuth [15:12:00] checking links [15:12:14] Tarawneh: Using that, you can have them log in and return a token to your server [15:12:53] hmmm, problem almost solved :) [15:13:34] What's left? [15:13:41] need to check with the university tomorrow and see if things fit in the plan [15:14:08] OK [15:14:19] I'm glad I could help you work this out [15:14:20] This sould be part of a larger platform [15:15:18] we are planning to build a parallel social media platform for the universities in Jordan with this a starting point [15:17:20] "Like FACEBOOK, but for UNIVERSITIES IN JORDAN." [15:17:37] exactly, and buy having our own platform in the universities we can redirect the money from Facebook into universities platform to give the Arab community the needed financial independence [15:17:51] Ehhhh [15:18:09] Tarawneh: Your students won't use a separate social network, they'll still use Facebook. Sorry to break it to you. [15:18:26] hehe we already figured that out [15:18:36] "WE'LL JUST BLOCK FACEBOOK" [15:19:12] so that is why it will be mandatory, and all discussions with the teachers will be restricted to this platform [15:19:13] Tarawneh: You seem to have a serious case of reinventing-the-wheel-itis [15:19:38] the uploads will only be counted if they where done through the platform [15:19:56] Even if you wanted to have a social network, there are free ones that you can run that will do what you want [15:20:15] home works and assignments will be givien through the plat form [15:20:19] Even ones that won't be isolated, so students might actually use them instead of just humouring your silly mandate [15:20:28] we are looking into the free options [15:20:54] Tarawneh: pump.io would be one of my first suggestions, e.g. [15:21:02] Yes indeed, the more interconnected with other platforms the better [15:21:37] google pump.io [15:23:26] Apache License :) [15:23:49] Mobile-first social networking [15:23:50] Activity stream functionality for an existing app [15:23:52] Experimenting with social software [15:27:10] marktraceur: thanks for your help, expect me to nag you soon :) [15:27:18] No problem, looking forward to it [16:43:51] I'm unable to log in because I forgot my new user name. My old was GOPC_JHU I believe [16:45:21] User account "GOPC JHU" is not registered. [16:45:28] sara05: which wiki are you talking about? [16:45:33] mediawiki.org? [16:46:04] Yes, I believe so [16:46:20] It may have been JHU_GOPC [16:46:50] same... not registered [16:47:56] I was told that I had to change my username because there could not be a school name like JHU in my user name. I thought it was changed to Sarah05_GOPC but that isn't coming up [16:48:56] do you have a link? [16:50:13] I actually found it, my username was in the link [16:50:16] thakn you for your help [16:51:47] err [18:34:06] if I want to test a particular section of a code in php, say a database connection,without having to run the entire mediawiki app, can someone suggest any tools for doing this? [19:14:18] codezee: what you mean? Just try a db connection with php and it should work with MediaWiki, too. [19:18:58] You could run php maintenance/update.php [19:27:56] FlorianSW: I'll rephrase,what I mean in particular is, while reviewing code how do developers test out a particular method which has been modified and whose use may not be directly evident [19:28:49] codezee: Just do an action which uses the method, e.g. if you changes something in the save mechanism of EditPage, edit a page and save the edit :) [19:29:18] (and if there is a phpunit test for the function; run it and look at the result) [19:30:29] FlorianSW: alright, I get the idea, thanks! [19:30:43] cool :) [20:51:17] I'm having some problems with code working on my localhost but not on my server, anybody got any ideas for where I should start debugging? [20:51:57] what are the symptoms? [20:52:41] hooks are running on my machine but not on the server [20:53:01] but the MW core version and extension code are identical [20:54:19] well, I know it sounds obvious, but are you sure the extension is installed in production? (listed in Special:Version) [20:54:25] yup [20:54:48] same version and everything [20:55:16] are you sure, that the hook gets not executed? That sounds really strange. Maybe a cache problem? (Can you try to use action=purge) What hook is it? [20:55:42] if the hooks are for the parser, you may need to edit a page so it gets reparsed and the hooks executed [20:56:24] I did a little file_put_contents inside the hook to write to a file if it ran, and the file stayed empty [20:57:01] the hook is SkinBuildSidebar, adding a sidebar module [21:00:20] what if you open a page with ?action=purge ? [21:05:49] No change :( [21:08:47] Where can I find out more about modifying ... "Template:Pagebanner" code [21:09:31] Is this a part of the core ? [21:17:16] I cannot answer if people leave after 10 min. [21:20:43] ibjoe, where did you find "Template:Pagebanner"? [21:20:54] templates are normally on-wiki code [21:22:43] I'm new to mediawiki and I've got this job to modify how the TOC elements are curated via code in Template:Pagebanner, but I can't find the code ?? [21:23:17] I can't find "Template:Pagebanner" ... that's one of my problems ... it's active on our installation ... but I can't find it ?? [21:23:25] it's on your wiki. [21:23:56] Go to https://whateveryouraddressis/wiki/Template:Tracked [21:24:00] there you'll find the code. [21:24:18] Ok ... working ... [21:28:33] I don't find anything at that address ... [21:29:39] andre__: you put on the example Template:Tracked, not Template:Pagebanner :) [21:30:03] ah well :) [21:30:16] ibjoe: have you tried pasting "Template:Pagebanner" on the search box of the wiki? [21:30:29] just because my brain is slow does not mean that you don't have to think yourself too and correct me :P [21:30:34] it should give you that page, if it exists, of course [21:32:21] The template is active in my installation, but ... "/wiki/Template:Pagebanner" ... shows nothing ... [21:32:39] what do you mean by "active"? [21:33:14] if /wiki/ is actually set as your prefix. Depends on your settings. [21:33:17] I get a "Not Found" ... [21:33:32] how do you know it's "active"? [21:33:33] templates do not necessarily need to show anything on the template page itself. Sometimes they only display contents when they're transcluded [21:34:19] ibjoe: also, is your wiki public? giving a link to your wiki will make things a lot easier [21:35:41] ... "en/Wiki/Template:Pagebanner" ... DOES work .... It's public ... and produce AD revenue for my employer, but now I'm tasked with making changes ... to a new feature implementation ... Pagebanner !!! [21:36:24] so it works and you can access it. okay. [21:37:20] Now, one level of mystery has been lifted ... but there is no code there ... [21:38:09] is Template:Pagebanner a "baked-in" feature or can it be modified ? And where ? [21:39:05] if that template is being used on a page, editing the page will give you a link to the template below the edit form [21:39:31] Ok ... working ... [21:41:24] There is a link to docs but not code ?? [21:42:31] I dunno... because we can't see your wiki [21:43:46] I get it ... on the page where the template is USED ... EDIT that page and the template is listed below clicking on that link allows you to edit the very template it self ... WOW !!! [21:44:42] I'm so RAW ... what is this language that includes elements like "#ifeq" [21:45:08] that's ParserFunctions: https://www.mediawiki.org/wiki/Help:Extension:ParserFunctions [21:45:34] that gives basic programming logic to MediaWiki [21:47:58] Ok... Paydirt. [21:51:21] Now, my task is less ... impossible ... I actually have found code to modify ... rather than the impossible task of modifying code I can't find. Thanks!!! [21:52:38] yw [21:59:56] There is supposedly an "edit" link for each template, at the bottom of the edit window of the page using it [22:02:15] Yes. You'll find the link "edit" in parenthesis next to the name of the "Template:" ... [23:50:07] @Vulpix, where do I go to learn this language and strange terms like "transcluded" ? [23:59:39] Where do I go to learn this language that includes elements like "#ifeq" and strange terms like "transcluded" ?