[00:49:00] is it possible to put a soft linebreak into a numbered list, ie, a linebreak that doesn't start the next item in the numbered list [00:49:48] k-man: You can insert a `
` in wikitext. In the visual editor, press shift-return. [00:51:04] James_F, for me, when i do shift+return in the visual editor, it does move to the next line, but upon save and reload, the text is back on the previous line [00:51:37]
stuck though [00:51:40] thanks for the tip [00:52:24] k-man: Hmm. You're right. I think that's a regression, sorry. [00:52:38] k-man: I'll file a Phabricator task. [00:53:00] James_F, oh thanks [00:53:03] thanks for double checking [00:53:11] Of course. Happy to help. :-) [00:55:12] k-man: Aha, it was found back in October: https://phabricator.wikimedia.org/T190474 if you want to follow along. [00:56:40] ah good catch James_F [00:56:51] seems like a tricky one [01:00:58] Yeah, I think a bugfix in one area broke behaviour in another. It [01:01:00] I'm trying to modify the HTML of the PersonalUrls of the official Timeless skin, and it overwrites the values I pass back from the PersonalUrls hook. Is there another hook I can use to modify the HTML? BaseTemplate::execute() seems to just echo() out. [01:01:02] 's often the way. [01:02:21] is that ob_start() captured and returned elsewhere, perhaps with a hook? [01:02:35] for the final page HTML [02:43:20] this is so stupid [02:43:42] i should not have to redo the entire permissions setup because of the god damn wikipedia bureaucracy [02:56:03] c, what's up? [02:56:24] just ranting about the interface-admin nonsense [14:52:21] Is there a hook that gives me the HTML of the whole page? I'm trying to get the HTML of the upper right personal urls after the SkinTemplate::execute() has run. I can't use the PersonalUrl hook because that is before the execute, and the skin is overwriting what I return. (official Timeless skin) [14:54:37] BeforePageDisplay is the nuclear option, but are you positive that the skin is overwriting what you're doing? Did you test that out and verify or are you just assuming? It could be that your hook isn't being fired (perhaps due to caching), or a different extension also hooks into that and smashes your stuff [14:56:00] I'd be surprised if the skin just ignores that hook. The PersonalUrls hook doesn't let you manipulate the HTML itself, it just lets you add/remove links from the top [14:58:56] I am an admin on a wikipedia site. Can I give someone the access to import templates? [15:08:35] Skizzerz: thanks for the reply. PageBeforeDisplay only includes the content area, and does not include the header area. I verified the code in the skin itself. PersonalUrl hook is getting fired and returning the array, but then the Timeless skin wraps the whole thing into a non-configurable submenu, AND straight overwrites the text of two of the keys [15:11:33] Skizzerz: https://gerrit.wikimedia.org/r/plugins/gitiles/mediawiki/skins/Timeless/+/master/includes/TimelessTemplate.php#457 [15:30:37] Is it possible to test a skin without having all the elements like normally a skin has? [15:30:53] like adding some elements and test then more elements and test? [15:40:18] You can make a skin with basically nothing if you want, or add whatever. Take the example skin (or any other) and remove/add stuff to the template.php. [15:40:42] then just enable and test it? [15:40:53] need to use any specific addition to the url? [15:48:31] gyan: this is not the right channel for that. Follow the rights request process on the wiki in question; there's usually a place for it (you may need to edit a page or create a new one with your request) [15:59:36] Finlay: if you want to modify that text, edit [[MediaWiki:Timeless-userpage]] and [[MediaWiki:Timeless-talkpage]] [16:00:20] and yes, the entire point of the PersonalUrls hook is that you just say "add these links" -- you don't tell the skin HOW to add them, that is (and should be) up to the skin [16:00:39] otherwise every extension using that hook will need to know how every skin lays out the personal urls, and that way lies madness [16:01:02] you can add css classes via the hook and do stuff with :before to inject things like icons and the like [16:02:19] skinning system is a gigantic mess though, so some things are just really hard to do in general :( [16:05:10] Skizzerz: you said it :P [16:07:27] Skizzerz: yes, but I want to dynamically modify the text from an extension, not globally set it for everyone everywhere [16:10:06] Skizzerz: I guess there is not a way to change the HTML after the skin is done with it. I will tell my users of my extension that if they use the Timeless skin I cannot provide functionality in that area of the screen. [16:10:54] and they should stick with Vector/monobook [16:12:06] The real line I was looking to modify was: https://gerrit.wikimedia.org/r/plugins/gitiles/mediawiki/skins/Timeless/+/master/includes/TimelessTemplate.php#469 [16:12:33] which in those other skins I could do via PersonalUrls because it was text within the array [16:13:10] Finlay: what you want works with vector? [16:15:01] biberao: yes. I maintain https://www.mediawiki.org/wiki/Extension:Realnames which replaces usernames with realname+username. mainly for corporate wikis. The top right shows who is logged in [16:15:41] in vector/monobook it uses the PersonalUrls array to put the username as the link to the userpage, so I can hook it and replace the user page link to add the realname [16:16:10] nice [16:16:13] thanks [16:16:16] in timeless it adds the username as a dropdown text that has no hook, and overwrites the user page link to be generic "user page" text without the username. [16:17:02] so I need a hook that gives me the HTML _after_ TimelessTemplate::execute() where it `echo()` out the whole skin. So I can modify the HTML directory. Or a new hook (unlikely) [16:17:19] but I'm not sure if the output of TimelessTemplate::execute() is buffered using a ob_start() somewhere or not [16:17:28] or if it's just literally echo'd to the user directly [16:17:39] depends on server config [16:17:45] (so, not reliable) [16:18:16] since I'm an extension author, I'm not trying to solve this for my specific wiki w/ a core hack [16:18:21] did you check if there's an existing bug on phabricator to track this? If not, probably worth creating one [16:18:28] I'd rather find a way to give this functionality to all users of my extension [16:18:44] Skizzerz: not really a bug... and seems like niche functionality... [16:19:00] I figured there was a hook to get the HTML of the whole page right before display [16:19:08] well imo "skin is overriding stuff set in a hook and giving no way to change it" (re the message keys) is a bug [16:19:11] that's why I asked here cause I was having trouble finding it [16:20:29] I'll file a bug and see where it goes, thanks [16:29:57] Opara Prosper @Prosper posted in How to deal with php APCu extension installation - https://discourse-mediawiki.wmflabs.org/t/how-to-deal-with-php-apcu-extension-installation/1151/1 [16:55:55] back [16:56:36] is there a way to remove the "Summary" header from images pages showing up by default when a summary is used [16:58:47] Skizzerz: thanks, filed. https://phabricator.wikimedia.org/T215822 [16:59:16] I even came up with a nice fix if they so chose to do it [19:29:49] I'm struggling to make a curl call with some parameters. I've tried the whole day without success. What would the correct curl url be to search by people that are still alive. [19:57:11] Need help to construct a specific API call. Anyone who can solve it will get a reward on $100. Please PM me for more info. [19:59:54] marlon_is_home: What are you trying? [20:00:14] There's a few different ways you could try and get this information, depending on different "properties" [20:04:16] I want a query that searches for people only, and return matching pages with image, title and description. Example: typing "Albert E" will return following matches: "Albert Einstein", "Albert Edward", "Albert Ellis", "Albert Estopinal" and so on. [20:05:44] Well, that wasn't a good example because I only want result of living persons. [20:06:06] Reedy: I hope you understand what I'm looking for? [20:36:34] hey [20:36:42] is it possible to include [20:36:59] common localsettings files [20:37:28] like lets say as nginx you can have one server file and include other files for other specific locations [20:38:51] commonsettings maybe? [22:12:39] why is mediawiki blatantly ignoreing my width in the gallery [22:12:51] [22:12:56] File: blah blah|caption [22:12:58] [22:22:20] i put 3 different images, each in their own gallery [22:22:39] the first image is the correct width i specified, the second one is very small, and the third one is spanning the entire browser window width. wtf? [22:36:30] Why does only the first entry show categories and not the others? Doesnt matter what i search, only the first entry that gets categories. Am I missing something? https://en.wikipedia.org/w/api.php?action=query&formatversion=2&generator=prefixsearch&gpssearch=Albert&gpslimit=10&prop=pageimages|pageterms|categories|categoryinfo&piprop=thumbnail&pithumbsize=48&pilimit=10&redirects&wbptterms=description&gpsprof [22:36:30] ile=strict [22:38:45] Append &cllimit=max [22:39:02] Because cllimit applies across the different items [22:49:01] Thank you, I got a little bit further :) [22:51:23] If you experience something similar with other properties etc, you probably just need to adjust limits [22:51:42] But bare in mind, complex queries with lots of subproperty max can reduce the number of overall results [23:57:08] is there a way to remove the "Summary" header from images pages showing up by default when a summary is used