[00:05:27] Under which conditions would you (whoever that is ;)) consider updating the email address of a user who's forgotten their password and provided a no longer valid email address when signing up? [00:06:39] comitted identity or personal knowledge [00:07:56] comitted identity? [00:08:53] https://en.wikipedia.org/wiki/Template:User_committed_identity [00:11:21] ok, I see, thanks. [00:34:43] pajz, did you get a response? IRC connection broke, sorry [00:35:08] Krenair, I did, thanks for asking :). [00:43:25] pajz, what was the response? [00:44:03] comitted identity or personal knowledge [02:41:20] [[Tech]]; 76.208.147.189; /* How to remove a creative Commons license that was attributed to one of my photographs ? */; https://meta.wikimedia.org/w/index.php?diff=15297818&oldid=15296799&rcid=7329177 [09:56:36] hello [14:15:07] [[Tech]]; MarcoAurelio; /* How to remove a creative Commons license that was attributed to one of my photographs ? */ re; https://meta.wikimedia.org/w/index.php?diff=15298877&oldid=15297818&rcid=7330411 [16:26:51] Do anyone know what the extenstion is called for the English Wikipedia:Pending changes? [16:29:35] Simeondahl: FlaggedRevs (https://www.mediawiki.org/wiki/Help:Extension:FlaggedRevs) [16:29:43] ori: Thanks :) [16:35:11] MatmaRex: Has the page stabilized yet, or still deletions? [16:36:25] Josve05a: hmm, it mostly did, it seems [16:36:38] 7me will start tagging more then :p [16:36:41] * Josve05a * [16:51:34] I have a question. When I do http://ddowiki.com/index.php?oldid=281976 I get an error in the console that "TypeError: mw.Api is not a constructor"" - which I'm guessing is because mediawiki library isn't loaded yet because it works when I copy/paste the source into an already loaded page. [16:51:42] When I do http://ddowiki.com/index.php?oldid=281978 I get an error in the console that "TypeError: $ is not a function" - I'm not sure why or how to fix this. [16:54:17] is that a pure copy-paste from enwiki DDOwiki_admin? [16:55:49] Cookies52: copy and paste of what on enwp? [16:57:48] I got it from https://www.mediawiki.org/wiki/Manual:Coding_conventions/JavaScript -- I may have a ) out of place. Let me see. [16:58:38] DDOwiki_admin, I can't see the script on that page, that's why I asked... [16:59:00] http://ddowiki.com/page/MediaWiki:Gadget-emailLinks.js [17:00:07] https://www.mediawiki.org/wiki/Manual:Coding_conventions/JavaScript#Structure is where I got the ( function ( $, mw ) { ... }( mediaWiki, jQuery ) ); part [17:04:41] DDOwiki_admin: You are passing the arguments to the iife in the wrong order. [17:05:06] function ( $, mw ) and then at the bottom ( mediaWiki, jQuery ) ); [17:09:18] Glaisher: that get's me back to "TypeError: mw.Api is not a constructor" [17:10:10] I'm using MW1.23.11 for the record. [17:10:53] DDOwiki_admin: Have you fixed the order? [17:10:59] Yes. [17:11:10] cache cleared? [17:11:13] Yes [17:11:50] Did a null edit, action=purge, and [ctrl]-[shift]-[r] in firefox on all associated pages. [17:12:20] I still don't see it fixed on that page you linked though. [17:12:57] http://ddowiki.com/page/MediaWiki:Gadget-emailLinks.js ? [17:13:10] Yes. [17:13:29] ( function ( $, mw ) { ... }( jQuery, mediaWiki ) );// is what it shows me. [17:13:58] http://ddowiki.com/index.php?title=MediaWiki:Gadget-emailLinks.js&diff=prev&oldid=281980 [17:13:58] weird... I still see it in the wrong order [17:14:29] that link show it? [17:14:56] DDOwiki_admin, just realised who you are :0 [17:14:57] The diff is fixed [17:15:02] but the other page is still not [17:15:14] caching for anons, I guess? [17:15:20] possible I guess? [17:15:32] Yes. [17:15:34] Cookies52: [17:15:36] purging also doesn't fix it.. [17:16:20] DDOwiki_admin: Can you check the actual source code loaded in the browser? [17:16:48] Clearing cache on my side doesn't update the page for me at all.. [17:17:13] When I click on the error in the console it brings up the current source. [17:17:15] ( function ( $, mw ) { $( '.emailLink' ).each( function( i ) { var checkEmailableUser = $( this ).attr( 'class' ).replace( 'emailLink ', '' ).replace( 'email', ''); ( new mw.Api() ).get( { action: 'query', list: 'users', usprop: 'emailable', ususers: checkEmailableUser } ).done( function( usResponse ) { var isEmailable = ( usResponse.query.users[ 0 ].emailable !== undefined ? [17:17:45] $( '.email' + checkEmailableUser ).show(); } } ); } ); }( jQuery, mediaWiki ) ); //[[Category:Gadgets]] [17:18:02] That looks okay.. [17:19:31] Hmm, is the mw.Api dependency loaded? [17:19:54] It works for many other scripts. [17:20:00] So, I'm assuming yes. [17:20:24] http://ddowiki.com/page/MediaWiki:Gadget-spamBlock.js has no issue with it for example. [17:20:32] NO, I'm asking whether it is explicitly loaded.. (At that point, it probably should've been already though) [17:21:46] You mean on http://ddowiki.com/page/MediaWiki:Gadgets-definition ? [17:22:19] I can add [ResourceLoader|dependencies=mediawiki.Api] there. [17:22:30] yeah.. can you try that [17:22:51] making it * emailLinks[default|ResourceLoader|dependencies=mediawiki.Api|rights=sendemail]|emailLinks.js [17:23:25] Looks like the module name is mediawiki.api not uppercase [17:23:46] "Error: Unknown dependency: mediawiki.Api" -- Yep, will fix [17:26:33] I changed it, but seem to be unable to force clear the cache of the capitalized version... Will be back in a bit, doesn't usually take too long to do it by iteself. [17:37:19] Not sure, as no one is alive in #mediawiki, can I ask a general question in here? [17:40:18] i'm alive! [17:40:59] Glaisher: http://ddowiki.com/api.php?action=purge&forcelinkupdate&titles=MediaWiki:Gadgets-definition forced the purge for me, and that worked. Thank you. :) [17:41:21] !ask Cookies52 [17:41:49] so I'm having issues with my local MediaWiki install [17:42:03] I have cookies enabled, but I consistantly get the no cookies error message [17:42:15] "Wiki uses cookies to log in users. You have cookies disabled. Please enable them and try again." [17:42:33] {{#if:{{{fonto}}}|Parto aŭ ĉiu enhavo de tiu paĝo reprenas tiun [{{{fonto}}} originan verkon]}} [17:43:03] Any idea why it render as "Parto aŭ ĉiu enhavo de tiu paĝo reprenas tiun [{{{fonto}}} originan verkon]" ? [17:43:46] (rather than "Parto aŭ ĉiu enhavo de tiu paĝo reprenas tiun originan verkon" with the link being intrepreted [17:43:55] https://beta.wikiversity.org/wiki/Template:Vikiigado [17:44:06] for the full template code [17:44:09] psychoslave, use {{{fonto|}}} for a start [17:44:10] psychoslave: if the "fonto" parameter was not given, {{{fonto}}} expands to literally that, "{{{fonto}}}" [17:44:17] and {{{fonto}}} is not a valid link target [17:44:53] if you want to hide the text if the parameter was not given, use "{{{fonto|}}}" like Cookies52 said [17:45:16] well, that's why it's embeded in a {{#if:{{{fonto}}}|…}} statement, did I missused it? [17:45:29] psychoslave: yeah. you need {{{fonto|}}} with the | at the end [17:45:57] in general, {{{fonto|asdf}}} will expand to "asdf" if the parameter is not given. so {{{fonto|}}} expands to nothing. :) [17:46:35] Cookies52: IIRC, that is the default message which is then changed by some .js later once things fall into place. If you have some broken .js, it would stop processing preventing that chunk of code that changes that to a correct message. [17:46:48] DDOwiki_admin, this is a clean install, no js whatsoever [17:46:52] I do understand that, but do you mean I should use {{#if:{{{fonto|}}}|…}}? [17:47:14] I want to diplay no text at all if fonto is empty. [17:47:17] No Cookies52 .js, but there is still some basic default .js for those things IIRC. [17:47:36] right... [17:48:41] Disclaimer: It's been a long time since I looked, so I may be misremembering. [17:50:28] I tried with {{{font|}}} in the if-condition-statement, but it result with the same rendering, as far as I can see [17:52:43] psychoslave: why do you want it hidden? [17:53:12] by the way, I sent a message to the ml through ntpd, but it looks like it never arrived. I did confirmed my email. Is there such long latency when you pass through newsgroups ? [17:53:36] should probably be if you don't want it displayed. [17:56:34] psychoslave: In response to "I tried with {{{font|}}} in the if-condition-statement, but it result with the same rendering, as far as I can see" try {{#ifeq:{{{fonto|}}}|||…}} instead. [17:57:06] Because the idea is to manage wikifiaction progress of a page. If the state is not "vikiigita" (wikified), then it display a banner askink for help. Otherwise, if the work come from some sources, the link to the original URL should be added in the references for credits. But I don't want it to display a "¹" alone at the top of the page. [17:57:32] Which changes it from "IF fonto exists THEN display it" to "IF fonto exists and is not empty THEN display it". Which I think will help. [17:58:12] ok, let me try [17:59:27] well, it steal doesn't render the link [17:59:45] How are you calling it? [18:00:14] with a fonto parameter [18:00:15] Where is your test case? [18:00:25] right into the template page [18:00:31] at the bottom [18:03:18] https://beta.wikiversity.org/wiki/Template:Vikiigado/testcases [18:03:43] Yeah, "on the template page" doesn't usually work very well... [18:06:15] Okay, so you had two if:{{{fonto}}} clauses in there and only updated one. Does it look like what you were expecting now? [18:06:19] psychoslave: ^^^ [18:06:35] https://beta.wikiversity.org/wiki/Template:Vikiigado and https://beta.wikiversity.org/wiki/Template:Vikiigado/testcases [18:11:56] [[Tech]]; Ruslik0; /* How to remove a creative Commons license that was attributed to one of my photographs ? */; https://meta.wikimedia.org/w/index.php?diff=15299549&oldid=15298877&rcid=7331365 [18:12:18] DDOwiki_admin: well, the rendering problem is steal there [18:12:37] which isn't really a suprise, as the condition is not the problem [18:12:57] Then you'll need to be more specific about what the rendering problem is psychoslave [18:13:57] the problem is that it enter within the if statement, as font have a value, but arriving at the step where it should be provided to the parser as a URL, it provide the wikitext [18:14:00] [[Tech]]; Ruslik0; /* How to remove a creative Commons license that was attributed to one of my photographs ? */; https://meta.wikimedia.org/w/index.php?diff=15299582&oldid=15299549&rcid=7331400 [18:14:00] Anyway, time for me to go. Good luck and everyone have a great day! [18:14:17] I updated the testcases page [18:14:40] Perhaps one of the other template savy people here can give you a hand. [18:24:57] is there a magic word to force the rendering of a parameter? [18:29:54] what's really odd, is that it perfectly works for the link which is not in the ref. I guess it's related to the evaluation pipeline. [18:30:01] psychoslave: i am confused what you're trying to do [18:30:06] {{#ifeq:{{{fonto|}}}||| [18:30:13] i think that's one | too many [18:30:20] but i'm completely lost now [18:31:05] well, actually, {{#ifeq:{{{fonto}}}||text}}} is what I want to do [18:32:17] huh? wasn't it {{#ifeq:{{{1|}}}|{{{2|}}}|if equal|if unequal}} ? too lazy to take a look [18:32:29] I mean {{#if:{{{fonto}}}||text}}} [18:32:56] argh ! [18:33:00] is always true [18:33:05] {{#if:{{{fonto}}}|text}}} [18:33:09] {{#if:{{{fonto|}}}||text}}} at the least [18:33:12] okay, [18:33:32] 20:33:06 - psychoslave: {{#if:{{{fonto}}}|text}}} [18:33:32] {{#if:{{{fonto|}}}|text}}} [18:33:32] then [18:34:04] since in case of empty fonto your variant will substitute "{{{fonto}}}" [18:34:10] That's better, but that won't handle my problem. [18:34:22] what exactly do you want to do? [18:34:34] sorry I wasn't following what was said above [18:35:16] just quote the comment where you explain it, please [18:36:00] Display wikifiaction progress of a page. If the state is not "vikiigita" (wikified), then it display a banner asking for help. Otherwise, if the work come from some sources, the link to the original URL should be added in the references for credits. But I don't want it to display a "¹" alone at the top of the page. [18:37:09] So there's no problem when there is a source a [18:37:29] and that the state is not "vikiigita" [18:38:42] but then, when both condition are met, the text returned is in substance [{{{fonto}}} text] [18:39:12] which is rendered as this, whitout parameter substitution [18:39:20] what is your current code? [18:39:29] https://beta.wikiversity.org/wiki/Template:Vikiigado [18:40:48] https://beta.wikiversity.org/wiki/Template:Vikiigado/kaztestoj [18:45:39] hmm it definitely works without refs [18:45:49] so the problem is with refs [18:46:04] perhaps they do not support full wikimarkup [18:56:39] come to think of it I do not think I remember any templates adding refs. Only but that sfn thing perhaps [18:59:01] sfn? [19:03:47] @link [[en:Template:Sfn]], it now works on lua but it's from pre-Scribunto times [19:03:47] http://enwp.org/Template:Sfn [19:05:19] [[Tech]]; Nabil ben salah; .; https://meta.wikimedia.org/w/index.php?diff=15299857&oldid=15299582&rcid=7331718 [19:05:56] [[Tech]]; Matiia; Undo revision 15299857 by [[Special:Contributions/Nabil ben salah|Nabil ben salah]] ([[User talk:Nabil ben salah|talk]]); https://meta.wikimedia.org/w/index.php?diff=15299861&oldid=15299857&rcid=7331724 [19:56:12] Well, I tried with the module path, but so far I fall into the inverse trap : markup is no longer interpreted [19:56:24] see https://beta.wikiversity.org/wiki/Template:Referenco and https://beta.wikiversity.org/wiki/Module:Vikisintakso [21:09:30] Well, I finally found the solution in the Cite extension documentation : https://www.mediawiki.org/wiki/Extension:Cite#Substitution_and_embedded_parser_functions