(Remove notice template. It's already on infobox.)
Tag: Help
Line 4: Line 4:
 
| author = {{*}}Alexia E. Smith and Hydra Wiki Platform Team
 
| author = {{*}}Alexia E. Smith and Hydra Wiki Platform Team
 
| link = [https://gitlab.com/hydrawiki/extensions/rsspie GitLab]
 
| link = [https://gitlab.com/hydrawiki/extensions/rsspie GitLab]
| desc =
+
| desc = {{int:rsspie_description}}
RSS extension based on the SimplePie library.
 
 
| default =yes
 
| default =yes
 
}}
 
}}

Revision as of 09:00, 6 May 2021

RSS is a type of web feed that allows you to embed a list of content that is automatically updated when you refresh the page. RSS feeds can be used to track news articles, podcasts, blogs, or just about anything else published on the web.

You can embed RSS feeds on a wiki using the RSSPie extension, enabled by default on all Fandom wikis. This is useful to include news about a video game, episode announcements for a TV show, or even recent changes from the wiki itself.

How do I add an RSS feed to a wiki page?

Locate the URL for the RSS feed you would like to include, usually by clicking an "RSS" button or link on the page providing the feed and copying the URL from the address bar.

The basic code to add an RSS feed to a page is as follows:

<rss>URL goes here</rss>

How can I customize the feed?

There are a number of optional parameters you can add within the <rss> tag to customize the output:

Attribute and Default Description
itemTemplate="PageName"
Default: MediaWiki:Rss_item_template
Defines the display template for each item in the feed. PageName must be a complete page name including the namespace. See § Feed item template for more information.
max="X"
Default: 5
Shows only a certain number of items in the feed.
sort="X"
Default: newest
Sorts the feed items by "newest" or "oldest".
descriptionLength="X"
Default: 200
Truncates long descriptions to a certain number of characters.
dateFormat="X"
Default: Y/m/d H:i
Formats the date of each entry using PHP date formatting guidelines.
filterIn="example,words"
Default: empty
A list of words, separated by commas, to filter into the display. Feed items will only be shown if they contain any of these words.
filterOut="example,words"
Default: empty
A list of words, separated by commas, to filter out of the display. Feed items will be hidden if they contain any of these words. Feed items hidden by filterOut will stay hidden even if they match filterIn.

Feed item template

For advanced users, you can use the itemTemplate parameter to modify how each item is displayed in the feed. This is useful for situations where you may need to hide certain fields or rearrange them for an optimal display.

The itemTemplate parameter must point to a page that contains the template, which will substitute the following fields with the related data:

  • {{{link}}} - the URL to the feed item
  • {{{title}}} - the feed item's title
  • {{{author}}} - the author of the feed item
  • {{{date}}} - the feed item's date
  • {{{description}}} - the feed item's description

The default template, located at MediaWiki:Rss_item_template, is as follows:

<div class='rss_item'>
'''<span class='plainlinks'>[{{{link}}} {{{title}}}]</span> - {{{author}}} - <span class='date_epoch'>{{{date}}}</span>'''
: {{{description}}}
</div>

How can I embed a Google news feed?

This is an example of setting up an English Google RSS feed for Call of Duty news.

Google provides an easy way to create an RSS feed on its Alerts page. Simply type in the search terms for your subject and, under "Deliver to", select "RSS feed". You may need to log in to a Google account and change "How often" to "As-it-happens" to see the RSS feed option. Once you create the feed, right-click the RSS icon and select "Copy Link" to copy the link to the feed to use it on your wiki.

For example, creating an English Google RSS feed for Call of Duty news and including it on a wiki would result in the following:

<rss max="3">https://www.google.com/alerts/feeds/02664616218399659428/5058949282015925287</rss>

Michael Vlaicu aka Starbeast Holds The Crown On Call of Duty Mobile Game - - 2021/06/12 12:56

When the mobile video game, Call of Duty, was launched by TiMi Studios for Android and iOS version in October 2019, it was one of the biggest ......

Satellites will crash into Verdansk in Call of Duty Warzone Season 4 - - 2021/06/12 11:02

Change is coming to Verdansk as season 4 of Call of Duty: Warzone launches on June 17 and some of it involves satellites from outer space....

Enable puts LA Thieves' struggles down to players “slumping” at crucial time - - 2021/06/12 11:00

The excitement generated from 100 Thieves' acquisition of a Call of Duty League spot looks disproportionate in comparison to the waves they've ......

Can I embed RSS feeds from my own wiki?

Yes, feeds are available in both RSS and Atom formats for all page histories and many special pages, including Special:RecentChanges, Special:NewPages, and Special:WantedPages. To access these feeds, see Help:Feeds for more information.

For example, showing a feed of new help pages created on Community Central would result in the following:

<rss max="3">https://community.fandom.com/wiki/Special:NewPages?feed=rss&namespace=12</rss>

Help:Remix - Jeffersonkendric - 2021/06/04 13:46

Tupka217: {{Delete}}...

Help:Is there a way to revert the new wiki design after opting in? - Starfox u - 2021/06/02 01:58

Sakuranyature: {{Forumheader/Support Requests}} I personally do not really like the new design change and accidently clicked opt in for the wiki I run https://censorship.wikia.org/ is there a way to...

Help:FandomDesktop preparation guide - MisterWoodhouse - 2021/05/19 15:24

Game widow: /* CSS variables available for Portable Infobox customization */ Admins, you should definitely check out the [[w:User blog:MisterWoodhouse/A Deeper Look at Theme Designer on FandomDesktop|...

Further help and feedback

Community content is available under CC-BY-SA unless otherwise noted.