Last modified: 2012-01-26 18:27:41 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T34699, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 32699 - RSS feed of Article of the Day
RSS feed of Article of the Day
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
API (Other open bugs)
unspecified
All All
: Unprioritized enhancement (vote)
: ---
Assigned To: Max Semenik
:
Depends on: 33487
Blocks:
  Show dependency treegraph
 
Reported: 2011-11-28 23:48 UTC by Phil Chang
Modified: 2012-01-26 18:27 UTC (History)
5 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Phil Chang 2011-11-28 23:48:25 UTC
This already exists in large part, but some additional refinement could be good for helping mobile operators use any feed in any language. A self-service portal?
Comment 1 Tomasz Finc 2011-11-29 00:41:28 UTC
This doesn't exist as part of the MediaWiki API. We need to add it first before we think of a portal.
Comment 2 Sam Reed (reedy) 2011-12-17 21:48:50 UTC
Do you literally mean a RSS feed of X wikis featured article?

Probably not something that would go into core, but could exist as an extension.

Though, for enwiki, and possibly other wikis, this gets arkward

[[Wikipedia:Today's featured article/August 16, 2007]]

We're seemingly going to be having to visit said page, and scrape out "'''[[Rail transport in India]]'''"...
Comment 3 Tomasz Finc 2011-12-17 22:05:41 UTC
We have a couple of examples of how other people have approached this  at http://en.wikipedia.org/wiki/Wikipedia:Syndication#Externally_hosted_RSS_feeds_of_Wikipedia_pages

And we might even be able to shape up this extension http://www.mediawiki.org/wiki/Rss to get this work done. It's a little confusing to know if this extension is used as a reader or generator

For the initial spec we should include something like this

<channel>
<title>Wikipedia Featured Articles</title>
<link>http://en.wikipedia.org/wiki/Wikipedia:Today%%27s_featured_article</link>
<description>RSS feed of Wikipedia Featured Articles, generated by XX</description>
<language>en-us</language>
<copyright>CC by SA</copyright>
<lastBuildDate>Sat, 17 Dec 2011 21:05:01 +0000</lastBuildDate>
<docs>mw.org/XX</docs>
<webMaster>blah@wikimedia.org</webMaster>
<generator>MW</generator>


<item>
<title>December 17: David Lewis</title>
<link>http://en.wikipedia.org/wiki/Wikipedia:Today%27s_featured_article/December_17%2C_2011</link>
<guid isPermaLink="false">http://toolserver.org/~skagedal/feeds/fa-2011-12-17</guid>
<description>&lt;div style="float:left;margin:0.5em 0.9em 0.4em 0;"&gt;&lt;a href="http://en.wikipedia.org//en.wikipedia.org/wiki/File:DavidLewis1944.jpg" class="image" title="David Lewis in September 1944"&gt;&lt;img alt="David Lewis in September 1944" src="//upload.wikimedia.org/wikipedia/commons/thumb/9/9b/DavidLewis1944.jpg/100px-DavidLewis1944.jpg" width="100" height="130" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;p&gt;&lt;b&gt;&lt;a href="http://en.wikipedia.org//en.wikipedia.org/wiki/David_Lewis_(politician)" title="David Lewis (politician)"&gt;David Lewis&lt;/a&gt;&lt;/b&gt; (1909–1981) was a Russian-born Canadian Rhodes Scholar, labour lawyer and &lt;a href="http://en.wikipedia.org//en.wikipedia.org/wiki/Social_democracy" title="Social democracy"&gt;social democratic&lt;/a&gt; politician. He was national secretary of the &lt;a href="http://en.wikipedia.org//en.wikipedia.org/wiki/Co-operative_Commonwealth_Federation" title="Co-operative Commonwealth Federation"&gt;Co-operative Commonwealth Federation&lt;/a&gt; from 1936 to 1950. As the &lt;a href="http://en.wikipedia.org//en.wikipedia.org/wiki/United_Steelworkers_of_America" title="United Steelworkers of America" class="mw-redirect"&gt;United Steelworkers of America&lt;/a&gt;’s legal counsel in Canada, he played a central role in the creation of the &lt;a href="http://en.wikipedia.org//en.wikipedia.org/wiki/Canadian_Labour_Congress" title="Canadian Labour Congress"&gt;Canadian Labour Congress&lt;/a&gt; in 1956 and in the &lt;a href="http://en.wikipedia.org//en.wikipedia.org/wiki/New_Democratic_Party" title="New Democratic Party"&gt;New Democratic Party&lt;/a&gt; (NDP)'s formation in 1961. In 1962, he was elected as a &lt;a href="http://en.wikipedia.org//en.wikipedia.org/wiki/Member_of_Parliament" title="Member of Parliament"&gt;Member of Parliament&lt;/a&gt;. He was the NDP's leader from 1971 to 1975. After his defeat in the 1974 Canadian election, he retired from politics. He spent his last years as an university professor and a newspaper travel correspondent. In retirement, he was named to the highest level of the &lt;a href="http://en.wikipedia.org//en.wikipedia.org/wiki/Order_of_Canada" title="Order of Canada"&gt;Order of Canada&lt;/a&gt; for his political service. After a lengthy battle with cancer, he died in 1981. (&lt;a href="http://en.wikipedia.org//en.wikipedia.org/wiki/True_at_First_Light" title="True at First Light"&gt;&lt;b&gt;more...&lt;/b&gt;&lt;/a&gt;)&lt;/p&gt;
</description>
</item>


Whatever implementation we choose it should be generic so that we can later add feeds like image of the day. This feed should also be usable on any wiki/project
Comment 4 Tomasz Finc 2011-12-17 22:07:24 UTC
(In reply to comment #2)
> Do you literally mean a RSS feed of X wikis featured article?
> 
> Probably not something that would go into core, but could exist as an
> extension.

That's fine as its WP specific.

> Though, for enwiki, and possibly other wikis, this gets arkward
> 
> [[Wikipedia:Today's featured article/August 16, 2007]]

Yup, were going to have to standardize a lot of this.

> We're seemingly going to be having to visit said page, and scrape out
> "'''[[Rail transport in India]]'''"...

It's sad if the best mechanism we have for our own database is screen scraping. Can't we do better?
Comment 5 Tomasz Finc 2011-12-17 22:30:08 UTC
interwiki links show me that we have following languages linked together as featured article pages

http://en.wikipedia.org/wiki/Wikipedia:Today%27s_featured_article

العربية
Deutsch
Gaeilge
日本語
සිංහල
ไทย
Türkçe
ភាសាខ្មែរ
中文

There are a number of language versions of Wikipedia that don't do article of the day but instead change featured articles at a slower pace.

http://ta.wikipedia.org/wiki/%E0%AE%B5%E0%AE%BF%E0%AE%95%E0%AF%8D%E0%AE%95%E0%AE%BF%E0%AE%AA%E0%AF%8D%E0%AE%AA%E0%AF%80%E0%AE%9F%E0%AE%BF%E0%AE%AF%E0%AE%BE:%E0%AE%AE%E0%AF%81%E0%AE%A4%E0%AE%B1%E0%AF%8D%E0%AE%AA%E0%AE%95%E0%AF%8D%E0%AE%95%E0%AE%95%E0%AF%8D_%E0%AE%95%E0%AE%9F%E0%AF%8D%E0%AE%9F%E0%AF%81%E0%AE%B0%E0%AF%88%E0%AE%95%E0%AE%B3%E0%AF%8D
Comment 6 Max Semenik 2011-12-20 17:25:34 UTC
First iteration done, results are at trunk/extensions/FeaturedFeeds

It uses the on-wiki infrastructure as much as possible, local sysops only have to set up one message per feed, e.g. for enwiki's featured articles feed one has to create [[MediaWiki:Ffeed-fa-page]] containing "Wikipedia:Today's featured article/{{#time:F j, Y}}". The feed does not need to contain whole articles, IMO, as they are huge. Instead, the extension serves short snippets we see on main page, with a convenient "read more" link. The extension ships with FeaturedFeedsWMF.php that contains typical feed definitions for many projects.

Things to decide: what pages should contain links to feeds?  Currently, only Main Page does.
Comment 7 Max Semenik 2012-01-26 18:27:41 UTC
Deployed.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links