Community Central
Community Central
Line 85: Line 85:
 
<rss>https://news.google.com/news/rss/sfy/section/q/Disneyland+Star+Wars/Disneyland+Star+Wars?hl=en|charset=UTF-8|short|date|max=3</rss>
 
<rss>https://news.google.com/news/rss/sfy/section/q/Disneyland+Star+Wars/Disneyland+Star+Wars?hl=en|charset=UTF-8|short|date|max=3</rss>
   
=== Other languages ===
+
=== Google feeds in other languages ===
 
This same base code is adaptable to other languages, using [https://sites.google.com/site/tomihasa/google-language-codes Google's language codes]. Often, but not always, those language codes are the same as [[Help:Language code|FANDOM's language codes]].
 
This same base code is adaptable to other languages, using [https://sites.google.com/site/tomihasa/google-language-codes Google's language codes]. Often, but not always, those language codes are the same as [[Help:Language code|FANDOM's language codes]].
   
For instance, the feed can be in French by altering the last bit of the URL to be <code>?hl=fr</code>. However, this changes the context of the feed to emphasise Disneyland Paris over the original Disneyland in California.
+
For instance, we'd make the feed French by altering the last bit of the URL to be <code>?hl=fr</code>. However, this changes the context of the feed to emphasize Disneyland Paris over the original Disneyland in California.
   
 
<rss>https://news.google.com/news/rss/sfy/section/q/Disneyland+Star+Wars/Disneyland+Star+Wars?hl=fr|charset=UTF-8|short|date|max=3</rss>
 
<rss>https://news.google.com/news/rss/sfy/section/q/Disneyland+Star+Wars/Disneyland+Star+Wars?hl=fr|charset=UTF-8|short|date|max=3</rss>
Line 97: Line 97:
   
 
<rss>https://news.google.com/news/rss/sfy/section/q/Star+Wars/Star+Wars?hl=es-419|charset=UTF-8|short|date|max=3</rss>
 
<rss>https://news.google.com/news/rss/sfy/section/q/Star+Wars/Star+Wars?hl=es-419|charset=UTF-8|short|date|max=3</rss>
  +
  +
Obviously, if you're looking for non-EN equivalents to feeds, you may have to tweak the RSS statement a bit.
  +
=== Google feeds can be different for different users ===
  +
It's possible, though generally unlikely, that you'll see one thing on a Google feed, but your friend will see another. Google's newsfeeds are in some ways:
  +
* personalized to the browser and servers that you're using
  +
* defined by the settings in your Google account, if you're signed in while viewing a feed
   
 
==Can I embed feeds from my own wiki?==
 
==Can I embed feeds from my own wiki?==

Revision as of 07:08, 1 November 2018

This extension is enabled by default on Fandom.

The RSS extension allows you to embed RSS feeds from any site onto a page. This could be used to display news feeds with timely information on your subject, to show entries from a related blog, or to show recent changes from another wiki.

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

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

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

<rss>URL goes here</rss>

How can I customize the feed?

There are a number of parameters you can add after the URL for the RSS feed to customize the display output. Each is separated by a pipe ("|"), like this:

<rss>https://wherever.com|short|date|max=4</rss>

Though no parameters are usually required, you can mix and match from the following list as you wish. That said, some feeds do need the charset=UTF-8 parameter. Try adding it if your feed displays oddly — or not at all.

Parameter Result
short Shows only the headline for each news item, not the description text.
date Shows the date/time stamp for each news item
max=x Allows you to choose the maximum number of items to show.
highlight=term1 term2 The terms added here (separated by a space) are highlighted.
filter=term1 term2 Only RSS items containing at least one of the listed terms are shown.
filterout=term1 term2 No RSS items containing the listed terms are shown.
reverse The RSS items are displayed in reverse order
charset= The charset used by the feed. For example, you may need to use UTF-8 to view some characters.

Example

To add some World Cup headlines direct from FIFA, you might use:

<div class="toc" style="width:80%; margin:auto;">
'''Keep up with the Cup:'''

<rss>https://www.fifa.com/worldcup/news/rss.xml|output=rss|charset=UTF-8|short|date|max=3</rss>
</div>

This would give you:

Keep up with the Cup:


Google feeds

Clearly, one of the biggest news aggregators on the web is Google. Many wikis use Google feeds of one kind or another. Unfortunately, Google has made several changes to their news services over the years, and some wikis may not be displaying broken feeds as a result.

If your wiki's Google feed begins with "This feed is deprecated", you'll need to make a change.

The easiest thing to do is to copy and paste the following to your wiki, and change My+Topic+Here — both times — to whatever you need it to be:

<rss>https://news.google.com/news/rss/sfy/section/q/My+Topic+Here/My+Topic+Here?hl=en|charset=UTF-8|short|date|max=3</rss>

For instance, let's say I wanted to get a newsfeed about Star Wars at Disneyland. I'd use this:

<rss>https://news.google.com/news/rss/sfy/section/q/Disneyland+Star+Wars/Disneyland+Star+Wars?hl=en|charset=UTF-8|short|date|max=3</rss>

The result would be:

Darth Vader's Inquisitors Have Become Disney's Most Important Addition To Star Wars Canon - & They're Only Going ... - Screen Rant - - 2024/04/18 19:00

Darth Vader's Inquisitors Have Become Disney's Most Important Addition To Star Wars Canon - & They're Only Going ...  Screen Rant...

Former Disney boss launches Web3 game publisher with Marvel, Star Wars talent - Cointelegraph - - 2024/04/18 17:13

Former Disney boss launches Web3 game publisher with Marvel, Star Wars talent  Cointelegraph...

TruMoo's 'Star Wars' Blue Milk Vs. Disney's: Which One's Better? - Elite Daily - - 2024/04/18 16:48

TruMoo's 'Star Wars' Blue Milk Vs. Disney's: Which One's Better?  Elite Daily...

Star Wars: The Bad Batch season 3 release schedule: when does episode 14 air on Disney Plus? - Gamesradar - - 2024/04/18 09:16

Star Wars: The Bad Batch season 3 release schedule: when does episode 14 air on Disney Plus?  Gamesradar...

R-Rated Disneyland: Guests Disgusted by Theme Park Performance - Inside the Magic - Inside the Magic - - 2024/04/18 01:59

R-Rated Disneyland: Guests Disgusted by Theme Park Performance - Inside the Magic  Inside the Magic...

Google feeds in other languages

This same base code is adaptable to other languages, using Google's language codes. Often, but not always, those language codes are the same as FANDOM's language codes.

For instance, we'd make the feed French by altering the last bit of the URL to be ?hl=fr. However, this changes the context of the feed to emphasize Disneyland Paris over the original Disneyland in California.

Darth Vader's Inquisitors Have Become Disney's Most Important Addition To Star Wars Canon - & They're Only Going ... - Screen Rant - - 2024/04/18 19:00

Darth Vader's Inquisitors Have Become Disney's Most Important Addition To Star Wars Canon - & They're Only Going ...  Screen Rant...

Former Disney boss launches Web3 game publisher with Marvel, Star Wars talent - Cointelegraph - - 2024/04/18 17:13

Former Disney boss launches Web3 game publisher with Marvel, Star Wars talent  Cointelegraph...

TruMoo's 'Star Wars' Blue Milk Vs. Disney's: Which One's Better? - Elite Daily - - 2024/04/18 16:48

TruMoo's 'Star Wars' Blue Milk Vs. Disney's: Which One's Better?  Elite Daily...

Star Wars: The Bad Batch season 3 release schedule: when does episode 14 air on Disney Plus? - Gamesradar - - 2024/04/18 09:16

Star Wars: The Bad Batch season 3 release schedule: when does episode 14 air on Disney Plus?  Gamesradar...

R-Rated Disneyland: Guests Disgusted by Theme Park Performance - Inside the Magic - Inside the Magic - - 2024/04/18 01:59

R-Rated Disneyland: Guests Disgusted by Theme Park Performance - Inside the Magic  Inside the Magic...

Not every feed is available in all languages. For instance, using ?hl=es (or ?hl=es-419 — the specific code for Latin American Spanish) doesn't work with the "Disneyland Star Wars" newsfeed.

But if you look for just a simple "Star Wars" feed, it will at least work with Latin American Spanish.

Charleston Airshow highlights vintage B-29 plane that inspired Star Wars design - Fox28 Savannah - - 2024/04/19 13:28

Charleston Airshow highlights vintage B-29 plane that inspired Star Wars design  Fox28 Savannah...

Sci-Fi Showdown at Space Symposium: Complete transcript of the Star Trek vs Star Wars debate - SpaceNews - - 2024/04/19 13:09

Sci-Fi Showdown at Space Symposium: Complete transcript of the Star Trek vs Star Wars debate  SpaceNews...

'The Acolyte': David Harewood Joins the Cast In Small Role - Star Wars News Net - - 2024/04/19 12:57

'The Acolyte': David Harewood Joins the Cast In Small Role  Star Wars News Net...

A Peek At My 'Star Wars' Wishlist For May The 4th - Junkee - - 2024/04/19 12:29

A Peek At My 'Star Wars' Wishlist For May The 4th  Junkee...

12 Harsh Realities Of Rewatching The Mandalorian Season 3, 1 Year Later - Screen Rant - - 2024/04/19 12:00

12 Harsh Realities Of Rewatching The Mandalorian Season 3, 1 Year Later  Screen Rant...

Obviously, if you're looking for non-EN equivalents to feeds, you may have to tweak the RSS statement a bit.

Google feeds can be different for different users

It's possible, though generally unlikely, that you'll see one thing on a Google feed, but your friend will see another. Google's newsfeeds are in some ways:

  • personalized to the browser and servers that you're using
  • defined by the settings in your Google account, if you're signed in while viewing a feed

Can I embed feeds from my own wiki?

Yes, MediaWiki provides feeds in both RSS and Atom formats for all history pages and many special pages, including Special:RecentChanges, Special:NewPages, and Special:WantedPages.

You can use the RSS URL, in combination with this extension, to display portions of these lists on other pages on your community. See Help:Feeds for more information.

See also

Further help and feedback