Page MenuHomePhabricator

Template name problems in RSS extension hardcoded in odd way ; page shows redlinked Template:RSSPost
Closed, ResolvedPublic

Description

On wikimediafoundation.org, the template "Post" was used instead of "RSSPost". This was done by changing the MediaWiki message "rss-item". However, this only worked for ?uselang=en. When other users viewed the blog entries, it showed a redlinked "Template:RSSPost". By creating a redirect at "Template:RSSPost", this problem has been resolved temporarily. However, there doesn't appear to be a way to cleanly change the default template name for all languages. Surely there should be a message for just the template name...


Version: unspecified
Severity: minor
URL: http://www.mediawiki.org/wiki/Extension:RSS

Details

Reference
bz26479

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 11:19 PM
bzimport set Reference to bz26479.

Not working in trunk. I also see redlinked Template:RSSPost .

Solved. It was merely a problem of the documentation, which was not clear.

  • changed the http://www.mediawiki.org/wiki/Extension:RSS page in the parts which were unclear
  • refactored the code, a compatible new version 1.9 will be released soon
  • which harmonises the (namespace) use of the two templates in the extension code
  • and comes with meaningful predefined templates in the i18n file
  • the new default templates come from [[MediaWiki:Rss-item]] and [[MediaWiki:Rss-feed]], or a previously [[Template:RSSPost]] page, if this exists
  • added a live example of <rss max=5 >http://blog.wikimedia.org/feed/</rss> to extension page http://www.mediawiki.org/wiki/Extension:RSS#Example (after having found that MediaWiki runs the extension, which is nice)