FANDOM


RailWAM é um script que adiciona um módulo para o trilho direito que exibe a pontuação WAM juntamente com a diferença entre as pontuações atuais e de ontem. Ele também inclui uma FAQ fácil de abrir. A partir de 23 de novembro de 2016, o Monobook não é suportado, no entanto, o suporte para ele está planejado (consulte Recursos Planejados).

Recursos

RailWAM...

  • atualiza automaticamente o módulo de pontuação WAM com a pontuação mais recente,
  • exibe a pontuação WAM da wiki na parte superior direita,
  • permite-lhe registar a pontuação WAM uma vez por dia com o clique de um link,
  • calcula a diferença entre as pontuações de hoje e de ontem,
  • abre um FAQ com um clique em um link na parte inferior do módulo,
  • links para a página oficial do WAM com as melhores pontuações de 5.000 wikis,
  • opções de configuração, incluindo a capacidade de optar por sair

Instalação em todo o site

Para instalar o script em todo o site, adicione isso a sua página MediaWiki:ImportJS:
dev:RailWAM/code.js
(Você deve ter o JavaScript personalizado habilitado em seu wiki. Se você não fizer isso, pergunte ao Staff do FANDOM para ativá-lo via Special:Contact.)

Depois, adicione isso a MediaWiki:Common.js:

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

Instalação Pessoal

Para instalar o script para uso pessoal, adicione isto ao seu JavaScript global ou pessoal:
importArticles({
    type: 'script',
    articles: [
        // ...
        'u:dev:MediaWiki:RailWAM/code.js'
    ]
});
Certifique-se de substituir (Seu nome de usuário aqui) com seu nome de usuário.

Configuration

Option List & Defaults

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

Option Description Accepted Values Default
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:

window.railWAM = {
     logPage:'Log of WAM Scores',
     loadOnPage:'Special:WikiActivity',
     lang:'pl'
};

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

window.railWAM = {
     logPage:'Log of WAM Scores',
     loadOnPage:'Special:WikiActivity',
     lang:'pl'
};
// importArticles call
importArticles({
    type: 'script',
    articles: [
        // ...
        'u:dev:MediaWiki:RailWAM/code.js'
    ]
});
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
importScriptPage('AjaxRC/code.js','dev');
 
// 2. AjaxRC configuration option
var ajaxRefresh = 30000;
// 1. AjaxRC configuration option
var ajaxRefresh = 30000;
 
// 2. AjaxRC import statement
importScriptPage('AjaxRC/code.js','dev');


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

Opting Out of RailWAM

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

window.railWAM = {
    load:false
};

Planned Features

  • Monobook support
  • Displaying and logging WAM rank
  • Graphing WAM data
  • Configuration option to specify a rail module to append the WAM module to
  • Inline-article WAM modules
  • Entering WAM scores into a table for easy readability
  • A link to the WAM Log page

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.