Difference between revisions of "Widget:Feed"
Jump to navigation
Jump to search
Rand Linden (talk | contribs) |
Rand Linden (talk | contribs) |
||
Line 5: | Line 5: | ||
== Using this widget == | == Using this widget == | ||
For information on how to use this widget, see [http://www.mediawikiwidgets.org/Feed widget description page on MediaWikiWidgets.org]. | For information on how to use this widget, see [http://www.mediawikiwidgets.org/Feed widget description page on MediaWikiWidgets.org]. | ||
== Parameters == | |||
* '''feedurl''' - URL of the feed to show | |||
* '''chan''' - show channel info or not (y/title/n) | |||
* '''num''' - number of items to show (0 means all available) | |||
* '''desc''' - number of characters to show from description (0 means show full description) | |||
* '''date''' - show date (y/n) | |||
* '''targ''' - open links in new window (y/n) | |||
== Sample result == | |||
{{#widget:Feed | |||
|feedurl=http://feeds.sergeychernyshev.com/SergeyChernyshevsBlog | |||
|chan=y | |||
|num=10 | |||
|desc=300 | |||
|date=y | |||
|targ=y | |||
}} | |||
</noinclude><includeonly><script language="JavaScript" src="http://feed2js.org//feed2js.php?src=<!--{$feedurl|escape:'urlpathinfo'}-->&chan=<!--{$chan|escape:'urlpathinfo'}-->&num=<!--{$num|escape:'urlpathinfo'}-->&desc=<!--{$desc|escape:'urlpathinfo'}-->&date=<!--{$date|escape:'urlpathinfo'}-->&targ=<!--{$targ|escape:'urlpathinfo'}-->&utf=y" type="text/javascript"></script></includeonly> | </noinclude><includeonly><script language="JavaScript" src="http://feed2js.org//feed2js.php?src=<!--{$feedurl|escape:'urlpathinfo'}-->&chan=<!--{$chan|escape:'urlpathinfo'}-->&num=<!--{$num|escape:'urlpathinfo'}-->&desc=<!--{$desc|escape:'urlpathinfo'}-->&date=<!--{$date|escape:'urlpathinfo'}-->&targ=<!--{$targ|escape:'urlpathinfo'}-->&utf=y" type="text/javascript"></script></includeonly> |
Latest revision as of 15:35, 18 May 2011
This widget allows you to add any RSS feed to your wiki page.
This widget uses code and service from Feed2JS.
Using this widget
For information on how to use this widget, see widget description page on MediaWikiWidgets.org.
Parameters
- feedurl - URL of the feed to show
- chan - show channel info or not (y/title/n)
- num - number of items to show (0 means all available)
- desc - number of characters to show from description (0 means show full description)
- date - show date (y/n)
- targ - open links in new window (y/n)
Sample result