[02:17:01] Hi! [02:18:48] Anyone knows how to get ajax request with url of website? [02:45:16] What are the technical restrictions on parameter names? [02:45:22] (for templates) [03:56:23] enterprisey: can't contain = or | for sure [03:56:55] idk if they can contain { or }, but I'd avoid those (and any other wikimarkup) in param names as well [03:58:03] if you mean max length for the name, I'm not sure about that [03:58:13] but if there is a max, it's probably pretty big [09:49:54] Hello and the big Thank You Thank You for the awesomest wiki software [09:51:16] So situation in one of my wikis is that bots are registering a lot of accounts because they apparently got the XEvil that passes the NoCAPTCHA [09:51:22] and question is [09:51:35] Can I make account creation moderated? [10:17:03] jubo2: https://www.mediawiki.org/wiki/Manual:Preventing_access#Restrict_account_creation [10:27:25] legoktm: thanks [10:53:19] is there a way to put https://www.mediawiki.org/wiki/Extension:QRLite on the sidebar? [11:30:24] HeXiLeD: hack some CSS? [11:31:39] yah, thats what i see needs to be done. :| [11:39:08] Could someone please tell me if I am able to enable centralauth manually without CLI access? I have cron jobs available but the server kills them if they run for more than 5 seconds. I also have direct DB access if that helps and all relevant rights have been granted to my wiki users [11:39:20] Relevant rights as in on the DB [11:41:35] have you considered using shared user tables compared to centralauth? [11:42:16] I have but I would like to test a multiwiki setup that requires the features of centralauth [11:42:19] Thanks anyway [15:01:16] Technical Advice IRC meeting starting in 60 minutes in channel #wikimedia-tech, hosts: @addshore & @CFisch_WMDE - all questions welcome, more infos: https://www.mediawiki.org/wiki/Technical_Advice_IRC_Meeting [15:52:12] hello, can someone help me with a recursive error in eswiki ? [15:53:17] leoncastro: We do not know yet. :) More info needed. [15:53:55] ok, let me explain [15:54:14] in eswiki i build a template as a header of disambiguation pages [15:54:18] https://es.wikipedia.org/wiki/Plantilla:Desambiguaci%C3%B3n [15:54:45] andre__: for recursion see recursion [15:54:52] but now, every page is in a hidden category of recursive errors [15:55:00] Reedy: OOM [15:55:22] leoncastro: where to see that? [15:55:33] sample https://es.wikipedia.org/wiki/Atl%C3%A1ntida_(desambiguaci%C3%B3n) [15:55:51] has a hidden category named Wikipedia:Páginas con bucles de plantillas [15:56:10] like Wikipedia: Pages with template loop (?) [15:56:23] Templates used on this page: [15:56:27] Plantilla:Desambiguación (view source) (protected) [15:56:50] one of the templates it uses calls Plantilla:Desambiguación [15:57:10] https://es.wikipedia.org/w/index.php?title=Especial%3ALoQueEnlazaAqu%C3%AD&target=Plantilla%3ADesambiguaci%C3%B3n&namespace=10 [15:57:22] MW seems to think it transcludes itself [15:57:22] the page itself uses the template [15:57:37] i dont know how to solve this [15:58:28] and now, every disambig-page is in the Category pages with template loops like an error [15:58:47] I'm guessing it's related to the invoke string and the FULLPAGENAME [16:00:41] i used the invoke string to load the source code to read how many sections contains, to decide to show or hide the toc [16:00:58] Technical Advice IRC meeting NOW in channel #wikimedia-tech, hosts: @addshore & @CFisch_WMDE - all questions welcome, more infos: https://www.mediawiki.org/wiki/Technical_Advice_IRC_Meeting [16:01:29] maybe there is a better way to do the same [16:01:38] If you remove it, does the error go away? [16:01:48] yes, it does [16:02:39] {{:{{{1|{{FULLPAGENAME}}}}}}} [16:02:44] whoa [16:02:49] seems like the error is in the «{{:» part [16:02:51] Presumably the parser is doing a transclusion somewhere in there [16:03:29] i think that might be one of the best abuses of the parser i've seen yet [16:03:37] lol [16:03:39] Reedy: it totally does. that transcludes the current page into itself [16:03:50] gj [16:04:02] and the runs regexes or whatever over it [16:04:20] i think it only loads the source code [16:04:51] it never displays it, but it probably parses the entire thing [16:05:08] i mean, it parses the nested templates [16:05:31] it doesn't parse the resulting wikitext into HTML, since that is never shown [16:05:42] but it expands templates [16:05:51] so that's the template loop [16:05:55] any way to load the code without parsing it ? or better... any way to know the number of sections in a page ? [16:06:17] the only way to know the number of sections is to parse the page [16:06:36] (additional sections may come from nested templates and the like) [16:07:15] you can do a hacky workaround probably [16:07:54] i don't think it's possible [16:08:08] {{#if:{{{recursion|}}}||{{:{{{1|{{FULLPAGENAME}}}}}|recursion=1}}}} [16:08:12] iirc if doesn't parse both branches [16:08:40] haven't tested though [16:08:52] there is msgnw: to display the wikitext of another page without parsing it: https://meta.wikimedia.org/wiki/Help:Template#msgnw but i think the Lua module will not be able to see it, only a strip marker (like with ) [16:10:12] ofc if the error is due to it transcluding itself just once, that'll still cause the error [16:11:22] what is "{{{recursion|}}}" for ? [16:13:56] leoncastro: it's a sentinel parameter telling the page to only transclude itself once. After that first time, it will see that the param is set and therefore return blank instead of recursing [16:14:40] the name "recursion" is unimportant, you can call it whatever you like. I recommend something that is unlikely to come up in normal template contexts [16:14:50] if it even works [16:14:59] oh, ok understand [16:15:07] let me try this solution [16:28:08] hmmm, seems like there is not the solution [16:28:40] i do the change https://es.wikipedia.org/w/index.php?title=Plantilla:Desambiguaci%C3%B3n&diff=104655550&oldid=104655491 [16:28:52] but seems like the error is still here [16:28:54] I would've recommended testing in a sandbox first :) [16:29:14] lol, yes [16:31:37] anyway, unless there's some lua trickery you can do (seems unlikely), you're probably looking at one of three solutions: 1) give up, 2) use a Gadget to hide it via javascript, 3) write a PHP extension and go through the process of getting it installed (requires widespread community consensus and a security review by the wikimedia ops team) [16:31:59] they're listed in the order of easiest to hardest [16:32:13] there is already a php extension [16:32:49] in eswiki claims to activate it in phabricator, but was denied [16:33:27] link to the task? [16:34:07] Hi All. My mediawiki does not consider articles. [16:34:13] Skizzerz: probably https://phabricator.wikimedia.org/T173519 [16:34:15] *searching* [16:34:20] leoncastro: ^ [16:34:31] Spiker01: What do you mean? [16:34:55] yeah MatmaRex, it is [16:35:51] the TOC only shows if there are 3+ sections, why not just move it to the right in all cases? [16:36:10] can do that with some CSS [16:36:15] I think [16:36:44] we move it to the right in all cases, but we only want to show it if there are 3+ sections [16:38:35] A counter of articles is built into MediaWiki (Example: There are a number of articles in this Wiki). There is even a special page. So I have Vicki articles, but wrong. Articles are more than shown on the counter. I hope correctly explained, I do not know English very well. [16:40:37] Spiker01: mediawiki by default defines an article as being in a content namespace and having at least 1 link to another page [16:40:55] Sometimes it (MediaWiki) considers articles added to the main namespace, sometimes not. [16:42:07] you can change what namespaces count as article namespaces via $wgContentNamespaces (by default only the main namespace is in there) and how articles are determined via $wgArticleCountMethod [16:42:39] !wg ArticleCountMethod | Spiker01 [16:42:39] Spiker01: https://www.mediawiki.org/wiki/Manual:%24wgArticleCountMethod [16:42:45] mediawiki does not consider "dead-end" pages? [16:42:56] by default, no [16:43:21] see the above link to change that [16:43:33] you'll need to run the maintenance script mentioned to force a re-count after changing it as well [16:44:16] Thank you, great. I have been trying for several days to decide what's wrong. Searched on the Internet, but did not find any information on this. [16:45:31] crone? [16:45:48] no, just manually [16:46:32] MatmaRex, the extension HeaderCount was updated in october, maybe can reactivate the phabricator task ? [16:47:07] i dont know if it solves their problems [16:47:52] imo a better solution would be a new magic word like __TOC__ that only shows the toc if it would normally be shown [16:48:56] or just only add the template to move the toc to the right on pages that already have 3+ headings [16:49:26] Skizzerz, can you make that ? i like the __DISAMBIGTOC__ option [16:50:21] can I? yes. Will I? Probably not; have enough other things on my plate to take on more volunteer work [16:51:07] Thank you. I understood. [16:51:55] well, i dont know how to do it, but i understand your pov [16:54:01] leoncastro: I see https://phabricator.wikimedia.org/T48421 was filed to already request such a feature. You may wish to add your support on it [16:55:56] Skizzerz, thanks [16:56:16] maybe this will be the better sollution [16:57:05] that also links to https://phabricator.wikimedia.org/T19587 which wishes to provide a more flexible solution [19:06:50] Is there anyway to modify the sidebar on our wiki page? [19:07:06] edit the page [[MediaWiki:Sidebar]] [19:07:13] !sidebar [19:07:13] To edit the navigation menu on the left, edit page [[MediaWiki:Sidebar]] on your wiki using its special syntax (see https://www.mediawiki.org/wiki/Manual:Interface/Sidebar for details). If you need more control, you can use the SkinBuildSidebar hook (https://www.mediawiki.org/wiki/Manual:Hooks/SkinBuildSidebar). [19:07:23] see the first link there [19:07:29] for more details on how to format that page [19:07:37] rickya: ^ [19:07:52] Thank you very much! [19:50:11] I have a table, with class="wikitable sortable" and it works great, but, is there a way to define a column for a default sort? In other words, when it comes up, I alway want it sorted by a particular column, then user is free to click other columns as desired [19:52:39] https://www.mediawiki.org/wiki/Help:Sorting [19:53:40] https://meta.wikimedia.org/wiki/Help:Sorting is even longer. Sigh. [19:54:02] but https://en.wikipedia.org/wiki/Help%3aSorting#Initial_sort_order_of_rows seems to answer it actually. [19:54:15] I love having 900 websites duplicating content partially. [19:55:50] hi there. Looking for advices against spam. We got 405 spam edits today, and 120 yesterday. [19:57:45] !spam [19:57:45] For information about combating and handling spam in MediaWiki, see . [20:01:30] thanks andre__ [20:02:26] It is not possible to make a table appear sorted by a certain column without the user clicking on it. By default, the rows of a table always appear in the same order as in the wikitext. If you want a table to appear sorted by a certain column, you must sort the wikitext itself in that order; [20:02:29] bummer