RailWAM is a script that adds a module to the right rail which displays the day's WAM score along with the difference between the current and yesterday's scores. It also includes an easy-open FAQ. As of July 14, 2017, Monobook is not supported, however, support for it is planned (see Planned Features).



  • automatically updates the WAM score module with the latest score,
  • displays the wiki's WAM score in the right rail,
  • allows you to log the WAM score once a day with the click of a link,
  • calculates the difference between today's and yesterday's scores,
  • opens a FAQ with one click on a link at the bottom of the module,
  • links to the official WAM page with the top 5,000 wikis' scores,
  • configuration options, including the ability to opt out

Site-wide Installation

To install the script site-wide, add this to your MediaWiki:ImportJS page:


(You must have custom JavaScript enabled on your wiki. If you don't, ask FANDOM Staff to enable it via Special:Contact.)

Then add this to MediaWiki:Common.js:

window.railWAM = {
    logPage:"Project:WAM Log"

Personal Installation

To install the script for personal use, add this to your global or personal JavaScript:

    type: 'script',
    articles: [
        // ...


Option List & Defaults

The following table lists all the options that can be configured, a description of each, their accepted values, and their default values.

Option Description Accepted Values Default
appendAfter Rail modules to append RailWAM after

Modules do not have to exist on all pages. RailWAM is appended to the module specified in this option that is furthest down the page, or below ads if no specified modules are found.

This can not be changed to place RailWAM before ads.

IDs or classes of rail modules in an array (e.g., ['#wikia-recent-activity','.chat-module'])

This must be an array even if only one module is specified.

logPage The name of the page RailWAM should log the scores to Page name as a string (i.e. surrounded in quotes) "User:(Your user name)/WAM Log"
load Whether or not to load RailWAM true, false true
loadOnPage The name(s) of the page(s) RailWAM should load on The name of one page as a string (e.g. "Example"),

the names of multiple pages as an array (e.g. ["Example","Another Example"])

All pages
loadOnNamespace The ID(s) of the namespace(s) RailWAM should load on

See Namespace IDs for a list of namespaces and their IDs

The ID of one namespace (e.g. 1),

the IDs of multiple namespaces as an array (e.g. [1,2,3])

All namespaces
lang Defines which language RailWAM should use Two letter language codes as a string (i.e. surrounded in quotes) Language set in the user's preferences or "en" if that language is not supported
showLogAlert Whether or not to display the alert asking you to log WAM scores true, false true

How to Configure

To configure RailWAM, use the window.railWAM object and place it in MediaWiki:Common.js for site-wide use or Special:MyPage/common.js or w:c:community:Special:MyPage/global.js for personal use. Be sure to separate each of the properties with a comma. An example configuration follows:

// This is an example configuration
window.railWAM = {
     logPage:'Log of WAM Scores',

If you are installing the script for personal use, make sure you place the configuration options before the import statement:

// This is an example configuration
window.railWAM = {
     logPage:'Log of WAM Scores',
// importArticles call
    type: 'script',
    articles: [
        // ...
Using configuration options with Fandom Open Source Library scripts
The instructions on this page describe how to use configuration options with a script. Here on the Fandom Open Source Library, many scripts provide optional configuration settings as a mean to alter or enhance the default behavior of the script. When installing configuration options in your JavaScript file, please note that they need to go above the import statement in order to work — unless the directions say otherwise. In case MediaWiki:ImportJS is used to load the scripts, it will be executed last.
Configuration options load too late, don't work
Proper placement of configuration options
// 1. AjaxRC import statement
// 2. AjaxRC configuration option
var ajaxRefresh = 30000;
// 1. AjaxRC configuration option
var ajaxRefresh = 30000;
// 2. AjaxRC import statement

Namespace IDs

Namespace ID
Article (none) 0
Blog 502
Blog Talk 503
Board 2000
Board Thread 2001
Category 14
Category Talk 15
Extension 112
Extension Talk 113
File 6
File Talk 7
Forum (Portal) 110
Forum (Portal) Talk 111
Help 12
Help Talk 13
Media -2
MediaWiki 8
MediaWiki Talk 9
Message Wall 1200
Message Wall Greeting 1202
Module 828
Module Talk 829
Project (Site Name) 4
Project (Site Name) Talk 5
Special -1
Talk 1
Template 10
Template Talk 11
Thread 1201
Topic 2002
User 2
User Blog 500
User Blog Comment 501
User Talk 3

Submitting Translations/Corrections

A list of needed translations and translation guidelines for RailWAM are maintained at the translation subpage for RailWAM on Blaster Niceshot's Test Wiki.

Although only supported or partially supported languages are listed there, translations for not-yet-supported languages are welcome. Please see the bottom of the page linked above for the full list of messages.

Corrections should be submitted on the same page as translations. Please see the guidelines in the page linked above.

Thank you for contributing to RailWAM!

Opting Out of RailWAM

To opt out of RailWAM, add this to your personal or global JavaScript:

window.railWAM = {

Planned Features

  • Monobook support
  • Displaying and logging WAM rank
  • Graphing WAM data
  • Inline-article WAM modules
  • Entering WAM scores into a table for easy readability

Ad blocker interference detected!

Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.