Community Central
Community Central
No edit summary
(Replaced content with "YOU CANT HELP >:)")
Tags: Replaced Source edit Help
Line 1: Line 1:
  +
YOU CANT HELP >:)
{{Extension infobox
 
| name = RSSPie
 
| version = 2.1.0
 
| author = {{*}}Alexia E. Smith and Hydra Wiki Platform Team
 
| link = [https://gitlab.com/hydrawiki/extensions/rsspie GitLab]
 
| desc = {{int:rsspie_description}}
 
| default =yes
 
}}
 
{{TOCright}}
 
'''RSS''' is a type of [[Help:Feeds|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:
 
 
:'''<code><nowiki><rss>URL goes here</rss></nowiki></code>'''
 
 
== How can I customize the feed? ==
 
There are a number of optional parameters you can add within the <code><nowiki><rss></nowiki></code> tag to customize the output:
 
 
{| class="article-table"
 
|-
 
! Attribute and Default
 
! Description
 
|-
 
| <code>itemTemplate="''PageName''"</code><br>Default:&nbsp;[[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|§&nbsp;Feed item template]] for more information.
 
|-
 
| <code>max="''X''"</code><br>Default: 5
 
| Shows only a certain number of items in the feed.
 
|-
 
| <code>sort="''X''"</code><br>Default: newest
 
| Sorts the feed items by "newest" or "oldest".
 
|-
 
| <code>descriptionLength="''X''"</code><br>Default: 200
 
| Truncates long descriptions to a certain number of characters.
 
|-
 
| <code>dateFormat="''X''"</code><br>Default: <code>Y/m/d H:i</code>
 
| Formats the date of each entry using [http://www.php.net/manual/en/function.date.php PHP date formatting guidelines.]
 
|-
 
| <code>filterIn="example,words"</code><br>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.
 
|-
 
| <code>filterOut="example,words"</code><br>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 <code>filterOut</code> will stay hidden even if they match <code>filterIn</code>.
 
|}
 
 
=== Feed item template ===
 
'''For advanced users''', you can use the <code>itemTemplate</code> 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 <code>itemTemplate</code> parameter must point to a page that contains the template, which will substitute the following fields with the related data:
 
*<code><nowiki>{{{link}}}</nowiki></code> - the URL to the feed item
 
*<code><nowiki>{{{title}}}</nowiki></code> - the feed item's title
 
*<code><nowiki>{{{author}}}</nowiki></code> - the author of the feed item
 
*<code><nowiki>{{{date}}}</nowiki></code> - the feed item's date
 
*<code><nowiki>{{{description}}}</nowiki></code> - the feed item's description
 
 
The default template, located at [[MediaWiki:Rss_item_template]], is as follows:
 
<pre><nowiki>
 
<div class='rss_item'>
 
'''<span class='plainlinks'>[{{{link}}} {{{title}}}]</span> - {{{author}}} - <span class='date_epoch'>{{{date}}}</span>'''
 
: {{{description}}}
 
</div>
 
</nowiki></pre>
 
 
== How can I embed a Google news feed? ==
 
[[File:Google Alerts RSS Feed.png|thumb|300px|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 [https://www.google.com/alerts 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:
 
 
:'''<code><nowiki><rss max="3">https://www.google.com/alerts/feeds/02664616218399659428/5058949282015925287</rss></nowiki></code>'''
 
 
<rss max="3">https://www.google.com/alerts/feeds/02664616218399659428/5058949282015925287</rss>
 
 
== Can I embed RSS feeds from my own wiki? ==
 
Yes, feeds are available in both RSS and Atom formats for all [[Help:Page history|page histories]] and many [[Help:Special pages|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:
 
 
:'''<code><nowiki><rss max="3">https://community.fandom.com/wiki/Special:NewPages?feed=rss&namespace=12</rss></nowiki></code>
 
 
<rss max="3">https://community.fandom.com/wiki/Special:NewPages?feed=rss&namespace=12</rss>
 
 
== Further help and feedback ==
 
{{Help and feedback section}}
 
 
[[de:Hilfe:RSS-Feeds einbinden]]
 
[[es:Ayuda:RSS]]
 
[[fi:Ohje:RSS]]
 
[[fr:Aide:RSS]]
 
[[it:Aiuto:RSS]]
 
[[ja:ヘルプ:RSS]]
 
[[nl:Help:RSS2Wiki]]
 
[[pl:Pomoc:RSS]]
 
[[pt:Ajuda:RSS]]
 
[[ru:Справка:RSS]]
 
[[tr:Yardım:RSS]]
 
[[uk:Довідка:RSS]]
 
[[vi:Trợ giúp:RSS]]
 
[[zh:Help:RSS]]
 
[[Category:Help|RSS]]
 

Revision as of 11:48, 6 May 2021

YOU CANT HELP >:)