[00:09:34] bawolff: If you (or anyone else) thinks that looking at the code might help get to the bottom of this and it isn't just some obvious necessary step I'm failing to find in the MediaWiki documentation, here's the extension's source code: https://s3.amazonaws.com/gmcl-downloads/tmp/GMCLTests.tar.gz [00:15:00] Worth noting that the version of MediaWiki we're using is 1.22.1, with Semantic Forms 2.6.1 and Semantic MediaWiki 1.9.1 (I've been bugging the Wiki admin to do upgrades for literally many years now :P) [00:15:31] Hmm I wonder if running an update on Special:SMWAdmin is the way to go? [05:24:26] I want to have a "lists of ____" page that automatically updates as I add more pages worthy of that list. Can I use a category or something for that? [05:24:52] I mean, a straight up category won't add a small description which is something that I'd definitely want to have on that "list of ____" page. [05:25:16] Am I stuck manually redoing the list or is there an automated manner of doing this, perhaps through an extension? [05:34:46] So basically: (Labeled) section transclusion for entire categories. [05:38:16] Any ideas on how to accomplish this? [06:52:54] Xunie`: you can use a category [06:53:08] harmaahylje, really? Tell me more. [06:53:32] if you have certain type of pages, you can use a template on them, to which you add your desired logic for categories [06:53:40] How would section transclude an entire category with each entry's unique description? [06:53:52] if the pages aren't somehow listable, you have to do it manually [06:54:14] Can you link me to the relevant documentation? I have no idea how to loop through a category. [06:55:21] labeled section, what do you mean? [06:55:40] if you have a category, you can look at the category and it shows the pages part of that category [06:58:11] you can add a description to the category page [06:58:25] Yes. But that's a description for the entire category. [06:58:34] yes [06:58:46] I need a unique description for each entry in the category that shows up in the 'list of ___' page. [06:59:05] Perhaps my stackexchange equstion my clear this up: https://superuser.com/questions/1321349/mediawiki-automatic-list-of-with-descriptions [06:59:55] In order for me to make a table and transclude each element's unique description, I'd have to loop through the entire category and extract each entry's unique description. [07:00:09] Okay, so you want to show information about each page in the category, on the category page? [07:00:37] Well, On the category page is fine. But on a separate "List of foo" page would also be fine. [07:01:06] Ideally, I want the information in a table with pictures along side the descriptions for clarity. [07:02:11] Ok, I've not done anything like that, but perhaps you can create a template that loops over the items and shows the info you want [07:02:21] Sure! [07:02:24] How do I loop over the items? [07:02:31] That I do not know [07:02:50] Maybe semanticmediawiki has something for this [07:03:30] Xunie`: https://www.mediawiki.org/wiki/Template:Foreach [07:03:49] maybe something like that could help you [07:05:13] https://www.mediawiki.org/wiki/Extension:Loops [07:05:29] harmaahylje, I'd have to manually fill in the items with Foreach. So it's not automatic or 'nice' to edit. [07:07:21] really? [07:07:45] I was thinking one could just put in a category [07:10:49] harmaahylje, "To repeatedly use a template for each argument in a pipe delimited list." [07:10:59] This is not what I want to do, so Template:Foreach is out. [07:13:06] Xunie`: yeah for sure [07:13:07] https://www.mediawiki.org/wiki/Extension:DynamicPageList3 [07:13:19] your thing can be done with this, I am pretty sure [07:14:31] I was really hoping for a 'vanilla' solution to this because it seems like such a basic thing and I don't like adding dependencies just for one thing, you know? [07:14:54] I know [07:15:04] and you shouldn't if you can avoid it [07:15:32] once the extension is abandoned by the dev, you are kinda on your own [07:16:12] But since such extension exists, perhaps there is no vanilla solution [07:17:07] There's also security to mind. [07:37:49] Xunie`: you can use semantic mediawiki for that although it's a bit heavy handed (meant for doing similar things not just with description but arbitrary properties) [07:39:10] or you can use a bot to maintain the list page, English Wikipedia does that for the {{nutshell}} template for example [07:41:55] I've yet to make a bot for mediawiki, but it actually might be a good idea. Many problems would be so much easier to solve [07:42:03] and would not require yet another extension [12:58:58] bawolff: I created https://www.mediawiki.org/wiki/Manual:SessionManager_and_AuthManager/Adding_fields_to_the_registration_form since that seems to be one of the more frequent questions [12:59:09] awesome :) [13:01:14] woo [13:41:44] hi [14:41:02] Hello with the DPL extension, i should be able to create a list of contributors or user edits to an article/page correct? [18:05:34] reading gerrit docs. Change edit feature sounds scary... [18:45:47] is there any way to use a mediawiki message in javascript, if the message may be complex/depend on other messages? [18:48:26] what's mediawiki message? [18:49:09] {{int:...}}, Mediawiki:... [18:49:38] mw.message( '...' ) [18:50:36] YairRand: I think there's something you can set in extension.json to make it be pre-parsed [18:50:53] bawolff: suppose it's not an extension [18:50:58] and just a userscript [18:52:04] So there is mediawiki.jqueryMsg which allows some complexity (but probably not the depending on other messages) [18:52:27] YairRand: Probably the best bet is to make a call to api.php?action=parse [18:52:46] ergh, that's not going to work so well [18:53:07] it would need a different parse for every message-param combination [18:53:40] I was trying mw.message().parse, but it kept leaving in things like "{{Mediawiki:...}}" [18:53:41] you could see if mediawiki.jqueryMsg is good enough for your usecase i guess [18:54:01] I think mw.message().parse is the same thing as jqueryMsg [18:54:17] it depends, if the module is loaded yes, if the module is not loaded, then no [18:54:30] But I'm pretty sure it doesn't support "{{Mediawiki:...}}" regardless [18:55:05] maybe it might support {{int: if the other message was already downloaded and in whereever mw.messages store them [18:55:49] I'm not sure why some existing messages use "{{Mediawiki:...}}" instead of "{{Int:...}}" [18:56:28] Yes, i just checked and it does support int: [18:56:28] "MediaWiki:Tag-visualeditor/en" has gone back and forth several times between int: and mediawiki: [18:56:42] currently uses {{Mediawiki:}} [18:56:55] I think its the difference between content language vs user language [18:57:10] e.g. {{int: will choose language based on pref, where MediaWiki: will not [18:57:29] ah [18:58:21] also, is there a way to get all of a message's dependencies along with it, or would I need to run some kind of regex over it and then request them all separately? [18:59:07] That's kind of hard. I guess if you did ?action=parse you can look at the template links (except doesn't work for {{int:}}) [18:59:10] so I guess no [18:59:21] hm [18:59:31] unfortunate [18:59:52] oh well. thanks anyway. [19:04:08] I don't suppose there's a phabricator tracker for "make it so that scraping pages isn't the only way to do things so frequently"? [20:50:52] I have some news. The software is backed by wxWidgets and it can separate numpad stuff from not-numpad stuff [20:51:37] As such a key that when held down modifies the other keys makes a lot of sense, eg if "0" (thumb) is down then we interpret the other keys (except numlock) "differently" [20:51:45] Wrong chat #Mechboards - missed by a few pixels