Help:Adding RSS Feeds
From P2P Foundation
The following is a template for inserting a delicious feed into an article on this wiki. The feed will display the 5 most recent items from the feed. The default values are offered to encourage a useful conformity on the site, and to help users to navigate to related content.
Please do not abuse this functionality. The functionality requires a bit of a server load for every view, and it is important that this functionality compliment normal viewing activities on the site instead of disrupting them.
Caution/Fair Warning: This feature does not work with some (php generated) feeds. If the script does not work and your page loads very slowly check to make sure you have copied/pasted fully, that you have only substituted what was necessary, and that all the needed fields are still present. This feature uses the Simple Feed extension and it doesn't always work. Your mileage may vary.
In order to use this feature please cope the following code into your article.
<!-- Comment - Replace the Delicious User Page, Author Bio Page, and the P2P Foundation Wiki URL -->
<!-- Also replace the value after feedurl with the link to the rss feed you want to display -->
====Recent Links from [Delicious User Page Delicious] by [[Author Bio Page]] on [[:Category:P2P Foundation Wiki Category | P2P Foundation Wiki Category]] ====
<feed url="http://feeds.delicious.com/v2/rss/delicious-username/Tag?count=5">
<div id="deliciousfeeditem">'''{DATE} [{PERMALINK} {TITLE}] by {AUTHOR}'''
{DESCRIPTION}</div>
</feed>
The following is an example of a working implementation as an example of the substitutions that must be carried out:
====Recent Links from [http://delicious.com/alexrollin/p2p Delicious] by [[Alex Rollin]] on [[:Category:Peer Production | Peer Production]] ====
<feed url="http://feeds.delicious.com/v2/rss/alexrollin/p2p?count=15">
<div id="deliciousfeeditem">'''{DATE} [{PERMALINK} {TITLE}] by {AUTHOR}'''
{DESCRIPTION}</div>
</feed>
This is the working example of the code above:
Recent Links from Delicious by Alex Rollin on Peer Production
A note about styling
If you examine the above code you can see there is a line:
<div id="deliciousfeeditem">
You can choose from the following options in order to change the style of the feed items that show on your page.
- Change the word "deliciousfeeditem" to a random string like ib23r20 and the styling will disappear
- Use the word "blogfeeditem" and a different style will be used
- If you are feeling brave you can remove the div altogether by removing the first and second occurrence, including the ">" and "<" and "/" characters as well as all other text between them. If you make a mistake you can always refer back here for more information.