Extension:WikiArticleFeeds

Pactrick is lit!!!!!!!!!!!!!111 articles generating RSS and Atom feeds. The extension is compatible with Extension:RSS, which renders ("displays") RSS feeds on MediaWiki page. GO TO SCHOOL KIDSSSSSSSSSSSSSSSSSSSSSSS!

Configuration (optional)
If you'd like to disable the default link interpretation behavior (see the example), you can do so by adding this to your LocalSettings.php:

Usage
Once installed, editors of your wiki may begin feeding pages immediately, no further system configuration is required.

The extension registers three tags:
 * (Required) - Denotes the beginning of an article segment containing feed data.
 * (Required) - Denotes the end of a feed data segment.
 * (Optional) - Specifies that FeedBurner is to serve the feed, rather than publishing it directly.

If an article contains a feed section, links titled 'RSS' and 'Atom' will appear in the Toolbox. Additionally, because the appropriate  tags are supplied, your browser may show a feed icon in the address bar.

Note: In the Monobook skin, the Toolbox is in the left-hand sidebar column, towards the bottom.

As mentioned before, a feed section is delimited by the  and   flags. Note that these are closed tags, and are functionally equivalent to  and   respectively.

The  tag, when specified, must have a single attribute called 'name'. This is the final URL component of the feedburner.com feed URL.

For example, consider this url: http://jimbojw.com/wiki/index.php?title=Blog

The Atom feed URL for this page would be: http://jimbojw.com/wiki/index.php?title=Blog&action=feed

Suppose this has been mapped via feedburner.com to: http://feeds.feedburner.com/Jimbojwcom-Blog

And thus, the following is added to the original article text to complete the circle: 

Note that using FeedBurner in this fashion does not prevent users from still trying to access the generated feeds directly, but it does change all the links to point to feedburner rather than back to the wiki.

Example
 Description of my feed.

Second Feed Item
Brand New! I just made a new item! --Anon 10:12, 8 December 2006 (MST)

First Feed Item
Here is the content for my first item ever. --Anon 08:42, 4 December 2006 (MST) 

The description for the rendered RSS or Atom feed will be "Description of my feed." The feed will have two items, both authored by " ".

Feed item publication dates are determined automatically from wiki signatures with or without talk page link and determine the feed item sorting sequence when it is generated: usually descending dates, but this can be reversed.

The generated feed item URLs are links to the matching page section title, unless a link is found in the feed item text. In the above, the "First Feed Item" links to the section " ", while the "Second Feed Item" links to " ". This behaviour can be changed per wiki see below.

Tagging and Filtering
As of version 0.6, WikiArticleFeeds supports tagging by way of either the  tag or   parser function.

To tag a feed item, insert either the  tag, or the a call to the   parser function somewhere between the opening header of the item  and the header of the next item.

For example, to mark an item about dogs and cats, you could do any of the following: dogs, cats

Tagging an item does nothing to the finished page itself other than add an HTML comment indicating the tag. Also, it will not affect the feed directly as this does not inject real actual RSS or Atom categories.

However, once you've tagged items, you can filter a feed by the item tags. For example consider the following URL: http://jimbojw.com/wiki/index.php?title=Blog&action=feed

This will generate a feed from the page called Blog, containing all items therein. Now consider this variant: http://jimbojw.com/wiki/index.php?title=Blog&action=feed&tags=mediawiki

This will also generate a feed, but it will only contain items which have been tagged as 'mediawiki' articles.

Extended Example
For an article to be considered a feed, it must have at least one feed section.

To delimit a section use the  and   tags respectively. These tags are merely flags, and any attributes specified, or content inside the tags themselves will be ignored.

Mixed Level Headings
Having a mix of level headings is ok, but only the sections highest level heading (lowest number) will be considered feed items: &lt;startFeed /&gt;

More Rain
Nope. Today it was rainy, again. Blah.

This is not a new Item
This text and the preceding heading both belong to the "More Rain" item.

Not Sunny Today
Not quite rainy, just foggy, maybe it'll get better? &lt;endFeed /&gt;

Attribution
A single instance of the default signature gives credit to the author of an item: " " when you edit the MediaWiki page and when the feed is rendered. WikiArticleFeeds is smart enough to detect it as a declaration of the Author and Date.

Although attribution is not required, you are strongly recommended to follow this convention. Externally, it aids the reader of the feed by providing more meta-data about the item. Internally, it permits aggregation to operate more smoothly (see next section).

Aggregation
WikiArticleFeeds can combine or aggregate feeds. For example, consider the following wiki markup: &lt;startFeed /&gt;

More Rain
Nope. Today it was rainy, again. Blah. --Anon 08:42, 4 December 2006 (MST) &lt;endFeed /&gt;

...

&lt;startFeed /&gt;

Not Sunny Today
Not quite rainy, just foggy, maybe it'll get better? --Anon 09:56, 3 December 2006 (MST) &lt;endFeed /&gt;

When this page is converted into a single feed, both the "Not Sunny Today" and "More Rain" items will appear, in reverse chronological order (newest first) and permits the pulling together of feeds on separate pages via MediaWiki Template notation (also sometimes referred to as Transclusion).

For example, consider the following three articles:

&lt;startFeed /&gt;
 * Rainy Feed

More Rain
Nope. Today it was rainy, again. Blah. --Anon 08:42, 4 December 2006 (MST)

Not Sunny Today
Not quite rainy, just foggy, maybe it'll get better? --Anon 09:56, 3 December 2006 (MST) &lt;endFeed /&gt;

&lt;startFeed /&gt;
 * Sunshiny Feed

More Sunshiny
Just another beautiful day. --Anon 06:37, 18 August 2006 (MST)

Hoping for more Sun
Hope it's nice out tomorrow, too cloudy today ... --Anon 10:08, 14 August 2006 (MST) &lt;endFeed /&gt;


 * Aggregate Feed

Rainy Feed
Contents of the Rainy Feed:

Sunshiny Feed
Contents of the Sunshiny Feed ==

Rendering the article "Aggregate Feed" as a feed will result in a combination of all items in both "Rainy Feed" and "Sunshiny Feed".

Automatic Linking
There are two options for automatically creating the feed's link URL. First, if there are no URLs, or the only URLs in the feed text itself are part of the attribution, then the feed URL will be simply a link to the item in the page.

So for example, in this feed the feed item URL

Some Item
Some blog text. --Anon 10:08, 14 August 2006 (MST) will become a link to.

The other method of auto-linking is based on non-attribution links, wherein the first non-attribution link found in the feed text becomes the feed item URL as in

Some Item
Checkout my new Main Page - it's great, and check also the Announcements). --Anon 10:08, 14 August 2006 (MST) where the feed item URL will become link to.