(merge from Help:RSS tags - note that only the RSS tag works now.) |
(removed rss tag description until fixed) |
||
(8 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
Displaying a feed in Appropedia can be accomplished with a | Displaying a feed in Appropedia can be accomplished <!--in two ways: | ||
* with RSS tags, which gives a bold header and links to each post, or | |||
*--> with a widget, which gives a header in regular font, links to post, and an extract | |||
== Using | {{TOCright}} | ||
<!--== Using RSS tags == | |||
Simplest example, showing all available posts: | |||
Simplest example: | |||
<pre> | <pre> | ||
<rss>http://blogs.appropedia.org/feed/</rss> | <rss>http://blogs.appropedia.org/feed/</rss> | ||
</pre> | </pre> | ||
Displays as: | |||
<rss>http://blogs.appropedia.org/feed/</rss> | <rss>http://blogs.appropedia.org/feed/</rss> | ||
And with a set number of posts: | |||
<pre> | |||
<rss number=3>http://blogs.appropedia.org/feed/</rss> | |||
</pre> | |||
<rss number=3>http://blogs.appropedia.org/feed/</rss> | |||
Depending on the format of the blog, there may be a header & byline displayed with the feed. (How do we control this?) E.g.: | |||
<pre> | <pre> | ||
<rss number=3>http://feeds.feedburner.com/afrigadget</rss> | <rss number=3>http://feeds.feedburner.com/afrigadget</rss> | ||
</pre> | </pre> | ||
Displays as: | |||
<rss number=3>http://feeds.feedburner.com/afrigadget</rss> | <rss number=3>http://feeds.feedburner.com/afrigadget</rss> | ||
===RSS tag options=== | ===More RSS tag options=== | ||
You can add more than one feed in a single ''<nowiki><rss></nowiki>'' tag to have them display in columns. Do so by adding "|" between the feed urls. Thus, ''<nowiki><rss>firsturl|secondurl|thirdurl</rss></nowiki>'' will create a reader with 3 columns, displaying items from all 3 feeds. Inside the ''<nowiki><rss></nowiki>'' tag you can include optional settings, which are detailed below: | You can add more than one feed in a single ''<nowiki><rss></nowiki>'' tag to have them display in columns. Do so by adding "|" between the feed urls. Thus, ''<nowiki><rss>firsturl|secondurl|thirdurl</rss></nowiki>'' will create a reader with 3 columns, displaying items from all 3 feeds. Inside the ''<nowiki><rss></nowiki>'' tag you can include optional settings, which are detailed below: | ||
Line 33: | Line 45: | ||
:Hides the title (and description in <code>desc=off</code> of the feed. | :Hides the title (and description in <code>desc=off</code> of the feed. | ||
==Bugs== | == Usage notes == | ||
* No line breaks between tags. | |||
* Atom feeds don't work. | |||
* RSS 1.0 & RSS 2.0 seem to display exactly the same. | |||
=== Bugs === | |||
E.g. 1 - the following code: | E.g. 1 - the following code: | ||
<pre> | <pre> | ||
Line 41: | Line 59: | ||
<rss number=5>http://www.appropedia.org/index.php?title=Special:Recentchanges&feed=rss</rss> | <rss number=5>http://www.appropedia.org/index.php?title=Special:Recentchanges&feed=rss</rss> | ||
The feed works elsewhere, so it's not clear why it breaks here. | The feed works elsewhere, so it's not clear why it breaks here. It is reported [http://www.mediawiki.org/wiki/Extension_talk:RSS_Reader#Error:_It.27s_not_possible_to_get_http:.2F.2Fwww._... here] but with no solution yet. | ||
==See also== | ==See also== | ||
*See http://www.mediawiki.org/wiki/Extension:RSS_Reader#The_.3Crss.3E_tag for the most up to date information on reading RSS feeds. | *See http://www.mediawiki.org/wiki/Extension:RSS_Reader#The_.3Crss.3E_tag for the most up to date information on reading RSS feeds. | ||
--> | |||
== Using a "widget" == | |||
<!-- Replace this comment here if the widget breaks again: | |||
'''BROKEN''' - use the RSS tag instead. | '''BROKEN''' - use the RSS tag instead. | ||
This method appears to be broken - no output is given. The code ([[Widget:Feed]]) relies on an [http://feed2js.org/ external service] which is possibly not working the same way now. | This method appears to be broken - no output is given. The code ([[Widget:Feed]]) relies on an [http://feed2js.org/ external service] which is possibly not working the same way now. | ||
--> | |||
:''See also [[ | :''See also [[Widget:Feed]].'' | ||
E.g.: | E.g.: | ||
Line 64: | Line 82: | ||
|chan=y | |chan=y | ||
|num=3 | |num=3 | ||
|desc= | |desc=200 | ||
|date=n | |date=n | ||
|targ=y | |targ=y | ||
Line 76: | Line 94: | ||
|chan=y | |chan=y | ||
|num=3 | |num=3 | ||
|desc= | |desc=200 | ||
|date=n | |date=n | ||
|targ=y | |targ=y | ||
}} | }} | ||
=== Notes === | |||
<!--Changing targ=y to targ=n doesn't seem to do anything. Yes, it does, "y" opens new tab.--> | |||
Setting date=y adds a line with the date (can't limit it though - gives too much detail, down to the minute.) | |||
[[Category:Appropedia help|{{PAGENAME}}]] | [[Category:Appropedia help|{{PAGENAME}}]] |
Revision as of 15:56, 8 March 2013
Displaying a feed in Appropedia can be accomplished with a widget, which gives a header in regular font, links to post, and an extract
Using a "widget"
- See also Widget:Feed.
E.g.:
{{#widget:Feed |feedurl=http://blogs.appropedia.org/feed/ |chan=y |num=3 |desc=200 |date=n |targ=y }}
Creates:
Notes
Setting date=y adds a line with the date (can't limit it though - gives too much detail, down to the minute.)