FANDOM


The Discussions API is not officially supported. The API may change at any moment, resulting in the script breaking.

DiscussionsRC is a Special:RecentChanges-like view of the recent posts and replies on wikis with Discussions enabled. It is an alternative to DiscussionsFeed, with the following features:

  • View posts and replies without leaving the page
  • Colored squares differentiating between posts and replies, and replies show the original post title
  • Limited support for multiple wikis in one feed
  • Posts are split per day under headings

Installation

Usage

DiscussionsRC loads automatically at Special:DiscussionsRC on wikis with Discussions enabled.

To place the Discussions feed on a page, insert:

<div id="discrc" data-wiki="wikiname"></div>

into its source, where wikiname is the part of the URL before .wikia.com (for clashofclans.wikia.com it would be clashofclans). If you want to view multiple Discussions feeds on a single page, you can add multiple wiki subdomains into the data-wiki attribute, for example:

<div id="discrc" data-wiki="dev,community,discussions"></div>

To do

Feel free to work on these if you want!

  • 'High' priority
    • Show image/poll information in the summary (different coloured boxes)
    • Show images and polls in preview (the popup)
    • If posts or comments are deleted, highlight them as deleted
    • Have a reported content interface or filter
  • 'Medium' priority
    • Show formatting in posts (bold, links, mentions)
    • Show a wikimark instead of the server name in /multi
    • Show user posts in the preview instead of redirecting to /u/xxxxx
    • Use loading circle when the summary is popping up
    • Load more button at the bottom, to load more than 100 entries
    • i18n
  • 'Low' priority
    • Implement upvoting and replying within the preview
    • Auto refresh
Text above can be found here (edit)
Community content is available under CC-BY-SA unless otherwise noted.

Fandom may earn an affiliate commission on sales made from links on this page.

Stream the best stories.

Fandom may earn an affiliate commission on sales made from links on this page.

Get Disney+