[02:42:56] i need help with setting up my wiki page any on that can help? [03:10:51] sure, what do you need help with? [03:10:54] !ask [03:10:54] Please feel free to ask your question: if anybody who knows the answer is around, they will surely reply. Don't ask for help or for attention before actually asking your question, that's just a waste of time – both yours and everybody else's. :) [03:26:36] I need to the output of a Lua script to return text which contains parser_functions, but they aren't being evaluated. Presumably that occurs too early. Is there a way around this? [03:27:06] there's some lua function which will evaluate them, i think [03:28:18] yup, stumbling over frame:callParserFunction now [03:28:46] thx [03:30:00] cariaso: https://www.mediawiki.org/wiki/Extension:Scribunto/Lua_reference_manual#frame:preprocess [03:30:01] (also https://www.mediawiki.org/wiki/Extension:Scribunto/Lua_reference_manual#frame:callParserFunction) [03:48:39] how do i add a user to a group like admin? [03:55:24] You can go to Special:UserRights on the wiki then type in the username of whoever you want to add [04:03:00] is it possible to add groups? [04:04:01] yeah [04:04:12] you need to configure that in LocalSettings though [04:04:15] !access [04:04:15] For information on customizing user access, see . For common examples of restricting access using both rights and extensions, see . [04:04:46] https://www.mediawiki.org/wiki/Manual:User_rights#Creating_a_new_group_and_assigning_permissions_to_it [04:32:32] ok thanks [05:01:16] hi; do you know what hook can I use to add text in articles before parsing? SkinAfterContent has no parsing and ParserBeforeStrip runs on system messages too. [05:02:43] can you give an example of what you are trying to do? [05:03:51] hmm, i want to add a plugin code to all the regular pages. like a category: [[Category:Something]] [05:04:01] to the end of every page [05:04:41] do you have database access? [05:04:45] yes [05:05:00] can you just append it? [05:05:09] i want to add it to the new pages too [05:05:17] make it a job [05:05:17] that's why i'm going for a hook [05:05:30] exclude the row if it has the text alread [05:05:32] y [05:05:53] Hmm… hacky as hell. I like that. [05:06:34] update ?page-table? set ?page-text? = ?page-text? where ?page-text? not like %plugintext% [05:07:05] the second page text needs a + %plugin-text% [05:08:11] how many pages in your wiki? [05:13:00] about 1000 [05:13:36] if you have just wiki access an export, update and import would also work [05:14:36] okay, thanks for an idea [05:18:00] if its just content pages you want, just run a pywiki/awb bot etc to edit the pages [05:19:59] when i try to comfirm my email on my wiki i dont get a email, how do i fix that [05:21:24] p858snake, where do I learn more about that? [05:23:22] https://www.mediawiki.org/wiki/Manual:Pywikibot https://en.wikipedia.org/wiki/Wikipedia:AutoWikiBrowser [05:23:37] Thank you [06:04:59] fluff: Okay, the api.php can easily do that. [06:08:37] Err, for users. For IPs, hmmm. [06:09:28] For page protection, https://en.wikipedia.org/w/api.php?action=help&modules=query%2Binfo probably works. [06:09:48] https://en.wikipedia.org/w/api.php?action=query&prop=info&titles=Main%20Page&inprop=protection [06:09:56] That has the protection level. [06:10:26] It doesn't include protection reason, but you could get that separately if you wanted. [06:10:39] For IP blocked status, hmm. [06:12:06] Maybe allusers? [06:13:38] Oh, list=blocks. [06:13:42] https://en.wikipedia.org/w/api.php?action=help&modules=query%2Bblocks [06:15:08] Right, so https://en.wikipedia.org/w/api.php?action=query&list=blocks&bkip=216.212.235.222 [06:15:22] fluff: ^ [06:15:55] https://en.wikipedia.org/w/api.php?action=help&recursivesubmodules=1 <-- I usually use this to find api.php shit. [10:19:26] Important one https://gerrit.wikimedia.org/r/#/c/332119/ [10:55:29] Yvette: Blocks of IP addresses, yeah, but then I'd have to parse and see if there isn't any unblocks later on that removes an earlier block or a reblock that adjusts the expiry [10:56:03] I was kind of hoping not to do that :D [10:57:42] A not likely, but plausible scenario would also be if there's to much in the block log to parse, I'd then end up with the wrong information. the list=users have the property "blockinfo" which clearly states if the user is blocked or not. [10:59:38] page protection: maybe i'll have to be satisfied with the knowledge of the fact that the page already is protected, and send the user to a web page instead of handling it in my gui :/ [10:59:49] Yvette: thanks for the help anyway! [11:03:09] How do I make custom CSS available for mobile site? [11:29:50] Hello. We really need help with a logging issue. We have an extension that creates wikis, it is supposed to log them on Meta but it logs the creations on the wikis themselves. This error began when we upgraded to 1.28 [11:29:51] https://phabricator.miraheze.org/T1104 [17:38:43] fluff: Hmm? list=blocks only lists current blocks, I believe. [17:38:59] Not sure what you mean about page protection. [17:39:09] You can find an arbitrary page's protection. [17:39:18] If you're curious about the reason, I'm sure we expose the log comment somewhere. [17:39:43] api.php is also a live API, in the sense that if you find features that are truly missing, we can add them. [17:40:00] Just file a ticket at https://phabricator.wikimedia.org [17:46:37] !xy | Yvette [17:46:37] Yvette: The XY problem is asking about your attempted *solution* rather than your *actual problem*. http://meta.stackoverflow.com/a/66378 [18:56:07] how do i get the contents on pages? [18:58:12] Tslimshady99: could you be more specific? [19:00:47] like this https://drive.google.com/file/d/0B9Lxu5b5U6_KanBEcUFCY2tZVEk/view?usp=sharing [19:05:06] Tslimshady99: Using the api: https://www.mediawiki.org/wiki/Special:ApiSandbox#action=parse&format=json&page=Manual%3AUser_rights&prop=sections [21:19:32] how do i add a logo? [21:24:07] !logo [21:24:07] The logo that appears in the top left of each page is from $wgLogo in LocalSettings.php. To change this you change the value of $wgLogo to point to the URL of your own logo. See . Be sure $wgLogo is set to an absolute path, starting with "/" (or a protocol "http:"/"https:"). Using pretty URLs a relative path will behave oddly. 135x135 pixels [22:05:51] how do i html coding in to a page like the main page [22:06:03] add [22:08:23] Tslimshady99: what kind of HTML apart from what it supports MediaWiki natively? [22:10:00] like , i cant find the html code list that MediaWiki Supports. [22:10:59] ... [22:11:26] Tslimshady99: you can't use directly, but you can embed uploaded images, which is equivalent: https://www.mediawiki.org/wiki/Help:Images [22:11:44] ok [22:13:40] Tslimshady99: https://www.mediawiki.org/wiki/Manual:$wgAllowImageTag [22:15:09] there's usually no reason to allow img tag when embedded images can do the same in a safest way [22:27:50] if using that in intranet or closed wiki, I think that can be controlling a risk. of course, that is not recommended. [22:35:16] $wgAllowImageTag should probably obey https://www.mediawiki.org/wiki/Manual:$wgAllowExternalImagesFrom [23:19:29] I upgraded from 1.19 to 1.26.4, but when I try to run update.php I get a syntax error: https://bpaste.net/show/b34035a8d001 [23:21:01] line 182 is just the closing brace for wfLoadExtension(). 1.26.4 requires php 5.3.3 or later, and I am on 5.6.29