[00:02:52] I still need help with HTMLForm... Is there a way to dynamically set a form section name ? [00:23:08] ... given that the section name should be a wfMessage, is it possible to dynamically set these messages ? [00:26:32] From where? When? [00:26:43] Based on what? [00:29:46] Hi, I tried to edit the sidebar of my wiki, but it hasn't changed anything [00:29:49] Reedy : im generating dynamically sections in a HTMLForm part of a Specialpage [00:30:23] So what's the problem? [00:31:13] the field argument "section" takes the value of a Message defined in JSON or Mediawiki NS [00:35:09] for instance if i define the section with "onetwothree" the title of it will be the output of wfMessage('formname-onetwothree') [00:35:56] the section is generated with an API query so i can't define message for it. [00:35:57] And why can't you just define messages for them all? [00:36:10] doesn't sound very localisation friendly [00:37:05] the sections should take the names of some categories [00:46:58] it is not possible to define dynamically some new message values? [00:49:51] giby : did you look here : https://www.mediawiki.org/wiki/Manual:Interface/Sidebar/fr#Changes_not_showing_up [00:50:16] Thanks [00:56:42] louperivois, I purged… nothing has changed [01:03:54] did you also edit LocalSettings.php [07:29:58] . [08:44:02] I added "$wgUseDatabaseMessages = true;" in my local setting.php and purged… my sidebar is still unchange [08:50:40] How can I get the global setting interface ? [11:06:25] Hi… How to add a function "Share on Facebook / Twitter" at the bottom of each wiki-page? [11:07:54] giby, https://meta.wikimedia.org/wiki/Social_media_plugins [11:08:06] Thanks :) [11:55:29] How do I manage user's rights? [12:00:21] Special:Userrights [12:11:35] giby: https://www.mediawiki.org/wiki/Manual:User_rights [12:12:08] Thanks Reedy and eddiegp [14:46:27] can i dynamically set a mw message? [15:00:47] louperivois, what does that mean? [15:01:28] andre__ I want to define with PHP the value of a language message what can be retrieved by wfMessage() [15:03:39] andre__ : it is because i'm dynamically creating a HTMLForm but its sections can only be messages and not dynamic value. [15:04:02] * andre__ is out [15:17:53] I cannot see where to upload a picture [15:18:19] giby : normally in Special:Upload [15:18:36] this page is linked in the sidebar [15:18:59] if the user don't have the privileges to upload, it will not appear [15:19:13] thanks louperivois … It tells me it is deactivated… how to activate [15:20:01] some info here https://www.mediawiki.org/wiki/Manual:Configuring_file_uploads [15:20:36] funny i come here to get help and i finish helping [15:21:40] louperivois, It is the hard life of IRC ;) [15:21:48] Thanks ;) [15:22:30] did you solve your problem with sidebar [15:30:33] louperivois, No, that is not working [15:40:04] to everyone, is it possible to dynamically set a language message to be retrieved by mfMessage() [15:40:55] louperivois: do you mean wfMessage() ? or is there an extension-specific function called mfMessage [15:41:12] Skizzerz : my mistake [15:41:28] just making sure [15:41:42] do you mind sharing your use-case a bit more? I believe there's something like that, but want to know what you're trying to do [15:42:59] ok. In fact i generate a HTMLForm dynamically. The names of the sections are also dynamically generated so they can't be defined in i18n before [15:43:53] the ideal solution would be to have an argument "sectionText" instead of "section" but it doesn't seem to exist [15:49:40] hmm [15:49:57] so i thought it could be appropriate to define the message dynaically just before giving its identifier to the form. [15:50:11] I'm not super familiar with HTMLForm (haven't touched that side of things in ages) [15:50:41] that is one approach, another is to use wfMessageFallback() to fall back to a regular message if the first doesn't exist [15:51:25] (so an admin could customize the key for that specific form via the MediaWiki: namespace if desired, or it could fall back to something that works for all sections) [15:51:34] I don't know if that works for your use case or not [15:53:12] i don'T think so because the form is generating all fields and sections in the same time [15:53:58] HTMLForm is taking as an argument the array of all fields. The title of the section is generated from an element "section" for each field. [16:01:46] louperivois: I'm looking at hooks and there's a bunch related to messages. MessagesPreLoad may be your best bet, as it get passed a message key and lets you arbitrarily define the message text. [16:02:24] I'm not totally sure of how the message cache flow works, but I think if an admin defines a MediaWiki: namespace page with the same key, that page will override whatever you set via that hook [16:04:45] ill have a look on that [16:05:10] someone else may have a better idea [16:05:24] it is possible and worth to define the hook just for that precise special page ? [16:23:45] Skizzerz : thank you it will work [17:24:57] Hi, I've got issues for editing the sidebar: http://www.histoire-valenciennes-cahv.fr/mediawiki-1.28.0/index.php?title=Cercle_Arch%C3%A9ologique_et_Historique_de_Valenciennes I would like to remove all the sections "AFFICHAGES" "NAVIGATION" and "OUTILS" for most users, especially non connected [18:33:18] in a gallery, is it possible to have MW directly link to the file and not the file page? [18:40:09] I think |link= syntax works inside galleries [19:50:09] the {{NUMBEROFWIKIS}} part of CentralAuth doesn't update anymore after I deleted some wikis and then created new ones [19:55:25] null save fixed it [20:02:14] Hello. How could I get LoginSignupSpecialPage.php page to include a createacct-benefit-head4 ? [20:02:27] without actually locally editing the .php file only i18n [20:03:00] or somehow overriding it in LocalSettings.php [20:41:46] Hi, I've got issues for editing the sidebar: http://www.histoire-valenciennes-cahv.fr/mediawiki-1.28.0/index.php?title=Cercle_Arch%C3%A9ologique_et_Historique_de_Valenciennes I would like to remove all the sections "AFFICHAGES" for most users, especially non connected [20:51:57] giby: it's not the actual sidebar [20:53:03] you can add #p-cactions { display: none } to Mediawiki:bouquet.css in order to hide [20:53:37] Ok, I'll try [20:58:23] Platonides, http://www.histoire-valenciennes-cahv.fr/mediawiki-1.28.0/index.php?title=MediaWiki:Bouquet.css said there isn't such a page [20:59:15] create it [20:59:30] your skin (Bouquet) should include the css in such page [21:37:23] anomie: around? [21:37:46] SMalyshev: Not really. I should've finished up 37 minutes ago. [21:38:29] anomie: oh, I wanted to talk to you about https://gerrit.wikimedia.org/r/#/c/302368/ and wider recentchanges story as related to T161342 but we can do it when you have time [21:38:29] T161342: Some data not uploaded to WDQS ? - https://phabricator.wikimedia.org/T161342 [23:49:18] Héllo, I have an issue with the page that is not rendered the same via the /api/ and via /wiki/ [23:49:23] https://en.wiktionary.org/api/rest_v1/page/html/Wiktionary:All_Wikisaurus_pages [23:49:26] wdyt? [23:52:26] the api is treating {{Special:Prefixindex/Wikisaurus:a}} [23:52:35] as [[Special:Prefixindex/Wikisaurus:a]] [23:53:00] maybe it's failing for all special page transclusions, too [23:59:50] There is quick fix, for me right which is fetching the page directly front the wiktionary