Difference between revisions of "Widget:Feed"

From Second Life Wiki
Jump to navigation Jump to search
(taken from http://www.mediawikiwidgets.org/Feed)
 
(that's the right one ^^)
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.].
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:
== Copy to your site ==
 
To use this widget on your site, just install [http://www.mediawiki.org/wiki/Extension:Widgets MediaWiki Widgets extension] and copy [{{fullurl:{{FULLPAGENAME}}|action=edit}} full source code] of this page to your wiki as '''{{FULLPAGENAME}}''' article.
<nowiki>{{#widget:Feed
</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>
|feedurl=http://www.techpresentations.com/feed/
|chan=y
|num=5
|desc=50
|date=n
|targ=n
}}</nowiki>
== 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://www.techpresentations.com/feed/
|chan=y
|num=10
|desc=300
|date=y
|targ=y
}}

Revision as of 07:55, 19 December 2008

This widget allows you to add any RSS feed to your wiki page. It was originally created by Sergey Chernyshev for Ardorado.com and sponsored by Semantic Communities, LLC..

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.

Copy to your site

To use this widget on your site, just install MediaWiki Widgets extension and copy full source code of this page to your wiki as Widget:Feed article.