[00:48:44] Do changes to Lua modules need to propagate through the job queue like regular templates do? [00:54:22] badon: yes [00:57:00] MatmaRex: OK, is there typically a performance improvement with Lua over templates? I looked around and I couldn't find a neat list of the motivations for implementing Lua, but I seem to remember discussing it. I think one of the motivations was to have a real programming language to reduce the need to do bona fide programming in MediaWiki template code, but I'm not sure why that is - more power, flexibility? [00:57:40] yes, all of these [00:59:47] OK, thanks. [04:31:20] are all extension special pages supposed to prefix their span elements with the extension name [04:43:12] Withoutaname: afaik there isn't a rule persay, but its a good idea [05:00:13] p858snake|l: hm, would you recommend using jquery for a special page [05:25:25] Withoutaname: if it means you not reinventing something, sure [06:54:48] hm. how can i justify paragraphs by default globally on all pages of a mediawiki? [07:18:24] gleki, the answers /might/ be within https://en.wikipedia.org/wiki/Wikipedia:Village_pump_%28technical%29/Archive_123#Justify_paragraphs [07:18:40] basic CSS (from that thread) = #article, #bodyContent, #mw_content { text-align: justify; } [07:21:58] Hmm, neat, it's testable with https://en.wikipedia.org/wiki/Wikipedia?withCSS=MediaWiki:Gadget-JustifyParagraphs.css [08:29:28] can I rename the already existing i18n key names? [08:29:28] I want to rename some key names in i18n/*.json, but i don't know it is ok [08:47:32] devunt: If you rename the key names, you need to replace them in the code as well. [08:48:01] then how about other .json files? [08:48:24] I already renamed in en.json and qqq.json and code [08:50:50] devunt: People who set their language as something other than english won't be able to view the messages anymore. [08:53:25] kunalg, well then should I change key names in all json files? [08:55:35] devunt: I am not sure regarding if you need to do that, usually if you add a new key, you need to only make an entry in any language and qqq.json only. [08:55:46] Nemo_bis: Comments? [09:23:07] devunt: Hey [09:23:12] yes [09:23:31] devunt: Sorry but here it is https://www.mediawiki.org/wiki/Localisation#Changing_existing_messages [09:24:55] ah, thanks [09:25:23] btw, I decided to not changing key name. [09:31:26] hello. i'm starting subprocess (calling jsub program01 from os.system()) and then terminating the parent program. will this make my program01 kill automatically? [09:36:28] rohit-dua, are you say about tool labs? [09:39:50] devunt: yes [09:40:06] tool labs support channel is #wikimedia-labs, not here. [09:41:15] please ask in there. [09:59:04] !qqx is If you want to find a particular system message being used on a page, you can append the uselang=qqx parameter to the URL. That will replace all system messages used on the page by their message names. See https://www.mediawiki.org/wiki/Qqx_trick [09:59:11] !qqx [10:03:10] There is also [[qqx]] [10:03:56] Vulpix: this was a recentish change https://www.mediawiki.org/w/index.php?title=Manual:Parameters_to_index.php&diff=0&oldid=952743 [10:04:35] (Discarding invalid languages that is) [10:09:24] @link [10:10:43] strange, I was sure it didn't exist when I created qqx_trick [10:11:22] Oh, maybe because the search suggestion didn't returned it [10:12:17] !qqx is If you want to find a particular system message being used on a page, you can append the uselang=qqx parameter to the URL. That will replace all system messages used on the page by their message names. See https://www.mediawiki.org/wiki/Qqx [10:12:26] !remove qqx [10:12:32] !qqx remove [10:12:47] damn, I never remember how to delete :S [10:13:35] !qqx del [10:13:40] !qqx is If you want to find a particular system message being used on a page, you can append the uselang=qqx parameter to the URL. That will replace all system messages used on the page by their message names. See https://www.mediawiki.org/wiki/Qqx [14:33:27] hello, if i change the mainpage name, will the new page be linked to the logo in the left-top corner too? [14:33:54] If you edit the page mediawiki:mainpage [14:36:31] and in the sidebar "** mainpage|mainpage-description" should be changed to "newname|newname-description"? [14:39:23] softplay: just change mediawiki:mainpage, the ** mainpage|mainpage-description is a reference to mediawiki:mainpage [14:57:30] ok [14:57:59] hello, is it possible to retrieve pictures from mediawiki using (latitude/longitude) coordinates? [14:59:18] that's a fun idea. Can't wait to hear the answers. [15:00:47] * Vulpix wonders where are latitude/longitude coordinates stored in pictures [15:01:28] I really don't want to use flickr, but can't find a replacement either [15:03:16] Not really [15:03:58] geosearch on commons might yield some results [15:04:13] why in my subpages doesn't appear the page they are dependent to in a breadcrumb? [15:04:52] or what it is called, that thing that shows the parent pages at the top of the content [15:04:58] breadsomething... [15:06:24] Special:PrefixIndex [15:06:30] Oh [15:06:35] There's that extension [15:07:53] softplay: https://www.mediawiki.org/wiki/Manual:$wgNamespacesWithSubpages [15:11:44] Vulpix: they *can* be stored in the exif data. I'm sure Bawolff would love to surface the information for search... [15:11:59] Reedy: PrefixIndex returns pictures withat a name that starts with PrefixIndex... I'd love to search pictures for a specific geographical location (eg Paris) [15:12:25] zPlus: The answer is still geodata [15:12:26] https://www.mediawiki.org/wiki/Extension:GeoData#list.3Dgeosearch [15:12:43] Filter by file ns [15:12:46] https://commons.wikimedia.org/w/api.php?action=query&list=geosearch&gsradius=10000&gscoord=37.786971|-122.399677 [15:12:50] Useless example is useless [15:14:50] Vulpix: it can be stored in either exif or xmp. I believe geodata will use such coordinates [15:15:34] I guess only photos taken from smartphones would have such data [15:15:55] https://commons.wikimedia.org/w/api.php?action=query&list=geosearch&gsradius=10000&gscoord=39.1187|-94.6003 [15:15:56] Sigh [15:15:58] No [15:16:06] I've had 2 cameras with GPS now ;) [15:16:18] No. My camera will add the data if I remember to add/turn on the gps. [15:16:41] https://commons.wikimedia.org/wiki/File:Lockheed_L-1011_TriStar_N700TS,_National_Airline_History_Museum,_Kansas_2013-03-16_(77).jpg [15:16:46] [15:16:54] (usually adds the wifi server instead) [15:16:59] Latitude 39° 7′ 4.79″ N [15:16:59] Longitude 94° 36′ 0.43″ W [15:16:59] GPS time (atomic clock) 18:06 [15:16:59] Receiver status Measurement in progress [15:16:59] Geodetic survey data used WGS-84 [15:16:59] GPS date 16 March 2013 [15:17:02] GPS tag version 0.0.3.2 [15:17:46] ty Vulpix [15:18:00] yw :) [15:18:53] And that's sold at 180-220 € [15:19:54] I still don't understand if it's possible to retrieve picture using coordinates [15:20:28] ZPlus: yes. Have to specify namespace [15:20:35] Though it doesn't seem to work on commons [15:20:57] It's on elasticsearch now, isn't it? [15:21:01] yup [15:21:05] bawolff: ^^ [15:21:11] Did anyone test it after migration? :) [15:21:16] I really don't want to bother anybody, but I'd really appreciate a working example [15:21:32] It did last year... [15:21:35] That's what we're talking about, zPlus. [15:21:37] Nemo_bis: Russian Sabotage [15:21:52] https://en.wikipedia.org/w/api.php?action=query&list=geosearch&gsradius=10000&gscoord=37.786971%7C-122.399677 [15:21:53] Works on enwiki [15:22:05] https://commons.wikimedia.org/w/api.php?action=query&list=geosearch&gsradius=10000&gscoord=37.786971%7C-122.399677 [15:22:10] Where does it extract the information from? [15:22:30] {{#coordinates:}} ? [15:22:34] I think it extracts it from wikitext. [15:22:47] https://commons.wikimedia.org/w/index.php?title=File:Lockheed_L-1011_TriStar_N700TS,_National_Airline_History_Museum,_Kansas_2013-03-16_%2877%29.jpg&action=edit [15:22:51] {{Location dec|39.1187|-94.6003}} [15:22:52] On Commons there is some confusion with all those templates doing different things [15:23:20] it's manually (or automatically by a bot) added to wikitext [15:23:57] In theory it also looks at exif. Or used to [15:24:09] Can you use it as a generator source on enwiki? [15:24:17] Grab files, pump into files on page [15:24:25] s/Grab files/Grab pages/ [15:28:09] Reedy: although it's finding ns:0 articles on en.WP, it isn't finding files. [15:28:34] Probably lack of correct metadata on page/file [15:29:44] Amgine: Reedy: how do I get pictures URL from that data? [15:30:33] title="Some title" translates to http://domain.com/wiki/Some_title [15:38:55] Amgine: take this for example: https://en.wikipedia.org/w/api.php?action=query&list=geosearch&format=jsonfm&gsradius=10000&gscoord=45.7343472|7.3088547 what would be the url of the first picture? [15:40:19] The url of the first picture (and it isn't a picture) would be https://en.wikipedia.org/wiki/Arch_of_Augustus_(Aosta) [15:40:40] zPlus_: ^ [15:41:29] I'm looking for an example photo on en.WP which actually has the coordinates. [15:41:42] ok so it doesn't return images. How do I query for pictures *only*? Can I retrieve pictures around that coordinate? Or does it return only wiki articles? [15:42:08] That's likely going to be the issue [15:42:22] ie the data isn't in the right place to be useable [15:42:59] That's why I was hinting that Bawolff would love to figure out how to get the data from images available... [15:43:35] MaxSem i believed wrote code for that [15:45:39] It was all MaxSem [15:50:21] (Notes MaxSem's absence allows this besmirching of xyr sterling reputation) [16:02:41] That extension was made to power Special:Nearby on MobileFrontend, basically [16:02:48] The rest is optional [16:12:58] Hi [16:13:39] I have a question about template parameters [16:14:17] Jack__, hi [16:14:23] ?ask | Jack__ [16:14:34] hm. what was the syntax again [16:14:36] ?ask [16:14:38] !ask [16:14:42] is it possible to write a dynamic list of parameters within a template call? [16:15:37] hi, i have a question regarding to this api call: "http://en.m.wikipedia.org/w/api.php?action=parse&page=Fierce%20Comics&format=json&prop=text|links" ... why do i see the link "Foo" from namespace 0 in the links section, but do not see it within the text section? ... is this a bug or do i interpret something wrong? thanks in advance! [16:15:44] ..possibly using the {{#loop}} parser function? [16:19:19] I mean, I know how to use {{#loop}}, but I can't seem to write the pipe symbol to separate the different arguments [16:20:22] {{!}} [16:20:29] gockelhahn, okay, so technically the API just pulls this straight from the DB [16:20:43] as for why it's there, I'm guessing something to do with a template it's transcluding [16:21:08] Nope, {{!}} doesn't work, I still get literal pipe symbols in the result, the whole template call is not expanded [16:23:06] Krenair, mhhh, so it might be intended? ... for me it looks strange and using the API will make this result ambiguous [16:23:20] gockelhahn, I believe db-corp ends up substituting a template called db-a7. [16:23:46] "{{list{{#loop: test | 1 | 5 | {{!}}{{#var:test}} }}}}" gives "{{list|1|2|3|4|5}}" on preview page [16:23:54] gockelhahn, Which uses the template 'category handler' with one of the parameters being 'page = Foo ' [16:25:01] Kenair, i c, can i make an api call without having links displayed from a tempate? [16:26:23] gockelhahn, I don't believe so. It shouldn't be too hard to find useful links from the parsed result you get though [16:27:33] Krenair, sure ... but i only want to find links from namspace 0, so i compare links from the links section with links from the text ... that why i found this issue ... mhhh [16:28:16] still possible [16:28:26] ? [16:29:53] gockelhahn, https://en.wikipedia.org/w/api.php?action=query&meta=siteinfo&siprop=namespaces|namespacealiases [16:30:18] &format=jsonfm [16:30:52] Krenair, will have a look, thanks so far! [16:32:46] can anyone help me? [16:34:33] Krenair, well, ok ... here comes my initial problem ... links from virtual namespaces -1 and -2 do not appear in the links section ... but anyhow, i will find out another way :) [16:39:48] how does this work? [16:44:17] I understand that the pipe symbol (from {{!}} template) is interpreted as string, and not as argument separator. if I add the first separator manually outside the loop, and remove the that first one from the loop, the template is finally expanded but with full result as one argument [16:44:35] http://trends.builtwith.com/cms/MediaWiki [16:46:05] Jack__: what problem are you trying to solve by "dynamic params"? [16:46:44] I want to propagate multiple parameters to an embedded template [16:46:55] without knowing how many are used [16:48:45] enwp does crazy things with templates, maybe they came with a solution for this [16:49:04] what is enwp? [16:49:14] en.wikipedia.org [16:49:33] I have no idea where to look [16:50:11] all examples I have seen are immensly complicated with substitution, subpages, techniques I can't read yet [16:51:10] that fits perfectly with my definition of crazy :P [16:51:42] so, essentially you mean that I should learn all those techniques? [16:52:51] if you know of a template that can do this, yes [16:52:58] I'm a programmer so I understand a lot, even software php source, but I'm still very new to mediawiki [16:53:25] !not [16:53:31] :( [16:53:58] maybe the new Extension:Scribunto can handle this [16:54:00] unfortunately I have no clue as to what page or template uses this technique. basically I'm searching for a "variadic function"-like technique [16:54:15] !e Scribunto [16:55:09] I'm not asking for a way to program in the wiki [16:56:13] maybe there are other ways to solve my issue. shall I explain my scenario? [16:56:32] yes, please [16:58:04] I have an Infobox template, with several levels of embedded templates that reduce complexity. the top-level template should provide a parameter or several, that together make up a list. the embedded template within, should then compile this list [16:58:21] such that the list can be rendered as one of the "headings" within the infobox [16:59:14] more specifically, I don't want the top-level template to require a full template call as one of its arguments, because I need it to automate that call [17:00:26] this is why I need some kind of variadic parameter list [17:00:53] do you understand what I mean? [17:01:50] yes, more or less [17:02:09] I think the "several levels of embedded templates that reduce complexity" is not a good idea [17:02:22] what do you mean? [17:02:56] depending on what do you need to pass to them, it actually increases complexity [17:04:46] I understand, but some aspects needed to be split for reusability or to be able to use them in a flexible way [17:05:54] if the parameters are "static", you only need to call the second template passing the parameters it requires. (like {{template2 | parameter1 = {{{parameter1|}}} | parameter2 = {{{parameter2|}}} ...}}) [17:06:21] yes, that is correct [17:06:56] what I don't get is what kind of "dynamic" parameters do you need [17:07:23] but what my problem comes down to, is the {{list}} template. I need to be able to use this template to form a bulleted list, but with a variable length [17:08:19] of cource I tried hardcoded referencing unnamed parameters up to 30, but that does not affect the still static template call if that call is also transcluded in a parent template [17:08:49] what if you feed the list directly from the parameters? {{template|list = *item1*item2 ... }} [17:09:22] yes, that would solve it, but as I said, I need the list call to be automated, or it won't be of use in this scenario [17:09:53] is it possible, or do I need to solve it in a completely different way? [17:11:05] I mean, every item in the list requires a lot of repetitive code, and it's horrible to write it all out manually [17:11:43] I'm inclined to say it's not possible [17:11:51] I see [17:12:47] so you can't "delay" parsing the pipe symbol for expansion after the loop function finished processing? [17:12:59] another approach would be to use a template for each item, like {{template|list = {{item|item1}} {{item|item2}} ... }} [17:13:36] I don't have experience with the loop function [17:13:38] that's actually what I'm already doing, but even that is still too much of code in this case [17:14:34] every item looks like this: {{categorizer|category=MyCategoryName|label=SomeValue|nocat={{{nocat|false}}}}} [17:18:35] it would be a lot easier for me, if templates allowed self-transclusion on their template page, but that has a lot of issues [17:21:55] ok, thanks for your help Vulpix [17:24:34] Jack__: still, maybe Scribunto can solve your problem [17:24:58] at least it uses a programming language [17:28:09] I don't want to use lua, or any programming language, on mediawiki. as you said, it isn't for programming ;) I will fall back to writing all parameters out manually [17:28:40] it will be of limited use, but at least that is possible [17:30:31] on a different question, could anyone help / explain to me how to implement the template page documentation pattern? [17:33:13] plain templates aren't for programming, but Lua is! [17:33:58] for the template documentation page, it simply uses {{ {{FULLPAGENAME}}/doc }} to transclude the contets of the /doc subpage [17:35:41] all right, that seems simple enough. but that was one of those complex examples on wp. they have a {{documentation}} and {{documentation subpage}}, and more [17:37:36] btw, thanks for helping me. the lua solution would be good if I wanted to use programming, yes, but I'd like to stay away from that in the first place if I can. when working with a wiki, I don't want to go into that kind of abstraction level [17:38:15] if variadic parameters is programming, then it means I shouldn't use it [18:39:49] does Title::getPrefixedText() return the full title or just the part before / [18:47:16] Full title [20:41:44] !blank [20:49:22] hmm [22:07:40] what enables the [hide] and [show] feature in the example of SimpleNavbox? http://minecraft.gamepedia.com/Template:SimpleNavbox [22:10:42] wmat: javascript [22:12:14] jackmcbarn: thx. So why, if I export that Template and import to my own wiki wouldn't the Hide and Show feature show up? [22:12:26] jackmcbarn: I have Javascript working fine on my site [22:12:26] wmat: because the javascript isn't part of the template [22:12:35] wmat: it's probably somewhere in MediaWiki:common.js [22:12:57] jackmcbarn: ah, thanks, I'll look now [22:14:22] Hi! How do I get Extension:FeaturedFeeds to work on de.wiktionary? [22:14:45] wmat: by the way, mediawiki includes a very similar feature [22:15:10] seems it's only enabled for Wikipedia, Commons, Wikiquote, and Wikisource https://www.mediawiki.org/wiki/Extension:FeaturedFeeds/WMF_deployment#Notes_to_site_administrators [22:15:25] wmat: you can trigger it by the "mw-collapsible" class - in the code of that template, replace 'class="navbox hlist collapsible"' with 'class="navbox hlist mw-collapsible"' and it should just work [22:16:03] MatmaRex: I tried that and it didn't work unfortunately [22:16:46] wmat: hm, maybe you're on a very old mediawiki [22:17:19] 1.22.6 [22:17:30] Kronf: which feed specifically are you trying to get set up? [22:17:46] https://de.wiktionary.org/wiki/MediaWiki:Ffeed-featured-page [22:17:47] (it is enabled there) [22:19:42] Kronf: i'm not sure what {{LOCALDOW}} does in english [22:19:47] does it currently equal 1? [22:19:54] yes [22:20:39] taken from https://www.mediawiki.org/wiki/Extension:FeaturedFeeds/WMF_deployment#Our_wiki.27s_current_featured_content_changes_less_than_once_per_day.2C_how_can_we_use_FeaturedFeeds.3F [22:21:04] MatmaRex: actually, i can't test mw-collapsible again due to the fact that whenever I Edit and Save the Template, I get a returned page that says No data received :( [22:21:14] Kronf: try just hardcoding the page for now to see if that makes it work [22:21:39] which page exactly? [22:22:00] MediaWiki:ffeed-featured-page. just take out the parser function and put the page name [22:22:09] ok [22:24:16] "Unrecognized value for parameter 'feed': featured" sounds to me as if the feed names aren't set for wiktionary [22:26:18] Kronf: my best guess is you're stuck because memcached is behind [22:28:01] ok, let's wait a night [22:29:08] i'd probably leave the page name hardcoded until it starts working, then switch it back [22:29:49] ok [22:30:14] thanks [22:30:25] np [22:40:58] Kronf: wait, i was wrong [22:41:05] ...oh. gone [22:43:42] how do the Xml functions work [22:44:53] when I make a call to Xml::listDropDown() it returns Xml::openElement( 'select', $attribs ) . "\n" . $options . "\n" . Xml::closeElement( 'select' ); [22:45:29] yet when I try to insert that directly, the "\n" is rendered as a literal string [22:45:58] Withoutaname: "\n" or '\n'? [22:46:42] backslash escapes are only recognized in double-quoted strings (apart from \\ and \') [22:48:56] yeah you're right [22:48:59] thanks MatmaRex [23:03:53] hey, how do I put a cool editor on my mw like wikipedia has? [23:04:05] like source code [23:04:09] and also the visualeditor [23:08:36] bugzee: get the extensions for them [23:08:46] bugzee: if you want VisualEditor, you need parsoid, which in turn needs node.js [23:08:52] but for codeeditor, just the extensions will do