Difference between revisions of "Widget:Feed"

From Second Life Wiki
Jump to navigation Jump to search
(taken from http://www.mediawikiwidgets.org/Feed)
 
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<noinclude>
This widget allows you to add any RSS feed to your wiki page.
This widget allows you to add any RSS feed to your wiki page.
It was originally created by [[mediawikiwiki:User:Sergey Chernyshev|Sergey Chernyshev]] for [http://www.ardorado.com Ardorado.com] and sponsored by [http://www.semanticcommunities.com/ Semantic Communities, LLC.].


This widget uses code and service from [http://www.feed2js.org Feed2JS].
This widget uses code and service from [http://www.feed2js.org Feed2JS].
== Using this widget ==
For information on how to use this widget, see [http://www.mediawikiwidgets.org/Feed widget description page on MediaWikiWidgets.org].


To insert this widget, use the following code:
<nowiki>{{#widget:Feed
|feedurl=http://www.techpresentations.com/feed/
|chan=y
|num=5
|desc=50
|date=n
|targ=n
}}</nowiki>
== Parameters ==
== Parameters ==
* '''feedurl''' - URL of the feed to show
* '''feedurl''' - URL of the feed to show
Line 24: Line 16:
== Sample result ==
== Sample result ==
{{#widget:Feed
{{#widget:Feed
|feedurl=http://www.techpresentations.com/feed/
|feedurl=http://feeds.sergeychernyshev.com/SergeyChernyshevsBlog
|chan=y
|chan=y
|num=10
|num=10
Line 31: Line 23:
|targ=y
|targ=y
}}
}}
</noinclude><includeonly><script language="JavaScript" src="http://feed2js.org//feed2js.php?src=<!--{$feedurl|escape:'urlpathinfo'}-->&amp;chan=<!--{$chan|escape:'urlpathinfo'}-->&amp;num=<!--{$num|escape:'urlpathinfo'}-->&amp;desc=<!--{$desc|escape:'urlpathinfo'}-->&amp;date=<!--{$date|escape:'urlpathinfo'}-->&amp;targ=<!--{$targ|escape:'urlpathinfo'}-->&amp;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