[11:47:36] bearND|afk: I just saw your message from yesterday. When you're no longer AFK, let me know. I'm a sysop, so I can edit pages in the MW namespace, and I've set-up some kind of feed, but I don't think I did it right, so I'm hoping you'd be willing to take a look at it. [14:24:53] srdjan_m: The MW namespace page for TFA (https://bs.wikipedia.org/wiki/MediaWiki:Ffeed-featured-page) looks good. I've created a patch for this at https://gerrit.wikimedia.org/r/c/421017/. Note that this wiki uses the same featured article for the whole month. So, this might appear a bit repetitive throughout the month. [14:27:16] bearND: Thanks for the patch. :-) I know about month-long thing. If we change the way FAs work, I'll make sure to ask for more help. ;-) What about the other stuff? If I can help on-wiki by changing the way certain templates work to make it easier to enable On this day and other stuff, I'd be glad to. [14:29:18] *about the month-long [14:33:04] srdjan_m: About the month long FA, I'm considering changing the implementation to add an optional start date to the output. https://phabricator.wikimedia.org/T175761 [14:34:37] The patch has already been merged, so we'll most likely deploy this during the next Services deployment window later today. So, by tomorrow you should be able to see the FA in the Explore feed in your app. [14:35:01] Awesome. Thanks. :-) [14:35:56] We've also got a "Quote of the Day" on the homepage, which is listed on the mw.org documentation as an option, but it also says that it's limited to Wikiquote. [14:36:57] Feel free to add the MW page for it if you like but we don't have an card for this in the explore feed ATM. Only a few wikis use it. [14:37:19] it = Quote of the Day [14:38:14] I think In the news would be a good next candidate. For that I only need to know the name of the page containing the news. Then try some parsing things. [14:39:22] srdjan_m: There's what we do for other wikis in terms of In the news: https://phabricator.wikimedia.org/diffusion/GMOA/browse/master/etc/feed/news-sites.js. Look at the end of the file. Maybe compare it with English or another wiki you are familiar with. [14:39:29] We use this https://bs.wikipedia.org/wiki/%C5%A0ablon:Vijesti for news. Again, if it's going to be easier to implement it by changing the design, it shouldn't be an issue. [14:41:24] if it'd be easier* [14:43:06] srdjan_m: No, that should work as is. [14:43:11] Especially for "On this day", because I need to clean up the lint errors for every day anyway. [14:45:33] srdjan_m: I think I can push In the news out tonight as well. On this day is quite a bit harder, see https://phabricator.wikimedia.org/diffusion/GMOA/browse/master/lib/feed/on-this-day.languages.js what is done for other languages. [14:46:19] Hmm, yeah.. That doesn't look all that easy... [14:48:02] I think I'm gonna set up the "Quote of the Day" feed. Do I need to exclude the images and stuff or will that be done by someone else when the card gets made? [14:48:17] srdjan_m: Once the "On this day" stuff is cleaned up ping me and we can take a stab at it. Long term we'd like to propose some markup that UI template editors could add to make parsing easier (for all feed related pages) but frankly I don't know when we get around to that. Esp. the on this day stuff is a bit involved. [14:51:19] I'm probably gonna start on that today. [14:51:34] Cleaning the stuff up, I mean. [14:52:09] srdjan_m: Not sure about QOTD or when that would happen, probably after we get better support for more languages for the other feed cards. [14:54:07] I suspect that the ornamental images around the QOTD are provided by templates. It's slightly different in the archive (https://bs.wikipedia.org/wiki/Wikipedia:Citat_dana/Arhiva/Januar). I would imagine that we would just want the text. [16:47:49] bearND: By the way, if you wanna take a look at the "On this Day" templates, here's what they're gonna look like https://bs.wikipedia.org/wiki/%C5%A0ablon:Na_dana%C5%A1nji_dan/1._januar . The footer might change in the future; I don't know if that would affect the potential feed. [17:18:59] srdjan_m: That one looks like the page with the selected anniversaries, right? And https://bs.wikipedia.org/wiki/1._januar would be an example of a day page. That looks pretty good to me. If the day numbers are just "1.", "2.", and so on then that is easy. Other languages, like French have some special rules about that (see lines 74 and 90-92 in the file I previously mentioned). [17:19:44] bearND: Nope, no special rules. Just dots after numbers. [17:20:13] Once all pages are like this I would need a list of headings for the different categories. Note that there could be multiple ones, like in https://phabricator.wikimedia.org/diffusion/GMOA/browse/master/lib/feed/on-this-day.languages.js;a5e250d3acb3806f75e0ebda852798259ee76529$47-50. [17:20:29] I think I could easily find the month names. [17:21:37] januar, februar, mart, april, maj, juni, juli, august, septembar, oktobar, novembar, decembar -- those are the names, just in case. [17:21:52] because juni and juli can be written without the "i" at the end [17:28:02] Great. Thanks. [17:29:35] yw. i don't get the headings bit though [17:35:28] srdjan_m: The headings are for the day pages (e.g. https://bs.wikipedia.org/wiki/1._januar). We're looking for 'births', 'deaths', 'events', 'holidays'). [17:36:39] bearND: So, just translations of that or...? [17:38:47] cause all of those things do appear [17:49:44] srdjan_m: It really depends on what strings appear for the headings on the actual pages. If they are all the same then that's easy. For some projects, like dewiki, they sometimes have multiple variations ('Feier-_und_Gedenktage', 'Feier-,_Gedenk-_und_Aktionstage', 'Feier-,_Aktions-_und_Gedenktage'). So we can take an array of those variations to cover all of them. [17:51:15] Eventually we hope to come up with some microformats to use for parsing instead of hard-coding all of this. [17:51:32] i have no idea what the heading are... and i'm almost done with the clean up [17:53:24] you mean the heading on the pages of dates? [17:53:35] like [[January 1]]? [17:55:08] srdjan_m: From what I've seen on the January 1 page: births: ['Rođeni'], deaths: ['Umrli'], events: ['Događaji'], holidays: ['Praznici']. Does this sound reasonable? [17:55:49] bearND: Yeah, that's spot on. [17:58:08] srdjan_m: great. I need to finish some other work first but going to put that in a patch and run some tests later. [18:18:26] bearND: OK. All the pages now match https://bs.wikipedia.org/wiki/%C5%A0ablon:Na_dana%C5%A1nji_dan/1._januar , just to let you know. [18:30:18] Also, I wonder if the years here https://u.cubeupload.com/srdjan/MxXhtu.png could have a dot at the end? [18:30:43] it's not a big deal if they can't, though [18:32:06] srdjan_m: We should be able to handle it. There are some regular expression for the years [18:32:41] yearListElementRegEx in https://phabricator.wikimedia.org/diffusion/GMOA/browse/master/lib/feed/on-this-day.languages.js;a5e250d3acb3806f75e0ebda852798259ee76529$61 [18:33:51] Also note the strings to denote the negative year numbers (English 'BC', German 'v. Chr.', ...) [18:34:22] BC is "p. n. e." [18:34:39] if there ever is CE, then it's "n. e." [18:36:58] Ok [18:37:46] Do I need to make any more feeds or is that it? [18:38:27] i guess i need to make a onthisday one? [18:45:51] welp, i made it [18:46:45] srdjan_m: the other feed pages are optional. They wouldn't immediately help work the explore feed stuff but they could be useful for people using the MW featured feed API. It's basically an RSS feed. [18:48:07] yeah, i made them to have the correct declension of certain nouns [18:48:57] Maybe the potd would be nice to have as well for the future when we try to use the wikipedia specific ones instead of the ones from commons [18:49:15] we get them from commons anyway [18:49:30] and the bot that changes them is kaput at the moment