Topic on Extension talk:RSS

Could I use {{{1}}} in RSS feed URL ?

5
Alexandroslee (talkcontribs)

how could I use a dynamic RSSfeed URL ?

I had a template such as template:newsfeed

then call as {{template:newsfeed|123456}}

and I setup template:newsfeed like this

<rss max="6" template="newsfeed">www.abc.com/rssfeed?no={{{1}}}</rss>

but seem the RSSfeed URL won't work {{{1}}} ?

then change to direct number like this

<rss max="6" template="newsfeed">www.abc.com/rssfeed?no=123456</rss>

the news show ,

but I need the dynamic RSSfeed URL

how could I use a dynamic RSSfeed URL ?

This post was hidden by Alexandroslee (history)
This post was hidden by Alexandroslee (history)
Alexandroslee (talkcontribs)

there is templet:$1 of MediaWiki:Rss-item

How can i do ?

It4history (talkcontribs)

I solved this problem by hacking code in the file RSSHooks.php

I added at line 27 just after "public static function renderRss..."

$input = $parser->replaceVariables($input);

Reply to "Could I use {{{1}}} in RSS feed URL ?"