Fandom Developers Wiki
mNo edit summary
({{LangSelect}})
(5 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{Languages}}
+
<noinclude>{{LangSelect}}</noinclude><includeonly>{{Languages}}
 
{{Infobox JavaScript
 
{{Infobox JavaScript
 
| Image file = Script_discussions_feed.png
 
| Image file = Script_discussions_feed.png
| Description = Adds a special page that lists all recent discussions posts.
+
| Description = {{{description|Adds a special page that lists all recent discussions posts.}}}
 
| Scope = ps
 
| Scope = ps
 
| Author = [[User:Flightmare|Flightmare]]
 
| Author = [[User:Flightmare|Flightmare]]
Line 8: Line 8:
 
| Code = [[MediaWiki:DiscussionsFeed.js|DiscussionsFeed.js]]
 
| Code = [[MediaWiki:DiscussionsFeed.js|DiscussionsFeed.js]]
 
| Examples = [[w:c:elderscrolls:Special:DiscussionsFeed|The Elder Scrolls Wiki]]
 
| Examples = [[w:c:elderscrolls:Special:DiscussionsFeed|The Elder Scrolls Wiki]]
  +
| Type = discussions
  +
| Languages = {{l|en}}
 
}}
 
}}
'''Discussions Feed''' adds a [[Special:RecentChanges]]-like flat view of recent posts on wikis with discussions enabled. It creates a special page that can be accessed at '''Special:DiscussionsFeed'''. Entries provide links to their corresponding posts in the discussions-module, as well as links to the user profiles and quick blocks if the viewer has blocking rights. The list is updated every two minutes.
+
{{{intro|'''Discussions Feed''' adds a [[Special:RecentChanges]]-like flat view of recent posts on wikis with discussions enabled. It creates a special page that can be accessed at '''Special:DiscussionsFeed'''. Entries provide links to their corresponding posts in the discussions-module, as well as links to the user profiles and quick blocks if the viewer has blocking rights. The list is updated every two minutes.}}}
   
  +
== {{i18n|getMsg|Documentation|installation}} ==
== Installation ==
 
{{Script Install
+
{{Script Install}}
| codepage = DiscussionsFeed.js
 
}}
 
   
=== Theme (optional) ===
+
=== {{{theme|Theme (optional)}}} ===
Installing the theme is optional, by default the special page will use the theme as defined on the host wiki. Adding a theme will make the special page a bit easier to read.
+
{{{themeInfo|Installing the theme is optional, by default the special page will use the theme as defined on the host wiki. Adding a theme will make the special page a bit easier to read.
   
 
It is not recommended to apply one of themes to your global CSS as you will encounter wikis with both light and dark skins. To install this theme on your wiki just add the following @import line to your wiki's [[MediaWiki:Common.css]] (Note that all imports go at the very top of the page). The themes will only enhance the theme of the host wiki, it will not override it. This means that installing the light theme on a dark wiki or vice versa will result in a page that is very hard to read.
 
It is not recommended to apply one of themes to your global CSS as you will encounter wikis with both light and dark skins. To install this theme on your wiki just add the following @import line to your wiki's [[MediaWiki:Common.css]] (Note that all imports go at the very top of the page). The themes will only enhance the theme of the host wiki, it will not override it. This means that installing the light theme on a dark wiki or vice versa will result in a page that is very hard to read.
Line 30: Line 30:
 
| Name = DiscussionsFeed/style-dark
 
| Name = DiscussionsFeed/style-dark
 
}}
 
}}
 
}}}
 
== Styling ==
+
== {{{styling|Styling}}} ==
Each entry has its own paragraph you can style. Text elements inside this paragraph all have their own classes for styling:
+
{{{stylingInfo|Each entry has its own paragraph you can style. Text elements inside this paragraph all have their own classes for styling:
 
*<code>df-entry</code> A line in the feed.
 
*<code>df-entry</code> A line in the feed.
 
*<code>df-date</code> The time-stamp of the post.
 
*<code>df-date</code> The time-stamp of the post.
Line 71: Line 71:
 
text-decoration: none;
 
text-decoration: none;
 
}</source>
 
}</source>
  +
}}}
 
 
== Changelog ==
 
== Changelog ==
 
{| class="wikitable" style="text-align:center; width:100%; margin:auto;"
 
{| class="wikitable" style="text-align:center; width:100%; margin:auto;"
Line 83: Line 83:
 
| November 28th, 2016 || Added auto refreshing || [[User:Flightmare|Flightmare]]
 
| November 28th, 2016 || Added auto refreshing || [[User:Flightmare|Flightmare]]
 
|}
 
|}
  +
</includeonly>
 
[[Category:Discussions Scripts]]
 

Revision as of 14:41, 15 March 2020

Discussions Feed adds a Special:RecentChanges-like flat view of recent posts on wikis with discussions enabled. It creates a special page that can be accessed at Special:DiscussionsFeed. Entries provide links to their corresponding posts in the discussions-module, as well as links to the user profiles and quick blocks if the viewer has blocking rights. The list is updated every two minutes.

Installation

Theme (optional)

Installing the theme is optional, by default the special page will use the theme as defined on the host wiki. Adding a theme will make the special page a bit easier to read.

It is not recommended to apply one of themes to your global CSS as you will encounter wikis with both light and dark skins. To install this theme on your wiki just add the following @import line to your wiki's MediaWiki:Common.css (Note that all imports go at the very top of the page). The themes will only enhance the theme of the host wiki, it will not override it. This means that installing the light theme on a dark wiki or vice versa will result in a page that is very hard to read.

Light theme: (example)

Dark theme: (example)

Styling

Each entry has its own paragraph you can style. Text elements inside this paragraph all have their own classes for styling:

  • df-entry A line in the feed.
  • df-date The time-stamp of the post.
  • df-content The plain text content of the post.
  • df-user The user that posted the message.
  • df-category The category the post is in.
  • df-block A link to the Special:Block (only visible to viewers with blocking-rights).


CSS example for a wiki with dark theme:

/* Theme for Special:DiscussionsFeed */
.df-content {
    font-weight: bold;
    color: LightGrey;
}
 
.df-user {
    color: LightSkyBlue;
}
 
.df-date {
    color: LightGrey;
}
 
.df-entry:hover {
    background-color: rgba(255,255,255,0.1);
}
 
.df-category {
    font-style: italic;
}
 
.df-block {
    color: firebrick;
}
 
.df-content:link, df-content:visited, .df-user:link, df-link:visited, .df-block:link, df-block:visited {
    text-decoration: none;
}

Changelog

Date Notes Updated by
October 10th, 2016 Created Flightmare
October 13th, 2016 Improved error throwing Flightmare
November 28th, 2016 Added auto refreshing Flightmare
Text above can be found here (edit)