[00:52:58] @Kozd by the way, have you used Cargo queries with Lua? [00:54:07] I want to see if it's possible to query directly to a (html) table with my classes instead of that ugly cargo table [00:56:27] no, i haven't used it. i have used template querying. [00:56:28] not used the predefined tables since there is no customization. [00:58:34] oh I see. I also use template formatting sometimes, but it's a bit "excessive"(?) to create a template every single time you need a table with just a different cell [00:59:31] i dont see how creating a single lua module with different formatting options is better than a single template with different formatting options [01:00:17] well, my intention was to create a flexible module if possible, so I could query and specify that a specific call should have X, Y and Z columns, :P [01:00:26] if that's possible, of course [01:01:00] literally what i did, my first query column specifies the "data type" and i style it how i want in the template. [01:01:33] it is not the best option for styling, but works for me [01:02:12] hmm, could you link this here for me? I will take a look [01:05:50] i use index parameters, on the query i hardcode a list of values, the template takes the first column as the formating quide for every column afterwards. [01:29:47] @Kozd also, just one more thing: when using a template format on a query, is it possible to give a value to a parameter that will not be used by the query? [01:33:51] ?? you control the formatting and the output in the template, you could create a fake column if you wanted. [01:35:31] I mean, if I have a parameter that will not be filled by the query, so I could do something like |parameter = value (probably badly explained) [01:37:34] so you want to calculate a parameter and display it inside query based on the query values? [01:38:22] yeah, if possible, of course [01:42:06] inside your formatting fake column you could specify a specific format that indicates you want that parameter, then inside the template when you reach that index you could search your formatting lists for the data you want to calculate it and you then display it. [01:42:33] you will have to decouple formatting index and data/query index for arrays though [01:42:56] since before you could just reuse it and increment it afterwards [16:39:00] Hi, can i exclude some articles from the Special:Random with default settings on Miraheze or do i need something like: https://www.mediawiki.org/wiki/Extension:ExcludeRandom ? [16:39:00] [ Extension:ExcludeRandom - MediaWiki ] - www.mediawiki.org [16:40:25] maybe @Doug or @Reception123 about the question can i exclude some articles from the Special:Random with default settings on Miraheze or do i need something like: Extension:ExcludeRandom? [16:40:58] I don't think you can and that extension is unmaintained [16:43:51] Hi RhinosF1 [16:44:14] So, is there a way to exclude articles from Special:Random? [16:44:31] You can exclude subpages using Special:RandomRootpage, BTW. [16:45:06] But that is a different Randompage? not the default one [16:46:08] Special:RandomRootpage goes to mediawiki.org/wiki/Extension:RatePage [16:47:15] i don't know where is the page for that [16:48:12] @R4356th this one? https://www.mediawiki.org/wiki/Extension:Randomrootpage [16:48:13] [ Extension:Randomrootpage - MediaWiki ] - www.mediawiki.org [16:52:47] No, that extension was merged into MediaWiki core a few years ago. [16:52:52] It is built-in now. [16:53:11] So is available as default? [16:53:17] Yes. [16:53:29] But it only excludes subpages. [16:53:55] So instead of clicking the button Special:Random, why not put "Randomrootpage" as the standard button for random page? [16:54:06] So not exactly what you were looking for. [16:54:31] I was looking to exclude rootpages that are of certain categories [16:55:40] That is not possible. [16:55:49] At least not from any core feature.