Last modified: 2011-09-07 18:53:14 UTC
The English Wikinews recently implemented the Google News Sitemap extension, which provides a number of additional features, including a much better RSS feed than the current feedburner one. Can this be changed, please? It would require changing the following: $wgSiteFeed['rss'] = "http://feeds.feedburner.com/WikinewsLatestNews" (set after bug 15080) to: $wgSiteFeed['rss'] = "http://en.wikinews.org/w/index.php?title=Special:NewsFeed&feed=rss&categories=Published¬categories=No%20publish|Archived|AutoArchived|disputed&namespace=0&count=30&hourcount=96&ordermethod=categoryadd&stablepages=only"
For RSS: http://en.wikinews.org/w/index.php?title=Special:NewsFeed&feed=rss&categories=Published¬categories=No%20publish%7CArchived%7CAutoArchived%7Cdisputed&namespace=0&count=30&hourcount=124&ordermethod=categoryadd&stablepages=only For atom: http://en.wikinews.org/w/index.php?title=Special:NewsFeed&feed=atom&categories=Published¬categories=No%20publish%7CArchived%7CAutoArchived%7Cdisputed&namespace=0&count=30&hourcount=124&ordermethod=categoryadd&stablepages=only For Google news itself: http://en.wikinews.org/w/index.php?title=Special:NewsFeed&feed=sitemap&categories=Published¬categories=No%20publish%7CArchived%7CAutoArchived%7Cdisputed&namespace=0&count=30&hourcount=72&ordermethod=categoryadd&stablepages=only Note that per Google's requirements, the feed shouldn't contain really stale stuff. Also, $wgGNSMsmaxage = 300 would be the most appropriate value for a news site; stuff should be pushed quickly, not half-hourly.
> For Google news itself: > http://en.wikinews.org/w/index.php?title=Special:NewsFeed&feed=sitemap&categories=Published¬categories=No%20publish%7CArchived%7CAutoArchived%7Cdisputed&namespace=0&count=30&hourcount=72&ordermethod=categoryadd&stablepages=only Whoever has the actual Google Webmaster tools account for Wikinews should submit a variant of the above to Google: http://en.wikinews.org/w/index.php?title=Special:NewsFeed&feed=sitemap&categories=Published¬categories=No%20publish%7CArchived%7CAutoArchived%7Cdisputed&namespace=0&count=50&hourcount=48&ordermethod=categoryadd&stablepages=only Note, there are parameter changes between rss/atom, the embedded feed, and the submitted sitemap.
Please don't tag shell requests as 'easy'. 'easy' is for bugs that people new to the MediaWiki code base can easily fix, not for bugs that require shell access to the cluster.
Some comments: RSS vs ATOM: Since we now only put atom feeds in <link>'s (since some time in 1.17) we should probably only have: $wgSiteFeed['atom'] = 'http://en.wikinews.org/w/index.php?title=Special:NewsFeed&feed=atom¬categories=No%20publish|Archived|AutoArchived|disputed&count=30&hourcount=96'; (This is exactly the same as comment 0's feed, except for changing to atom, and removing some parameters that are the same as the implied defaults when unspecified) For the google one brianmc suggested in comment 1, that's already what google has, except the proposed one is limited to 30 articles, where currently we have no limit (google wants less than 1000, so no limit sounds good to me). Thus I don't recommend changing the google one. (However for future reference I believe hexmode has the google webmaster tools account) >$wgGNSMsmaxage = 300 > >would be the most appropriate value for a news site; stuff should be pushed >quickly, not half-hourly. Note to ops folks: This would (obviously) decrease the cache life of gnsm requests in the squids for non-logged in users. This is probably not a big deal (at least I don't think it would be) since wikinews is a) small, and b) GNSM also caches stuff in memcache which this setting does not affect.
before I forget, if mediawiki doesn't do this itself, the |'s in the url should be changed to %7C since some clients seem to have difficultly with that character (probably works fine for 99% of people, but better safe than sorry)
'wgOverrideSiteFeed' => array( 'testwiki' => array( 'rss' => 'http://www.example.org/feedstuff.rss', ), 'enwikinews' => array( 'rss' => 'http://feeds.feedburner.com/WikinewsLatestNews', ), ), to 'wgOverrideSiteFeed' => array( 'testwiki' => array( 'rss' => 'http://www.example.org/feedstuff.rss', ), 'enwikinews' => array( 'rss' => 'http://en.wikinews.org/w/index.php?title=Special:NewsFeed&feed=rss&categories=Published¬categories=No%20publish%7CArchived%7CAutoArchived%7Cdisputed&namespace=0&count=30&hourcount=124&ordermethod=categoryadd&stablepages=only', 'atom' => 'http://en.wikinews.org/w/index.php?title=Special:NewsFeed&feed=atom&categories=Published¬categories=No%20publish%7CArchived%7CAutoArchived%7Cdisputed&namespace=0&count=30&hourcount=124&ordermethod=categoryadd&stablepages=only', ), ), ? And then setting $wgGNSMsmaxage = 300 Do we know who has the google webmaster tools account?
btw, community concensuss at: http://en.wikinews.org/wiki/Wikinews:Water_cooler/technical#bugzilla:30621 re: to comment 6 >Do we know who has the google webmaster tools account? hexmode used to, don't know if he still does. However it doesn't really matter as its not needed to fulfill this request. > 'wgOverrideSiteFeed' => array( > 'testwiki' => array( > 'rss' => 'http://www.example.org/feedstuff.rss', > ), > 'enwikinews' => array( > 'rss' => 'http://feeds.feedburner.com/WikinewsLatestNews', > ), > ), > > to > > 'wgOverrideSiteFeed' => array( > 'testwiki' => array( > 'rss' => 'http://www.example.org/feedstuff.rss', > ), > 'enwikinews' => array( > 'rss' => > 'http://en.wikinews.org/w/index.php?title=Special:NewsFeed&feed=rss&categories=Published¬categories=No%20publish%7CArchived%7CAutoArchived%7Cdisputed&namespace=0&count=30&hourcount=124&ordermethod=categoryadd&stablepages=only', > 'atom' => > 'http://en.wikinews.org/w/index.php?title=Special:NewsFeed&feed=atom&categories=Published¬categories=No%20publish%7CArchived%7CAutoArchived%7Cdisputed&namespace=0&count=30&hourcount=124&ordermethod=categoryadd&stablepages=only', > ), > ), > > ? > > And then setting $wgGNSMsmaxage = 300 > Yep that would be fine. Personally I'd only set the atom one and not have any rss feed set in $wgOverrideSiteFeed (to be consistent with r61037) but I guess it doesn't really matter.
Done