FANDOM


This is the talk page for discussing improvements to the RailWAM page.

Personal usage

Hello. I have imported the script into my global.js since the scope in the infobox does say it can be for personal use. However, when I enter a wiki, it inadvertently creates the WAM log page because I have the script enabled. This should be warned for in my opinion. Is there a way to make a version of this script that does not create the page? If so, that would be wonderful. Thank you for reading.

Cheeseskates 07:45, August 31, 2016 (UTC)

On a very similar note, this script should always ask before making automated edits under someone's account (and this is quite possibly worse for users not logged in, as it uses their IP address). Personally, I'd be rather annoyed if an edit is made under my account (or IP address, if logged out) without my prior knowledge or permission, simply because I visited a wiki that used this script. - OneTwoThreeFall (talk) 09:19, August 31, 2016 (UTC)
I'm sorry it isn't clear on the page yet that for personal use, you need to change the WAM log page by adding this before the import:
window.railWAM = {
    logPage:"User:Cheeseskates/WAM Log"
};
You can change it to any other page name under your user namespace if you want. I'm going to change the page back to personal use as well but also going to add that note. I hadn't added that note yet since I didn't think people would be using this before I got the chance to finish the Configuration section.
As for the auto-editing issue, that's a good point (especially with IPs). I'll work on something to prompt you before it edits, hopefully it won't take long to code & be approved.
Blaster Niceshotwallcontribs 20:39, August 31, 2016 (UTC)
I have updated the script so that a message pops up over the WAM module asking you if you want to log the score, and it should no longer auto-edit. I submitted this revision for review, and it will probably be approved today or tomorrow. The message pops up on every page load if the score isn't logged, even if you press "Close message." I will probably add something later so that it stays closed for a longer period of time.
Blaster Niceshotwallcontribs 22:04, August 31, 2016 (UTC)
Thank you so much!
Cheeseskates 00:02, September 1, 2016 (UTC)
Very nice - thanks for a quick fix! - OneTwoThreeFall (talk) 08:24, September 1, 2016 (UTC)
The version with this fix has approved--please let me know if you find any bugs with the new logging system.
Blaster Niceshotwallcontribs 20:33, September 1, 2016 (UTC)

i18n

Polski

Hello! Translated for PL by Szynka013 and DarknessEyes23.

            pl: {
                // WAM module messages
                faq:'FAQ',
                poweredBy:'Wspierany przez',
                todayTitle:'Punktacja WAM',
                unknown:'Nieznana',
                wamPage:'Strona WAM',
                yesterdayNotLogged:'Wczorajsza punktacja nie została pobrana.',
                // FAQ headers/answers
                faqTitle:'Często zadawane pytania',
                faqWelcome:'Witaj w często zadawanych pytaniach. Odwiedź również <a href="http://www.wikia.com/WAM/FAQ">oficjaną stronę WAM</a>.',
                sectionWAM:'Informacje o punktacji WAM',
                quesWhatIsWAM:'Co to jest WAM?',
                ansWhatIsWAM:'Wikia Activity Monitor (WAM) jest wartością liczbową od 0 do 100, za pomocą której mierzy się aktywność danych społeczności. Poprzez punktację WAM użytkownicy mogą zobaczyć, jak ich społeczność zmienia się z upływem czasu.',
                quesCalcWAM:'Jak jest obliczany WAM?',
                ansCalcWAM:'Według oficjalnego FAQ, WAM to wypadkowa liczby odwiedzających, edytorów i edycji na wiki. Wikia nie chce zdradzać zbyt wielu szczegółów, aby edytorzy nie próbowali bezpośrednio wpływać na wyniki.',
                quesImproveWAM:'Jak mogę poprawić punktację WAM swojej wiki?',
                ansImproveWAM:'Można poprawić punktacje WAM poprzez zachęcanie do udziału w rozwoju projektu (np. poprzez rozmowy z użytkownikami, czy korzystanie z różnych form reklamy na <a href="http://spolecznosc.wikia.com">Centrum Społeczności</a>) i tworzenie wysokiej jakości kontentu, dzięki któremu czytelnicy będą wracać. Można również znacznie poprawić pozycje społeczności poprzez przesyłanie odpowiednich multimediów i tworzenie poprawnych linków. Należy pamiętać, że dodawanie nieistotnych treści, obrazów i linków może negatywnie wpłynąć na pozycję WAM.',
                quesScoreZero:'Co to oznacza, jeśli punktacja WAM społeczności wynosi 0?',
                ansScoreZero:'WAM dodaje do rankingu 5000 najwyżej ocenionych społeczności. Jeśli dany projekt nie spełnia wyżej wymienionych kryteriów, wynik pozycji WAM wynosi 0.',
                sectionRailWAM:'Informacje o RailWAM',
                quesWhatIsRailWAM:'Co to jest RailWAM?',
                ansWhatIsRailWAM:'RailWAM jest skryptem ukazującym pozycję WAM społeczności oraz różnicę z dnia poprzedniego pod spodem. Możesz znaleźć więcej informacji w <a href="http://dev.wikia.com/wiki/RailWAM">dokumentacji skryptu</a>.',
                quesInstallRailWAM:'Jak mogę zainstalować RailWAM na swojej wiki?',
                ansInstallRailWAM:'Odwiedź <a href="http://dev.wikia.com/wiki/RailWAM">dokumentację RailWAM</a> w celu zapoznania się z instrukcja instalacji skryptu.',
                quesCreators:'Kto stworzył RailWAM?',
                ansCreators:'RailWAM został stworzony i zaprojektowany przez <a href="http://community.wikia.com/wiki/User:Blaster_Niceshot">Blastear Niceshota</a>, jednak pomysłodawcą projektu jest <a href="http://community.wikia.com/wiki/User:Demotivator">Demotivator</a>.',
                // Error messages
                errorLoad:'nastąpiło niepowodzenie podczas ładowania, gdyż ta opcja jest wyłączona. Ustaw wartość „true” dla ładowania w opcjach konfiguracji.',
                errorPage:'nastąpiło niepowodzenie podczas ładowania, gdyż ta strona nie jest określona jako taka, na której RailWAM ma się ładować. Dodaj tę stronę/te strony do opcji „loadOnPage” w opcjach konfiguracji.',
                errorNamespace:'nastąpiło niepowodzenie podczas ładowania, gdyż ta przestrzeń nazw nie jest określona jako taka, na której RailWAM ma się ładować. Dodaj tę przestrzeń nazw/te przestrzenie nazw do opcji „loadOnNamespace” w opcjach konfiguracji.'
            }

Good job and good idea guys ^^ ~ Szynka013 @fandom 13:02, September 1, 2016 (UTC)

Thanks for your translation! It will be added shortly.
Blaster Niceshotwallcontribs 20:33, September 1, 2016 (UTC)

IT

Translations for Italian:

            it: {
                // WAM module messages
                faq:'FAQ',
                poweredBy:'Powered by',
                todayTitle:'Il punteggio WAM di oggi',
                unknown:'Sconosciuto',
                wamPage:'Pagina WAM ufficiale',
                yesterdayNotLogged:'Il punteggio WAM di ieri non è stato registrato.',
                // FAQ headers/answers
                faqTitle:'Domande Frequenti',
                faqWelcome:'Benvenuto nelle FAQ di RailWAM. Ti potrebbe interessare leggere le <a href="http://www.wikia.com/WAM/FAQ">FAQ ufficiali di Wikia WAM</a>.',
                sectionWAM:'Informazioni sui punteggi WAM',
                quesWhatIsWAM:'Che cos\'è il WAM?',
                ansWhatIsWAM:'Il Wikia Activity Monitor (WAM) è una valutazione numerica da 0 a 100 che misura l\'attività di una certa wiki. Monitorando il WAM, gli utenti possono controllare lo stato di salute della propria wiki nel tempo.',
                quesCalcWAM:'Come viene calcolato il WAM?',
                ansCalcWAM:'Secondo le FAQ ufficiali di Wikia, i punteggi WAM sono una combinazione di "traffico, partecipazione e crescita". Wikia non fornisce le specifiche su come questi fattori vangano misurati e quanto incidano in modo da evitare che le wiki barino manipolandoli.',
                quesImproveWAM:'Come possono migliorare il punteggio WAM della mia wiki?',
                ansImproveWAM:'Puoi migliorare il punteggio WAM di una wiki incoraggiando i contributi (come accogliendo personalmente i nuovi utenti o creando una pagina sulla tua wiki sulla <a href="http://it.community.wikia.com/wiki/Wiki_della_Community:Pubblicizzare_una_wiki">Wiki della Community</a>) e creando contenuti di alta qualità che invogliano gli utenti a tornare. Puoi anche aumentare il ranking della tua wiki sui motori di ricerca aggiungendo immagini e link rilevanti. Tieni a mente che aggiungere contenuti, immagini e/o link può influire negativamente il punteggio WAM o il SEO della tua wiki.',
                quesScoreZero:'Che cosa significa se una wiki ha un punteggio WAM pari a 0?',
                ansScoreZero:'Il punteggio WAM è calcolato solamente per le 5.000 wiki migliori. Le altre wiki hanno un punteggio WAM pari a 0.',
                sectionRailWAM:'Informazioni su RailWAM',
                quesWhatIsRailWAM:'Che cos\'è RailWAM?',
                ansWhatIsRailWAM:'RailWAM è un miglioramento JavaScript per siti Wikia che mostra il punteggio WAM giornaliero di una wiki assieme alla differenza con il punteggio del giorno prima. Puoi leggere di più sulla <a href="http://dev.wikia.com/wiki/RailWAM">documentazione di RailWAM</a>.',
                quesInstallRailWAM:'Come posso installare RailWAM sulla mia wiki?',
                ansInstallRailWAM:'Per favore leggi la <a href="http://dev.wikia.com/wiki/RailWAM">documentazione di RailWAM</a> per le istruzioni per l\'installazione.',
                quesCreators:'Chi ha creato RailWAM?',
                ansCreators:'RailWAM è stato codificato e progettato da <a href="http://community.wikia.com/wiki/User:Blaster_Niceshot">Blaster Niceshot</a>, a partire da un\'idea suggerita da <a href="http://community.wikia.com/wiki/User:Demotivator">Demotivator</a>.',
                // Error messages
                errorLoad:'caricamento fallito in quanto disabilitato. Imposta l\'opzione "load" della tua configurazione su "true" per attivare.',
                errorPage:'caricamento fallito perché la pagina corrente e il suo namespace non sono specificati tra le pagine su cui RailWAM dovrebbe essere caricato. Aggiungi il nome di questa pagina all\'opzione di configurazione "loadOnPage" e il namespace della stessa all\'opzione "loadOnNamespace" per consentire il caricamento su questa pagina.',
                // Log alert messages
                closeBtn:'Avvertimento chiusura',
                cookieWarning:'Cliccando su "Fatto", aggiungerà un cookie nel tuo browser per un periodo di tempo predefinito.',
                days:'giorni',
                doneBtn:'Fatto',
                dontShow:'Non mostrare per:',
                hours:'ore',
                logBtn:'Registra dati',
                notLogged:'I dati WAM di oggi non sono registrati.',
                notLoggedWarning:'Cliccando su "Registra dati" verrà modificata la pagina del registro dei dati usando il tuo account o indirizzo IP nel caso non avessi effettuato l\'accesso.',
                scoreLogged:'Punteggio registrato. Grazie!',
                weeks:'settimane',
                years:'anni',
            },

leviathan_89 @fandom 14:02, September 26, 2016 (UTC)

Added myself. leviathan_89 @fandom 19:47, September 26, 2016 (UTC)

DE

Translations for german (work in progress, but you can take what's already translated):

{
  "faq": "FAQ",
  "todayTitle": "Aktueller WAM-Punktestand",
  "unknown": "Unbekannt",
  "wamPage": "Offizielle WAM-Seite",
  "yesterdayNotLogged": "WAM-Daten von gestern wurden nicht geloggt.",
  "faqTitle": "Häufig gestellte Fragen",
  "faqWelcome": "Herzlich Willkommen beim RailWAM FAQ. Vielleicht willst du auch <a href=\"http://www.wikia.com/WAM/FAQ\" target=\"_blank\">Wikias offizielle WAM FAQ</a> ansehen.",
  "faqWelcomeShort": "Herzlich Willkommen beim RailWAM FAQ!",
  "sectionWAM": "WAM-Punktestand",
  "quesWhatIsWAM": "Was ist WAM?",
  "ansWhatIsWAM": "Der Wikia Activity Monitor (WAM) ist eine Zahl zwischen 0 und 100, die die Aktivität des entsprechenden Wikis anzeigt. Wenn man die Entwicklung des WAM-Punktestands verfolgt, kann ein Wiki sehen, wie sich das Wiki entwickelt.",
  "quesCalcWAM": "Wie wird der WAM berechnet?",
  "ansCalcWAM": "Basierend auf Wikias offiziellen WAM FAQ, WAM-Punktestände sind eine Kombination aus \"Datenverkehr, Engagement und Wachstum.\" Wikia führt nicht im Detail aus, welchen Einfluss die Faktoren jeweils auf die Berechnung haben, um eine Manipulation des WAM zu vermeiden.",
  "quesImproveWAM": "Wie kann ich den WAM-Punktestand meines Wikis verbessern?",
  "ansImproveWAM": "Du kannst den WAM-Punktestand deines Wikis verbessern indem du zur Mitarbeit anregst (beispielsweise neue Benutzer persönlich begrüßen oder einen Blog über dein Wiki in <a href=\"http://de.community.wikia.com\">Community Deutschland</a>) schreiben und qualitativen Inhalt verfassen, sodass Leser gerne zurückkommen. Ebenso kannst du die Suchergebnisse zu deinem Wikis verbessern, indem du passende Bilder und Links hinzufügst. Behalte dabei im Hinterkopf, dass Hinzufügen von unsinnigen Inhalten, Bildern und/oder Links sich anders herum auch negativ auf den WAM-Punktestand und Suchergebnisse auswirken kann.",
  "quesScoreZero": "Was bedeutet es, wenn der WAM-Punktestand 0 ist?",
  "sectionRailWAM": "Informationen zu RailWAM",
  "quesWhatIsRailWAM": "Was ist RailWAM?",
  "ansWhatIsRailWAM": "RailWAM ist eine JavaScript-Erweiterung für FANDOM-Wikis, welche den täglichen WAM-Punktestand des Wikis samt Differenz zum Vortag anzeigt. Für weitere Informationen siehe die <a href=\"http://dev.wikia.com/wiki/RailWAM\">RailWAM-Dokumentation</a>.",
  "quesInstallRailWAM": "Wie kann ich RailWAM in meinem Wiki installieren?",
  "ansInstallRailWAM": "Rufe die Installationsanweisungen in der <a href=\"http://dev.wikia.com/wiki/RailWAM\">RailWAM-Dokumentation</a> auf.",
  "quesCreators": "Wer hat RailWAM erstellt?",
  "ansCreators": "RailWAM wurde von <a href=\"http://community.wikia.com/wiki/User:Blaster_Niceshot\">Blaster Niceshot</a> programmiert und designed, und die Skriptidee wurde ursprünglich von <a href=\"http://community.wikia.com/wiki/User:Demotivator\">Demotivator</a> vorgeschlagen.",
  "errorLoad": "Laden fehlgeschlagen, da es deaktiviert ist. Setze deine Einstellung \"load\" in deiner Konfiguration auf true, um es zu aktivieren.",
  "errorPage": "failed to load because the current page and its namespace are not specified as one of the pages RailWAM should load on. Add this page's name to the \"loadOnPage\" configuration option or this page's namespace to the \"loadOnNamespace\" configuration option to allow it to load on this page.",
  "poweredBy": "Powered by",
  "rank": "Rang",
  "score": "Punkestand",
  "wamDatabase": "In Daten suchen",
  "closeBtn": "Meldung schließen",
  "cookieWarning": "Ein Klick auf \"Fertig\" setzt für die festgelegte Zeit einen Cookie im Browser.",
  "doneBtn": "Fertig",
  "dontShow": "Zeige keine Daten von:",
  "logBtn": "Logge Daten",
  "logSummary": "Füge neuen WAM-Punktestandeintrag hinzu",
  "notLogged": "Die letzten WAM-Daten wurden nicht geloggt.",
  "notLoggedWarning": "Ein Klick auf \"Logge Daten\" bearbeitet die Loggingseite unter deinem Account oder deiner IP-Adresse, falls du nicht eingeloggt bist.",
  "scoreLogged": "Punktestand geloggt. Danke!",
  "ansScoreZero": "Ein WAM-Punktestand von 0 zeigt an, dass das Wiki derzeit sehr wenig bis gar keine Aktivität hat. Normalerweise trifft das auf Wikis zu, die keine aktiven Bearbeiter und kaum Besucher haben.",
  "quesWhatIsDatabase": "Was ist RailWAM's WAM-Datenbank?",
  "ansWhatIsDatabase": "<p>RailWAM's WAM database is a powerful tool that can be used to search for WAM data from a given period of time. It also makes filtering WAM data by score, rank, or vertical rank possible. For wikis consistently in the top 5000 WAM ranks, it can be used to view historical data that is not recorded in the WAM log.</p><h2><p>How do I use the database?</h2>On a given wiki that uses RailWAM, the database is located at www.YOURWIKI.wikia.com/wiki/Special:BlankPage/RailWAM_Database.</p><p>Once you are on the correct page, a search box should appear. Enter an appropriate value for that search type and click search or press the enter/return key. Most queries will take some time to retrieve all the data (see \"How is the search time calculated?\"). Upon completion, the datbase will display entries in a table ordered newest to oldest.</p><p>For more information about different search types, see their individual pages in this FAQ.</p>",
  "quesSearchTime": "Wie wird die Suchzeit berechnet?",
  "ansSearchTime": "<p>RailWAM performs a search at a maximum rate of 6 requests/minute, or 1 request/10 seconds. This is the rate limit Wikia provided to avoid overloading their servers.<h2>Detailed formula</h2>Two sets of data are required to display one database entry. However, each entry shares one data set with the entry before it. Hence,</p><span class=\"railwam-math\">T<sub>Anfragen</sub> = T<sub>Tage</sub> + 1</span><p>RailWAM delays most requests by ten seconds, but the first two requests send immediately. The database shares the same code for getting data as the rail module, and this behavior allows the rail module to appear immediately upon completion of the requests. The search time can be estimated by: </p><span class=\"railwam-math\">t<sub>Sekunden</sub> = (T<sub>Anfragen</sub> - 2) ⋅ 10</span><p>or</p><span class=\"railwam-math\">t<sub>Sekunden</sub> = (T<sub>Tage</sub> - 1) ⋅ 10</span>",
  "quesList": "Search type: list",
  "ansList": "Der <span class=\"railwam-bold\">Liste</span>nsuchtyp stellt Einträge zu einer bestimmten Anzahl von Tagen vom neusten zum ältesten sortiert in einer List dar. Wenn die für den Tag angeforderten Daten nicht gefunden werden, wird der Eintrag herausgefiltert, aber die übrigen können trotzdem angezeigt werden.<h2>What to enter</h2><span class=\"railwam-param-label\">days</span> - a positive integer representing the number of days to return data for",
  "quesDate": "Suchtyp: Datum",
  "ansDate": "The <span class=\"railwam-bold\">date</span> search type displays an entry from an entered date.<h2>What to enter</h2><span class=\"railwam-param-label\">date</span> - Enter a date in the format day/month/year. The year can be written out in full or abbreviated to the last two digits.",
  "quesScore": "Suchtyp: Punktestand",
  "ansScore": "The <span class=\"railwam-bold\">score</span> search type displays entries for days where the entered value matches the score. If the necessary data for an entry cannot be found, that entry will be omitted but will not prevent others from being shown.<h2>What to enter</h2><span class=\"railwam-param-label\">score</span> - a positive number between 0 (inclusive) and 100 (exclusive) with a maximum of four decimal places<h2>Matching rules</h2>The entered value is treated as being uncertain, so matches are made using rules similar to those for significant figures with the following exceptions: <ol class=\"railwam-ol\"><li>All trailing zeros are considered significant.</li><li>Matching values can only be greater than the entered value.</li></ol>In other words, a day's score matches if it is is between the entered value and that value with one added to the last digit. For example, if \"90\" is entered, all scores between 90.0000 and 90.9999 will match.",
  "quesRank": "Suchtypen: Rang, vertical rank",
  "ansRank": "Die <span class=\"railwam-bold\">Rank</span> und <span class=\"railwam-bold\">vertical rank</span> Suchtypen display entries for days where the entered value matches the rank or vertical rank, respectively. If the necessary data for an entry cannot be found, that entry will be omitted but will not prevent others from being shown.<h2>What to enter</h2><span class=\"railwam-param-label\">rank</span> or <span class=\"railwam-param-label\">vertical rank</span> - an integer between 1 and 5000 representing the rank or vertical rank to search for",
  "onError": "RailWAM ran into a problem and could not display the module. Reloading the page and checking your personal and site-wide JavaScript for errors are recommended. If the issue persists, please submit a bug report with links to this wiki and any other relevant pages on the <a href=\"http://dev.wikia.com/wiki/Talk:RailWAM\">RailWAM talk page</a>.",
  "onErrorHeading": "RailWAM-Fehler",
  "database": "RailWAM-Datenbank",
  "databaseAlt": "WAM-Datenbank",
  "databaseWelcome": "Herzlich Willkommen in RailWAMs WAM-Datenbank.<br>Wähle deinen Suchtyp und gibt etwas in das Suchfeld ein um entsprechende WAM-Daten zu suchen ",
  "databaseWelcomeFaq": "Bitte lese die <a id=\"railwam-database-faq\">RailWAM-FAQ</a> für weitere Informationen zu den verschiedenen Suchtypen.",
  "and": "und",
  "cancel": "Abbrechen",
  "customRange": "Benutzerdefinierte Auswahl",
  "date": "Datum",
  "documentation": "Dokumentation",
  "duringCancel": "Suche abbrechen...",
  "errorDateBetween": "Bitte gib ein Datum zwischen ... ein",
  "errorGreaterThanZero": "Bitte gebe eine Zahl größer oder gleich 0 ein.",
  "errorLessThanHundred": "Bitte gebe eine Zahl größer oder gleich 0 und kleiner als 100 ein.",
  "errorMaxChars": "Du hast die Höchstanzahl der für diesen Suchtyp erlaubten Zeichen erreicht.",
  "errorRankBetween": "Bitte gebe eine Zahl zwischen 1 und 5000 ein.",
  "home": "Startseite",
  "lastAvailable": "Die WAM-Platzierungen wurden zuletzt aktualisiert am: ",
  "list": "Liste",
  "noEntry": "Keine verfügbaren Einträge wurden gefunden, die mit der Anfrage übereinstimmten.",
  "ofDays": "an Tagen",
  "reportBug": "Bug melden",
  "search": "Suchen",
  "searchBy": "Suchtyp:",
  "vertRank": "vertical rank",
  "withinLast": "Innerhalb der letzten",
  "seconds": "Sekunden",
  "minutes": "Minuten",
  "hours": "Stunden",
  "days": "Tage",
  "weeks": "Wochen",
  "years": "Jahre",
  "jan": "Jan.",
  "feb": "Feb.",
  "mar": "Mär.",
  "apr": "Apr.",
  "may": "Mai",
  "june": "Juni",
  "july": "Juli",
  "aug": "Aug.",
  "sept": "Sept.",
  "oct": "Okt.",
  "nov": "Nov.",
  "dec": "Dez."
}

Agent Zuri Profile Message Wall Blog 19:07, November 27, 2017 (UTC)

Log page

I think it would be better for the configured log page to be required for all usages, rather than using a default. This avoids cases, such as the one here, where someone has apparently not configured the script correctly and misleadingly suggests that the script has been installed here which is not the case. Is that possible for you to implement? cqm 18:36, 1 Sep 2016 (UTC)

Thanks for your feedback. I think I will set the default to User:(Username)/WAM Log rather than Project:WAM Log. That should solve this issue as well as eliminate the need for personal use installations to configure the page.
Blaster Niceshotwallcontribs 20:33, September 1, 2016 (UTC)
The fix I mentioned above has been added, and just needs to be reviewed. I have edited the article to reflect these changes, and will remove the extra code for personal installion once this new version is live.
Blaster Niceshotwallcontribs 15:14, September 4, 2016 (UTC)
How can I make a log by the way? I don't see any link in RailWam textbox Dai ca superman (talk) 16:20, September 5, 2016 (UTC)
There is a bug currently preventing the message from showing up for wikis where the log page hasn't been created. It has been fixed (along with the issue above), but the revision still needs to be reviewed in order to go live.
In the meantime, there is a way around this bug. If you're using the script for personal use, go to Special:MyPage/WAM Log on the wiki you want to log the scores for. If you're using the script for site-wide use, go to Project:WAM Log on your wiki. Add something simple to the page (like "blah blah blah" or "test") to create it so the script can recognize it. You can remove whatever you added afterwords (do not delete the page), all that matters is that the page is created.
Please let me know if this does not solve the issue so I can find another solution until the fix is approved.
Blaster Niceshotwallcontribs 20:31, September 5, 2016 (UTC)
Thank you Dai ca superman (talk) 07:26, September 6, 2016 (UTC)
Just wanted to let you know that the revision with this fix is now live. Please send me a message if it is still bugged or if you notice any bugs with anything else.
Blaster Niceshotwallcontribs 02:28, September 7, 2016 (UTC)

Responsive pop-up

Can you make the pop-up behave reposnsively so they can be viewed well by any devices, especially smartphones? Thank you Dai ca superman (talk) 16:26, September 5, 2016 (UTC)

I'm assuming you mean the pop-up window for the FAQ. The FAQ uses Wikia's pop-up function, so I'm surprised it wouldn't already be responsive with their whole push for mobile support and all. Regardless, I will look into creating another pop-up box that works better for smaller devices. Can you answer a few questions to help me figure out which devices I need to test it for?
  • On your smartphone, are you using the Oasis desktop skin, the mobile skin, or one of Wikia's apps?
    • If you are using the desktop skin, was that the default skin for your device, or did you select it from the link in the footer?
    • If you are using an app, what is the name of the app (e.g. Wikia Game Guides, one of the fan apps)?
  • What is the width and height of your screen (preferably in pixels, but I can convert to other measurements)?
    • If you don't know the screen size, what model is it (e.g. Samsung Galaxy s7)?
  • Does it look right when you are holding the device in both the portrait and landscape orientations?
  • Are you zooming in or zooming out from the default zoom?
  • Is the text too big, too small, or a good size?
  • Does the pop-up shrink to the screen size? (I am assuming no, but I just want to check that it is the size of the pop-up itself and not the text size.)
Thank you for reporting this issue.
Blaster Niceshotwallcontribs 20:31, September 5, 2016 (UTC)
I think it don't display well for any screen have width lower than 850px according to your code. My device resolution is 320x640 and I use browser app with oasis skin neither mobile skin (mobile skin doesn't load any custom JS by default) nor Wikia apps. Dai ca superman (talk) 07:26, September 6, 2016 (UTC)
Alright, thank you. I am testing out a responsive pop-up width that has been working nicely with that screen size and others so far. I'm planning on implementing the collapsible functionality to the FAQ headers to make it more mobile-friendly as well.
Blaster Niceshotwallcontribs 02:28, September 7, 2016 (UTC)
Thank you Dai ca superman (talk) 07:33, September 7, 2016 (UTC)
RailWAM has been updated with a responsive pop-up width and collapsible FAQ headers. I have submitted the edit for review and hopefully, it will go live soon.
Blaster Niceshotwallcontribs 20:04, September 10, 2016 (UTC)

Brazilian Portuguese (Português Brasileiro/Português do Brasil)

Hello! Here the brazilian portuguese translation (need the european portuguese too, but if you want, you can use the PT-BR translation):

            'pt-br': {
                // Mensagem do módulo WAM
                faq:'FAQ',
                poweredBy:'Produzido por',
                todayTitle:'Pontuação WAM de hoje',
                unknown:'Desconhecido',
                wamPage:'Página oficial do WAM',
                yesterdayNotLogged:'A pontuação WAM de ontem não está registrada.',
                // FAQ cabeçalhos/perguntas
                faqTitle:'Perguntas mais frequentes',
                faqWelcome:'Bem-vindo ao FAQ do RailWAM. Você também pode querer visitar <a href="http://www.wikia.com/WAM/FAQ">o FAQ oficial do WAM</a>.',
                sectionWAM:'Informação sobre a pontuação WAM',
                quesWhatIsWAM:'O que é WAM?',
                ansWhatIsWAM:'O Wikia Activity Monitor (WAM) é um valor numérico entre 0 e 100 que mede a atividade em uma determinada wiki. Ao monitorar o WAM, os usuários podem ver como a atividade de suas wikis está mudando ao longo do tempo.',
                quesCalcWAM:'Como o WAM é calculado?',
                ansCalcWAM:'De acordo com o FAQ oficial do WAM, a pontuação WAM é uma combinação de "tráfego, contribuição e crescimento". A Wikia não fornece especificações de como estes fatores são medidos, a fim de evitar que as wikis tentem manipular as pontuações.',
                quesImproveWAM:'Como eu posso melhorar a pontuação WAM das minhas wikis?',
                ansImproveWAM:'Você pode melhorar a pontuação WAM de uma wiki incentivando a contribuição (tal como acolher novos contribuidores pessoalmente ou escrevendo um blog sobre sua wiki na <a href="http://comunidade.wikia.com">Central da Comunidade</a>) e criando conteúdo de alta qualidade que irá manter os leitores voltando. Você também pode melhorar a classificação de sua wiki em motores de busca adicionando imagens e links úteis e relevantes. Tenha em mente que adicionando conteúdo irrelevante, imagens e/ou links podem afetar negativamente a pontuação WAM de sua wiki e os rankings de pesquisa.',
                quesScoreZero:'O que significa se a pontuação WAM de uma wiki é 0?',
                ansScoreZero:'O WAM é calculado apenas para as tops 5.000 wikis. Wikis que não estão no top 5.000 tem a pontuação WAM como 0.',
                sectionRailWAM:'Informação sobre RailWAM',
                quesWhatIsRailWAM:'O que é RailWAM?',
                ansWhatIsRailWAM:'RailWAM é uma melhoria de JavaScript para sites da Wikia o qual mostra a pontuação WAM do dia de uma wiki junto com a diferença entre a pontuação de hoje e ontem embaixo. Você pode encontrar mais informação na <a href="http://dev.wikia.com/wiki/RailWAM">documentação do RailWAM</a>.',
                quesInstallRailWAM:'Como eu posso instalar o RailWAM em minha wiki?',
                ansInstallRailWAM:'Por favor visite a <a href="http://dev.wikia.com/wiki/RailWAM">documentação do RailWAM</a> para instruções de instalação.',
                quesCreators:'Quem criou o RailWAM?',
                ansCreators:'RailWAM foi codificado e projetado por <a href="http://community.wikia.com/wiki/User:Blaster_Niceshot">Blaster Niceshot</a>, e a ideia para o script foi originalmente sugerida por <a href="http://community.wikia.com/wiki/User:Demotivator">Demotivator</a>.',
                // Mensagens de erro
                errorLoad:'falha ao carregar por que isto está desativado. Defina sua opção de configuração "load" para true para habilitar isto.',
                errorPage:'falha ao carregar por que a página atual não está especificada como uma das páginas que RailWAM deve carregar. Adicione o nome desta página na opção de configuração "loadOnPage" para permitir isto ser carregado nesta página.',
                errorNamespace:'falha ao carregar por que o namespace atual da página não está especificado como um dos namespaces que RailWAM deve carregar. Adicione o namespace desta página na opção de configuração "loadOnNamespace" para permitir isto ser carregado nesta página.'
            }

Ultragustavo25 | Mural 02:51, September 7, 2016 (UTC)

Thank you! 
Blaster Niceshotwallcontribs 20:12, September 8, 2016 (UTC)

Wiki Rank

Can you fetch the data of wiki's rank and put it beside the Wam score? Dai ca superman (talk) 07:33, September 7, 2016 (UTC)

This is something that I actually planned on doing for the first release, but Wikia didn't open the API to the rank data to outside requests for some reason. I emailed support about the problem. but I got the sense that it wasn't a big issue for them. I'm keeping an eye on the request to see if they fix it.
Blaster Niceshotwallcontribs 20:12, September 8, 2016 (UTC)
There is actually a way to circumvent the API limitations, but it involves a third-party service (YQL). If you're willing to make that trade-off you can take a look at w:Thread:1089659 where I've asked a question about the CORS issue. — NoWay (talk · contribs) 17:39, September 9, 2016 (UTC)
Thank you for suggesting YQL. I have just tested it with that request, and it seems to work perfectly. I'm going to figure how to redesign the WAM module to include the WAM rank and log it. Since this is probably going to be a major change, it will likely be a little while until it goes live (assuming Wikia approves the use of YQL). If Wikia doesn't approve, I might design a personal use solution.
Blaster Niceshotwallcontribs 23:05, September 9, 2016 (UTC)

Did I miss something?

After I imported the code, I can only see the score but no comparison of the score of the previous day (http://despicableme.wikia.com/wiki/Special:WikiActivity). I don't know which code I haven't imported... - Xia Shangzhou Ah well, perhaps he ate too many bananas. (Talk) 08:55, September 7, 2016 (UTC)

You won't be able to see the difference in the score until yesterday's and today's scores are logged on the log page. However, this probably was hard to tell because I did discover a bug in the script, and it was preventing the log message from appearing. I tested a modified version of the script in my personal JS on your wiki, and the notification is now showing up, so I just need to verify that this new version did indeed fix it and that it isn't just a fluke. Once I publish the new version, it should take a few days to go live. Thanks for reporting this,
Blaster Niceshotwallcontribs 20:12, September 8, 2016 (UTC)
This is strange-- I tried putting the original code back in to reproduce the notification bug, but it seems to be working now (even with bypassing cache). I did take a look at your configuration settings in MediaWiki:Common.js and two of them seem to be conflicting. Here is what you have currently:
window.railWAM = {
    logPage:"Project:WAM Log"
};
window.railWAM = {
     logPage:"Despicable Me Wiki:WAM Logs",
     loadOnPage:'Special:WikiActivity',
     loadOnNamespace:[2,3] ,
};
What happens with this code is that the script is told to load only on Special:WikiActivity and the namespaces with IDs 2 and 3 (User and User talk, respectively). The script is set to prevent itself from loading unless both the page name and the namespace are allowed in the configuration settings. When I go to Special:WikiActivity, the page name matches, but the namespace does not, so therefore the script does not load.
Here is the code for what I think you are looking to do (not supplying a loadOnNamespace option sets the script to load on all namespaces):
window.railWAM = {
     logPage:"Despicable Me Wiki:WAM Logs",
     loadOnPage:'Special:WikiActivity'
};
I removed the extra window.railWAM because although I don't believe that it was causing an issue, it might be a little confusing to have configuration in there that is ultimately overwritten by the second window.railWAM.
Replacing the current configuration with this code should at least allow it to load. I'm not sure if the configuration issue is related to the notification issue, but I'll keep trying to reproduce the notification bug.
Blaster Niceshotwallcontribs 21:30, September 8, 2016 (UTC)

Vietnamese translation

  vi: {
                // WAM module messages
                faq:'FAQ',
                poweredBy:'Tạo bởi',
                todayTitle:'Điểm WAM hôm nay',
                unknown:'Không rõ',
                wamPage:'Trang WAM Chính Thức',
                yesterdayNotLogged:'Điểm WAM hôm qua không được lưu lại.',
                // FAQ headers/answers
                faqTitle:'Câu Hỏi Thường Gặp',
                faqWelcome:'Chào mừng tới mục RailWAM - Câu hỏi thường gặp. Bạn có thể sẽ muốn vào trang <a href="http://www.wikia.com/WAM/FAQ">WAM - Câu hỏi thường gặp chính thức của Wikia</a>.',
                sectionWAM:'Thông tin về điểm WAM',
                quesWhatIsWAM:'WAM là gì?',
                ansWhatIsWAM:'Wikia Activity Monitor (WAM) là một số liệu có giá trị từ 0 đến 100 nhằm tính toán mức độ hoạt động của một trang wiki. Bằng việc theo dõi điểm WAM, các thành viên có thể biết được mức độ hoạt động wiki của họ thay đổi ra sao theo thời gian.',
                quesCalcWAM:'WAM được tính ra sao?',
                ansCalcWAM:'Theo trang WAM FAQ chính thức của Wikia, điểm WAM được tính bằng việc kết hợp giữa "lưu lượng tới trang, độ đóng góp và mức độ phát triển" của wiki." Wikia không cung cấp chi tiết những thành phần đó được tính toán ra sao hay chúng đóng góp bao nhiêu để tránh việc các Wiki tìm cách thao túng điểm số.',
                quesImproveWAM:'Làm sao để tăng điểm WAM cho Wiki của bạn?',
                ansImproveWAM:'Bạn có thể tăng điểm WAM bằng cách động viên mọi người đóng góp cho Wiki (ví dụ như chào đón những người đóng góp mới hay viết một blog về wiki của bạn trên trang <a href="http://vi.community.wikia.com">Cộng Đồng Wikia Tiếng Việt</a>) và tạo những nội dung chất lượng cao nhờ vào đó sẽ giúp lôi kéo người đọc trở lại. Bạn cũng có thể gia tăng thứ hạng wiki của mình thông qua việc gia tăng thứ hạng wiki trên các công cụ tìm kiếm bằng việc chèn những tấm ảnh và đường dẫn hữu dụng và có liên quan đến wiki của bạn. Lưu ý rằng việc chèn các nội dung, hình ảnh và/hay đường dẫn không liên quan có thể tác động tiêu cực đến điểm WAM wiki của bạn lẫn thứ hạng trên công cụ tìm kiếm.',
                quesScoreZero:'Điểm WAM của Wiki bằng 0 là sao?',
                ansScoreZero:'WAM chỉ được tính cho 5000 Wiki đứng đầu. Những Wiki không nằm trong tốp 5000 sẽ có điểm WAM bằng 0.',
                sectionRailWAM:'Thông tin về RailWAM',
                quesWhatIsRailWAM:'RailWAM là gì?',
                ansWhatIsRailWAM:'RailWAM là một code JavaScript bổ trợ dành cho các trang Wikia nhằm hiển thị điểm WAM của wiki đó cùng với là sự chênh lệch điểm số giữa hôm nay và ngày hôm qua được đặt phía dưới. Bạn có thể tìm thông tin thêm tại trang <a href="http://dev.wikia.com/wiki/RailWAM">Tài liệu RailWAM</a>.',
                quesInstallRailWAM:'Làm sao để cài đặt RailWAM cho wiki của tôi?',
                ansInstallRailWAM:'Bạn hãy vào trang <a href="http://dev.wikia.com/wiki/RailWAM">Tài liệu RailWAM</a> để xem hướng dẫn cài đặt.',
                quesCreators:'Ai là người tạo ra RailWAM?',
                ansCreators:'RailWAM được thiết kế và lập trình bởi <a href="http://community.wikia.com/wiki/User:Blaster_Niceshot">Blaster Niceshot</a>, với ý tưởng ban đầu được đề xuất bởi <a href="http://community.wikia.com/wiki/User:Demotivator">Demotivator</a>.',
                // Error messages
                errorLoad:'lỗi không thể chạy do đã bị chặn. Cài đặt lại chế độ tại tùy chọn "load" thành true.',
                errorPage:'lỗi không thể chạy vì trang hiện tại không được thiết đặt là một trong những trang RailWAM nên chạy. Thêm tên trang này vào phần tùy chọn "loadOnPage" để cho phép RailWAM có thể chạy.',
                errorNamespace:'lỗi không thể chạy vì  trang này thuộc miền không được thiết đặt là một trong những trang RailWAM nên chạy. Thêm miền của mục này vào phần tùy chọn "loadOnNamespace" để cho phép RailWAM có thể chạy.'
            },

Dai ca superman (talk) 16:49, September 7, 2016 (UTC)

Thank you!
Blaster Niceshotwallcontribs 20:12, September 8, 2016 (UTC)

Logging

Right at 0:00 UTC I get the message to log a new WAM-Score. But the API still provides yesterdays score, tough the website is already updated. -- Ninjamask (talk) 13:20, September 10, 2016 (UTC)

I'm assuming by "the website," you are referring to wikia.com/WAMThe difference between what the official WAM page is saying and what the API is saying seems to be that the official WAM page is getting old data by default. When I visit the official WAM page, it says that it is looking at the data for September 8th. I have used the API test requests to verify that the data the API gets for September 8th is the same as what the official WAM site says for September 8th. I was able to change the date on the official WAM page so it went to the most recent data, and the scores matched the scores the API was getting.
Blaster Niceshotwallcontribs 17:58, September 10, 2016 (UTC)

loadOnNamespace and loadOnPage

Can you take a look at these options? It seem doesn't work as expected

Here's my config

window.railWAM = {
     logPage:'Template:WAM Log',
     loadOnPage:'Special:WikiActivity',
     loadOnNamespace:[0,502,14,1200,1201,500],
     lang:'vi'
};

Dai ca superman (talk) 10:50, September 15, 2016 (UTC)

Hello,
This issue appears to be that loadOnPage and loadOnNamespace are conflicting. The script is set to check if the page matches one of the pages in the loadOnPage and if its namespace matches one in loadOnNamespace. If either condition is false, the script does not load. Thus, with your configuration the namespace condition fails on Special:WikiActivity and the page name condition fails on those namespaces.
I think the way you were trying to use these options is superior to how these options are currently supposed to be used, so I will modify the script to load if either condition is true. For the time being, I don't recommend using loadOnPage and loadOnNamespace at the same time. Thanks for bring this up,
Blaster Niceshotwallcontribs 01:28, September 18, 2016 (UTC)
Thank you, hope you can make a fix soon.
But Right now I have other problem with language setting. With the above configs (removed loadOnNamespace and loadOnPage options), even I change my language from english to vietnamese, I still can't see Vietnamese translation for RailWAM.
Dai ca superman (talk) 08:23, September 19, 2016 (UTC)
Thanks for reporting this. The language bug has been fixed, and the new version should go live within a few days.
Blaster Niceshotwallcontribs 23:04, September 19, 2016 (UTC)
Thank you Dai ca superman (talk) 07:09, September 22, 2016 (UTC)
I have created a solution in my test code that allows loadOnNamespace and loadOnPage to work at the same time, and I am planning on implementing the new code into the Dev Wiki code after I finish writing this message. I did have to make a change to one of the error messages, and thus the same message in all the different languages. I ended up using Google Translate as a temporary solution (this error shouldn't be seen often), but I am likely going to submit most of the messages for corrections at the WLB Wiki. Since you are the one who provided the original Vietnamese translation, would you mind making corrections to this translation?
English:
errorPage:'failed to load because the current page and its namespace are not specified as one of the pages RailWAM should load on. Add this page\'s name to the "loadOnPage" configuration option or this page\'s namespace to the "loadOnNamespace" configuration option to allow it to load on this page.',
Current Vietnamese translation:
errorPage:'không tải vì trang hiện tại và không gian tên của nó chưa được xác định là một trong những trang RailWAM nên tải về. Thêm tên của trang này để các "loadOnPage" tùy chọn cấu hình hay không gian tên của trang này để các tùy chọn cấu hình "loadOnNamespace" để cho phép nó để tải trên trang này.',
Thanks,
Blaster Niceshotwallcontribs 19:55, September 22, 2016 (UTC)
I've just updated correcting translation in your code. If you want to translate any new messages, just tell me. :) Thanks again Dai ca superman (talk) 07:20, September 23, 2016 (UTC)
Thank you for correcting!
Blaster Niceshotwallcontribs 19:28, September 23, 2016 (UTC)

Not Working

Hey,

This plugin worked for a couple days but not it's not working anymore. Anybody know why? Aksing from the edain.wikia.com

Sauron, Dark Lord of Mordor (talk) 17:58, September 15, 2016 (UTC)

Hi, I've visited your wiki, but I am seeing the RailWAM module, and I don't notice anything not working. Could you please provide more details on what isn't working? If you have a screenshot, could you post that as well?
I would try asking other users/administrators if they are having the same problem. If it is just you, then have you edited your personal JS recently? Do you have any other scripts installed? It's possible another script or a little bit of code is conflicting with it.
Blaster Niceshotwallcontribs 20:20, September 15, 2016 (UTC)
Thanks for the quick reply. I've uploaded an imgur album with two screenshots. On both pages I have clear memories of the RailWAM being at the top of each page, on top of the discussion. Basically I just don't see it anymore. I have not edited my Personal JS or have any other scrips installed. I will however ask around and report back. Also I can't see it either when I log out. Imgur Album: http://imgur.com/a/9aCj7
Sauron, Dark Lord of Mordor (talk) 21:18, September 15, 2016 (UTC)
RailWAM had some errors a few days ago. Unfortunately, Wikia has caching problems, particularly with cross-wiki requests. So it's possible that, even though RailWAM was updated, the way you request it retrieves an older version with the errors. --Saftzie (talk) 22:57, September 15, 2016 (UTC)

──────────────────────────────────────────────────────────────────────────────────────────────────── Is there anything I can do? Or shall I just wait? Sauron, Dark Lord of Mordor (talk) 07:21, September 16, 2016 (UTC)

I just checked. Your wiki seems to be getting the most recent code; and I see the module in the rail. In particular, I see it on the Sauron and Mordor pages. If you don't see it, then it's something down to you, I think. Figuring out what that is could be a challenge. --Saftzie (talk) 09:48, September 16, 2016 (UTC)
Might have been cache, it's working again and nobody noticed anything.
Sauron, Dark Lord of Mordor (talk) 20:51, September 16, 2016 (UTC)
I'm glad to hear everything is working again. Thank you for helping with this issue, Saftzie!
Blaster Niceshotwallcontribs 01:30, September 18, 2016 (UTC)

Minor problem with span id

I don't know why you make the id of span in WAM Log have value of previous month, like here's today log: <span id="railwam-2282016">...</span>, even today is 22/9/2016 Dai ca superman (talk) 07:09, September 22, 2016 (UTC)

8 is actually the correct value for September because JavaScript starts counting at 0 instead of 1. So, January is 0, February is 1, etc... I didn't change this because the log, in it's current state, is more for the script to get data rather than for humans reading it. Logging WAM data into a human-friendly table is one of the main features planned for the next RailWAM update, and I am currently developing/testing this feature. The human-friendly tables will use the normal numbers for months (January is 1, February is 2) instead of starting at 0.
By the way, I also found a solution to the loadOnPage/loadOnNamespace issue. I will leave more information in a reply in that section.
Blaster Niceshotwallcontribs 19:40, September 22, 2016 (UTC)

Log option

In my opinion, there should be an option to disable logging altogether on a set wiki. So no notifications about not logged data, no cookies, just a plain WAM indicator. The reason I'm suggesting this is because I added this script in my global.js as I'm curious to see the WAM scores of my wikis, but I'd rather not have to log or make cookies to hide the notification for every other wiki I visit. leviathan_89 @fandom 03:35, September 27, 2016 (UTC)

This sounds like a good idea, and it shouldn't take too terribly long to implement. Thanks for suggesting!
Blaster Niceshotwallcontribs 20:34, September 28, 2016 (UTC)
I have added an option for this to the script, and the revision just needs to be approved. You can set showLogAlert to false to turn the alerts off once the new version is live:
window.railWAM = {
     //other config
     showLogAlert:false
}
Blaster Niceshotwallcontribs 19:58, September 29, 2016 (UTC)

Sync time for log alert based on WAM server

I've usually seen 2 log alert, one in the morning and one at night and when I click to save the WAM score for both of alerts, it write the same data as today for the next day. Example:

  • <span id="railwam-392016">abcabc</span>
  • <span id="railwam-492016">abcabc</span>

I think your log alert is based on the time of user's computer, but if users don't have the same time zone as Wikia set for their WAM server, it make duplicate the data because WAM score for the next days have not been calculated yet.

Dai ca superman (talk) 09:01, October 4, 2016 (UTC)

I believe the issue was not the time the script was using, but the fact that the browser was caching the result. Wikia's servers are set to cache the result for one day, so if you logged the score a second time within 24 hours (e.g., you log the score at 23:00 UTC P.M. and then at 1:00 UTC A.M. the next day), your browser would use the old data. I've set the AJAX request so it should no longer cache the data, and at this point the revision just needs to be approved. Please let me know if this issue continues in a few days (to make sure there is no cached data).
Thanks for reporting this,
Blaster Niceshotwallcontribs 20:18, October 4, 2016 (UTC)

Weird score

Sometimes I got this very weird score, like xxx.447396.4473, and RailWam can't create comparison value right below. I don't know is it RailWam issue or Wikia itself

Dai ca superman (talk) 14:52, October 6, 2016 (UTC)

I've discovered why this issue happen. When many users log the score multiple times for one day make span id is duplicate, RailWam can't display value properly.
Can you make it log for one time per day and disable log alert for all users when score's already logged by someone else?
Dai ca superman (talk) 13:42, October 7, 2016 (UTC)
Thanks for looking into the cause of this issue. The script should already check if the score has been logged, so I'm surprised that this would be happening. I found the wiki where you are having this problem via Google, so I will investigate there and figure out what is causing this bug.
I'll let you know on this talk page when I start working on a solution.
Blaster Niceshotwallcontribs 01:26, October 9, 2016 (UTC)
Sorry for the very late reply. I've had a lot of work recently and frankly, the bug with the log score alert is really stumping me. I haven't been able to reproduce the issue for anything.
I will not be doing a separate bug fix for this issue because I have decided to eliminate the WAM log entirely for the top 5,000 wikis, including the one you are having difficulty on. The new method I will be using to get WAM data can get it on a specific day, and therefore it is no longer necessary to have admins log in every day to log the scores.
Instead, I will be creating something I am calling the WAM Database. Basically, you'll be able to enter scores, ranks, a date or last ## days and the script will fetch the appropriate data and format it into a list of entries. It will be able to go back in time for data as far back as the API can go.
The new rail module that displays rank has already been completed, and I am making good progress on the database so far, but I do not have a projected completion date.
Blaster Niceshotwallcontribs 22:19, October 23, 2016 (UTC)

Suggestion

What about adding a chart function that displays the WAM over the last month based on the registered entries? I'm not suggesting to displaying it by default, I was thinking more like you click something and then the module content will be replaced with the chart. leviathan_89 @fandom 11:59, October 12, 2016 (UTC)

Graphing WAM data is something planned for future RailWAM releases. There are some more pressing updates needed at the moment (bug fixes, Monobook support), so this functionality may not be added for a little while. However, it is definitely on the radar and will be added at some point. Thanks for suggesting!
Blaster Niceshotwallcontribs 19:05, October 12, 2016 (UTC)

This is something that I'd also be very interested in. The choice of logging format is interesting to me, whether it be JSON or XML and will purely use a Javascript charting framework. Alternatively, will the charting itself be built through a wiki extension module reading data list templates. Before I discovered this module, I'd considered whether the best design would be to have a bot poll the WAM daily using AJAX but during install retrieve up to the past five years then record into templates for later retrieval. I imagined writing it to an SQL database! LOL. What I found curious was the need to have manual user intervention to record the data to the log. Anyhow, I see that elsewhere you've mentioned using a database so that works for me. As far as the actual charting design goes, I'd love it if the range was variable using a slider to indicate start date and end date range so we can see the trend over a few TV seasons. The shows many wikis are based on more than six years sometimes and the trends would be nice to see and I pictured doing charts for roughly five. Thanks for your efforts. AlbertEpstein (talk) 02:07, November 26, 2017 (UTC)

Hi, thank you for your detailed message!
When this script was first published, the logging system was automatic. However, because logging the score requires editing under the user's account (or worse, their IP), it was changed to the manual "log alert" format you see now. In the update approved yesterday, the autoLogForUsers parameter was added as a sort of opt-in automatic logging. This is also one reason that all previous WAM data could not be logged upon install.
I am also opting for a future "log old data" button due to the rate limit for requests provided by Wikia. The API endpoint used to get data from the WAM index can only get data for one day at a time, so retrieving data from several years would likely require thousands of requests. Unfortunately, Wikia said that these requests should be limited to 1 request every 10 seconds (6 requests/minute). Thus, it would essentially force the user to stay on the same page for days in order to perform all the requests.
On another topic, I really like the idea of using a slider for date ranges. The current database has a "last ## days" function that does a similar function, but it would probably work better with a range slider. It would also easily apply to the graphing function as well, once that is developed.
In terms of the charting design, I don't have much planned out for it yet as I have been mostly focusing on getting the version 2 update out and converting the translations to use I18n-js. However, as I believe it will be a very important part of the database, I plan on releasing it in version 3 along with the "log old data" function. At this point, the graph data will probably be retrieved the same way as it is for the other functions: first from the WAM log, then day-by-day from the API. Unfortunately, that also means the rate limits still apply.
Again, thanks for your suggestions/questions!
Blaster Niceshotwallcontribs 01:51, November 27, 2017 (UTC)

It's not working

From last few day Railwam page is gone from almost every wikis I edit, no one has done any edit on Js page. The wikis i edit ToG, Unordinary and Magician. Thanks.

Clash . Bikash 04:52, April 2, 2017 (UTC)

I also wanted to report that the script don't work for the last 2 weeks. 40px-Greenflych1.gif Talk Mix Gerder Contributions
Thank you for reporting this. The issue seems to be that Wikia changed the permissions on the API the script is currently using to get the data. I was already working on an update that would have fixed this issue, so I will try to publish a modified version of that update as soon as possible.
Blaster Niceshotwallcontribs 20:43, April 8, 2017 (UTC)
I published a revision that should fix this issue yesterday, so it should be fixed once it is approved.
Blaster Niceshotwallcontribs 15:15, April 9, 2017 (UTC)
Oh weird...Revision has been rejected. Washing_Machine.pngBenny✍ 08:46, April 11, 2017 (UTC)
Just got it...waiting to see if it will work...I'll Get The Can!-FiveCraft 21:43, April 11, 2017 (UTC)
I am currently writing an email to Wikia addressing the issue and the rejection. I have come to the conclusion from hours of trying to fix this that the data is simply inaccessible through direct means. The rejected revision uses a third-party service from Yahoo called YQL to access the data, and I assume this is why it was rejected.
I anticipate that this issue could take while to sort out, largely depending on whether Wikia is willing to approve the rejected revision or allow wikis to make requests to that particular data. I would recommend copying the rejected revision code into your personal JS if you need to keep track of the WAM score with this script.
Blaster Niceshotwallcontribs 00:29, April 13, 2017 (UTC)
Hello sir do i have copy this whole thing or the one in the RailWAM page
Clash . BikashTalk 05:31, April 15, 2017 (UTC)
Sorry for the late reply, and you will have to copy the whole thing. Since the revision was rejected, the import won't work even in personal JS.
Blaster Niceshotwallcontribs 03:45, April 18, 2017 (UTC)
Thanks.
Clash . BikashTalk 20:09, April 19, 2017 (UTC)
Strange. A small fix for the new rail styles update by KockaAdmiralac that I submitted yesterday (thank you for that, KockaAdmiralac) was approved, even though it has the YQL requests. I have checked on two wikis that use it and RailWAM is up and running again. If it isn't running on your wiki, it is because the old, dysfunctional version is still in your cache.
I don't know if JSRT team changed its mind on YQL because Wikia hasn't replied to my email yet. (I only had a chance to send it yesterday due to a family emergency last week.)
Blaster Niceshotwallcontribs 19:35, April 20, 2017 (UTC)
It'll work if i remove the js form my global js. Edit- it works. thank you very much sir.
Clash . BikashTalk 07:14, April 21, 2017 (UTC)

Weird Language

Over on the little shop of horrors wiki, it's appearing in an odd language. Please help! I can't read what ever this is!I'll Get The Can!-FiveCraft 16:35, April 21, 2017 (UTC)

It looks like it is appearing in Polish. The issue is that, in your RailWAM configuration in your site's MediaWiki:Common.js, you have lang:'English'. This is not a valid value for that option, as you need a two-letter language code. (See Option List and Defaults on the RailWAM documentation page for a full list of options, descriptions, and their accepted values.) If you want the English language, your configuration should look like this:
window.railWAM = {
     logPage:'Little Shop Of Horrors Wiki:Log of WAM Scores',
     loadOnPage:'Special:WikiActivity',
     lang:'en'
}
Technically the lang:'en' line is not needed because the script defaults to English. If you ever need a different language, you can find the two-letter codes in the "Languages" section of the infobox on the RailWAM page.
If you need any more help with configuring RailWAM, please let me know.
Blaster Niceshotwallcontribs 19:30, April 21, 2017 (UTC)

Adding WAM score edit

Would it be possible to make the "adding wam score" edit a bot edit? I'm skeptical that would be possible for normal users, but maybe it should be possible for admins. I would also suggest to change &summary=RailWAM: Adding new WAM score entry to &summary=[[w:c:dev:RailWAM|RailWAM]]: Adding new WAM score entry as wiki links should work in edit summaries (and maybe localize the message too?). leviathan_89 @fandom 22:01, April 25, 2017 (UTC)

It was actually the original behavior of the script to automatically log the score when someone would visit the wiki, but this was changed due to people visiting wikis and unexpectedly editing when the script was used site-wide (see discussion at the top of this page). I can certainly look into a selective-user solution that will auto-click the log button. Off the top of my head, I could probably add in an option to specify users that will have the script automatically log the score under their user name when they visit the wiki.
If you are using RailWAM on a wiki that is consistently in the top 5000 on the WAM board, then it may not be necessary to log the score every day in the next major update. The script will be getting data from a different location that can also get the day's previous score, but only data for the top 5000 is available with that. I should note that I believe logging the scores anyway would reduce loading times. (You can see development versions on w:c:bniceshottest:User:Blaster Niceshot/wikia.js, but I don't recommend using them site-wide because they are not always stable.)
As for the summary link, I think that is a good idea and will see if I can add it when I have time. The localization part will have to be pushed until the next major update because there will already be a lot of new translations needed, and I would prefer to ask for translations when I have the full list.
Please let me know if you have any more suggestions/questions.
Blaster Niceshotwallcontribs 20:13, April 26, 2017 (UTC)
I probably didn't explain myself well, with "make it a bot edit" I wasn't implying an "automated" edit, but I was actually talking about the bot flag, meaning "make the edit hidden from RC". I'm looking forward next big update! leviathan_89 @fandom 20:18, April 26, 2017 (UTC)
That should be a pretty simple thing to add. I still like the automated option idea, so I will likely put in that in the next update as well. I will add in the bot flag option when I get a chance.
Blaster Niceshotwallcontribs 00:36, April 27, 2017 (UTC)
I have submitted the revision with the summary link, so hopefully you will be able to see that in a day or so once it is approved. I will see if I can add in the bot flag relatively soon, but I wanted to get this first revision published in case I can't.
Blaster Niceshotwallcontribs 20:25, April 28, 2017 (UTC)

CSS-Bug

On browsers expect chrome, #railwam-notlogged-text's background property cause a bug so the background-color is not set. For wikis with bright background-color that means that the notlogged-text is unreadable. Here's a suggestion, how to fix that:

/*
    fix for RailWAM-Script for browsers other than chrome,
    caused by too complex background property shorthand with buggy subproperty
*/
#railwam-notlogged-text {
    background-color: rgb(164, 119, 25);
}

or you just rewrite the background property and avoid using such a complex shorthand which easily could cause an error just as it happend in your case.

Agent Zuri Über mich Nachrichtenseite Ankündigungen 17:29, June 3, 2017 (UTC)

A version with this bug fixed has been submitted for review. You should see it fixed within a few days.
Blaster Niceshotwallcontribs 15:52, June 4, 2017 (UTC)
Great! Thank you :)
Agent Zuri Über mich Nachrichtenseite Ankündigungen 16:02, June 4, 2017 (UTC)

more info

Could you use this api endpoint to provide more information? http://www.wikia.com/api/v1/WAM/WAMIndex?wiki_id=1965&sort_column=wam&sort_direction=ASC&limit=20&fetch_admins=false&fetch_wiki_images=true Agent Zuri Über mich Nachrichtenseite Ankündigungen 17:29, June 3, 2017 (UTC)

That is already planned in a future update, but it is not ready for release.
Blaster Niceshotwallcontribs 15:52, June 4, 2017 (UTC)
Okay, I looking forward to when this will be implemented in the future.
Agent Zuri Über mich Nachrichtenseite Ankündigungen 16:02, June 4, 2017 (UTC)

namespaces

You could simply use this template to outline the namespaces with ids to the users. Agent Zuri Über mich Nachrichtenseite Ankündigungen 01:59, June 4, 2017 (UTC)

Logging score

I don't see anymore the link for logging the daily score. leviathan_89 @fandom 17:52, June 15, 2017 (UTC)

Because of the change of classes in the new header, some of the colors in the logging notification were not displaying properly. A new version with updated classes was approved today. Please let me know if that fixed the issue.
Blaster Niceshotwallcontribs 19:05, June 19, 2017 (UTC)
No its not showing the logging link in ToG and UnOrdinary wikia. Clash.BikashTalk 06:50, June 20, 2017 (UTC)
I checked the RailWAM version for ToG and UnOrdinary, and both are being served the old version. I'm seeing the new version and the functional log alert on other wikis including my test wiki (my personal JS), the Color Switch Wiki (site-wide JS), and the Helck Wiki (site-wide JS). The new version also functions normally when I run it in my console on Community Central. I'm not sure why the cache has only updated on certain wikis, but there is nothing I can do to force Wikia to update it on others. I will monitor the wikis where it is not working over the next few days. Please let me know if you start seeing the new version.
Blaster Niceshotwallcontribs 16:56, June 20, 2017 (UTC)
Now its working everywhere except TOG, i checked in few Site wide and in few personal JS, Thanks. Clash.BikashTalk 07:16, June 21, 2017 (UTC)

Score Showing Twice

Wam

Hello sir, I'm having a issue in one my wiki. it's showing the score twice. mean yesterday's score and current score. and because of it the different between the score showing unknown. and it's install as site wide.

Colour of WAM logo is different on different pages. somewhere it's black some wiki link colour ane some where its brown Clash.BikashTalk 07:23, July 13, 2017 (UTC)

Look like the twice issue been solved just by clearing few score.Clash.BikashTalk 08:47, July 13, 2017 (UTC)
The score should not be showing twice even if it is logged multiple times. I will look into this issue. I fixed the WAM logo color bug a few days ago, so if you are continuing to see the black version it must still be in your cache.
Blaster Niceshotwallcontribs 16:08, July 13, 2017 (UTC)
If you look into it, you'll find the the logo showing different colour in different pages, not only black. Clash.BikashTalk 07:35, July 15, 2017 (UTC)
I have submitted a revision that should fix both the double score bug and the WAM logo color issue.
Blaster Niceshotwallcontribs 16:59, July 15, 2017 (UTC)

Displayed beside rail

Bildschirmfoto 2017-07-13 um 13.28.54

Hi, in my wiki the rail module is prepended to WikiaRailWrapper instead of it's child WikiaRail so railWAM shows up beside the other modules inside WikiaRail. Agent Zuri Profile Message Wall Blog 11:28, July 13, 2017 (UTC)

I have experienced this as well.
UrsuulTalkCMDate11:49 AM Thursday, July 13, 2017 (UTC)
Same for me too. Clash.BikashTalk 13:33, July 13, 2017 (UTC)
Same here. I was forced to temporarily remove it in the wiki I administer.

Signed JustLeafy ( ͡| ͜' ͡| ) USER WALL 13:54, July 13, 2017 (UTC)

Thanks for reporting this. A revision to fix this issue has been submitted for review. Please let me know if the issue persists once the revision is approved.
Blaster Niceshotwallcontribs 16:08, July 13, 2017 (UTC)
The new revision has been approved, and I am seeing the module displaying correctly on the German Harry Potter wiki linked above. If you aren't seeing it fixed yet, the old version is likely still in your cache.
Blaster Niceshotwallcontribs 19:09, July 13, 2017 (UTC)
now it works fine. Thank you! Agent Zuri Profile Message Wall Blog 19:19, July 13, 2017 (UTC)

────────────────────────────────────────────────────────────────────────────────────────────────────

Bildschirmfoto 2017-07-14 um 18.49.36

But on the main page it still shows up on the wrong place (child of .home-top-right-ads instead of .rcs-container Agent Zuri Profile Message Wall Blog 16:55, July 14, 2017 (UTC)

It looks like someone added some code that is causing it to break. It shouldn't even be showing up on the main page.
I will add in a feature from the development version early to fix this.
Blaster Niceshotwallcontribs 17:59, July 14, 2017 (UTC)
now it works on the main page as well. Thank you! Agent Zuri Profile Message Wall Blog 21:25, July 16, 2017 (UTC)

Score trimmed

I've noticed that once you log the score, the WAM score shown afterwards is trimmed down to just one number (e.g. "9"). leviathan_89 @fandom 11:08, July 19, 2017 (UTC)

This was caused by an error I made in fixing another bug. The score should display normally once the revision is approved.
Blaster Niceshotwallcontribs 14:57, July 19, 2017 (UTC)

Remodeling the WAM Module

ModernWAMModule

Hey there. If you are also good with CSS, can you maybe try remodeling the WAM module so that it can look consistent to the other modules? It should look like this:

Thanks!

~Signed JustLeafy ( ͡| ͜' ͡| ) USER WALL 16:16, September 5, 2017 (UTC)

Hi, thanks for your suggestion! I like the compactness of that design, but I think the slightly-changed design coming up in the next update is clearer because the differences for both the score and rank will be shown. Here is a photo:
Railwam-v2-preview
As for the buttons, I'm concerned that the WDS buttons would either make those links disproportional to the size of the score/rank or the link text would be extremely small since they have quite a bit of padding. Please let me know if you have other suggestions or if I misunderstood something from your concept.
(As a side note: At this point, the next update is essentially waiting on YQL developers to fix some issues that are affecting RailWAM and on when I have time to organize and submit new translations to the Language Brigade and finish some bug testing.)
Blaster Niceshotwallcontribs 20:05, September 8, 2017 (UTC)

Wrong WAM

Is their any problem or updates in the script, because from yesterday score does not match with Official pages score Clash.BikashTalk 04:45, November 2, 2017 (UTC)

I believe the issue here is more with Wikia's page than RailWAM. I investigated this issue a while ago, and it seems that the API endpoint used to get the data for RailWAM tends to update faster than the offical page. The official page shows the correct score when you change the date to the most recent date. (The data is still there, the default date in the date selector is just slow to update.)
If that does not resolve the issue, please let me know. I have noticed changes in the times that Wikia updates the WAM while testing the development version, which could also be the source of the discrepancy.
Blaster Niceshotwallcontribs 01:35, November 9, 2017 (UTC)
Hey sorry forgot to say that this doesn't accrue again. Clash.BikashTalk 05:35, November 26, 2017 (UTC)

New update

Wam2

It's a great update a lot feature has been added. Thank you.

It's displaying twice, is it because i have installed personally and also exist in site wide for that wiki? i mean it not happening here on Dev wiki.

Thank You Clash.BikashTalk 05:45, November 26, 2017 (UTC)

Hi, Clash.Bikash.
This is caused by the fact that the new version uses a different load variable than the last and should be fixed once the cache updates for the version that is behind. Unfortunately, there isn't anything I can do to speed that up (the cache would probably be clear by the time a script revision would be approved). Please let me know if this is not fixed within a few days (or when both modules appear the same).
Thanks for reporting this!
Blaster Niceshotwallcontribs 16:40, November 26, 2017 (UTC)
Ah, Okay
I think if rank Number increase then it should show orange down button because its rank decrease this why the number increased. (Ex. From 154 to 159, the number increased 4 step but rank decreased)
Clash.BikashTalk 19:18, November 26, 2017 (UTC)
Your thoughts are correct. It must have slipped by during testing. Thanks for reporting! I will update this when I get a chance.
Blaster Niceshotwallcontribs 20:40, November 26, 2017 (UTC)

How to add the new style

Hi. I would like to add the new style of this module. How do I do it? ~Signed JustLeafy ( ͡| ͜' ͡| ) USER WALL 06:45, November 26, 2017 (UTC)

Hi, JustLeafy.
The module's style will update automatically once the cache clears. It seems that the caches for some of the top 5000 WAM wikis have been slow to update; your wiki is probably still on version 1. Please let me know if it does not update within a few days.
Thanks for reporting this!
Blaster Niceshotwallcontribs 16:40, November 26, 2017 (UTC)
You're welcome. ~Signed JustLeafy ( ͡| ͜' ͡| ) USER WALL 17:00, November 26, 2017 (UTC)
The module has recently modified to the latest version, so it's not a problem anymore.
Edit: I have navigated around the new version of your script, and I have to say, you have put a lot of effort in it, which is amazing. In my opinion, this is currently one of the best scripts in the FANDOM Open Source Library. Keep up the good work!

~Signed JustLeafy ( ͡| ͜' ͡| ) USER WALL 13:18, November 27, 2017 (UTC)


Sorry for the late reply; I haven't been able to reply on most weekdays for the past few months due to schoolwork.
Thank you for the kind words! Please let me know if you have any feature suggestions.
Blaster Niceshotwallcontribs 21:14, December 1, 2017 (UTC)

Title

Is there any reason why the "Latest WAM score" title has each word capitalized? The strings aren't (you can see this even in English). leviathan_89 @fandom 20:43, November 26, 2017 (UTC)

Hi, leviathan_89.
The capitialization was changed through CSS in order to make the module more consistent with the others (like "Recent Wiki Activity"). Has this change caused issues with non-English languages?
Thanks for reporting!
Blaster Niceshotwallcontribs 21:00, November 26, 2017 (UTC)
I think every-word-capitalization is mainly an EN thing and yes, for Italian that would be unnecessary. Even for English is wrong because articles / preposition should not be capitalized. I believe the optimal solution is to control capitalization with the strings, not through CSS (unless you opt for all capitalized for example). leviathan_89 @fandom 01:11, November 27, 2017 (UTC)
I will change the CSS so that the strings for other languages are not affected once I get a chance. However, I still believe the every-word-capitialized for English is correct, as the first and last words of titles should always be capitialized. This is also the way the other English modules are capitialized.
Blaster Niceshotwallcontribs 01:59, November 27, 2017 (UTC)
Articles and preposition shouldn't be capitalized and for some reasons I thought there was an article in this module, so I guess EN is fine. "This is also the way the other English modules are capitalized." - they aren't capitalized through CSS though, the strings are simply made like that. That's why I don't see any reason to do it with CSS when 1) strings were already capitalized correctly, 2) it creates issues with other languages and 3) CSS potentially doesn't distinguish articles/preposition (though in this case it doesn't matter). leviathan_89 @fandom 02:17, November 27, 2017 (UTC)
Can I remove then that CSS since it doesn't have a purpose? (I've already capitalized the EN title string and if other languages needs capitalization, they should edit the string themselves) leviathan_89 @fandom 18:12, November 29, 2017 (UTC)
Sorry for the late reply; I haven't been able to reply on most weekdays for the past few months due to schoolwork.
Thanks for fixing/submitting the English string. I will edit the CSS shortly. I think I should have been clearer when I referred to "the way" the strings are capitalized; I meant to say that the other modules have all beginning, ending, and important words capitalized, at least for the English version.
Blaster Niceshotwallcontribs 21:14, December 1, 2017 (UTC)

trim input of "search data" input field

If you type in a number and after it a trailing space, you got an error. When trimming it, you should get only the number if no additional non-space character is present. Agent Zuri Profile Message Wall Blog 12:00, November 27, 2017 (UTC)

Sorry for the late reply; I haven't been able to reply on most weekdays for the past few months due to schoolwork.
Thanks for reporting this! I just need to ensure that I did not inadvertently break anything, and the revision with a fix for this issue will be submitted for review.
Blaster Niceshotwallcontribs 21:14, December 1, 2017 (UTC)

Suggestions

  • I bet it's complicated, but wouldn't a chart for score & rank be useful (or just interesting)? I saw a few open source scripts that plot graphs online, maybe they can be copied for this script (example).
  • Not that matter, but is there a reason why the wam score is not logged in a list anymore?
  • About botUsers, I don't have a bot flag on my account, but since I can bot myself shouldn't it work for me as well? (this basically matter to staff accounts and a few wiki admins maybe, I'm just curious) leviathan_89 @fandom 14:50, December 4, 2017 (UTC)
Hi, thank you for your suggestions!
  1. I agree that the graphing function would be extremely useful; it is already planned for version 3. I am still debating on whether I want to use an outside library for that or write up something myself.
  2. The WAM data was changed to no longer log in a list because I think it would be rare for users to need to see the log. The database can display the same data in a much more user-friendly format. Condensing the data makes it harder to tamper with and also takes a few bytes off the page.
  3. Unfortunately, the botUsers limitation is imposed by the editing API--it will not mark any edits as bot edits unless the user has the bot flag on their account even if I try to tell it to. There actually isn't any code within RailWAM that checks for the flag.
Blaster Niceshotwallcontribs 21:56, December 8, 2017 (UTC)
Every time i log the data the size of data increase way to much. Clash.BikashTalk 11:23, December 17, 2017 (UTC)
Hi,
RailWAM seems to be logging scores for multiple days. This is a known bug; I will have to take a look at it next week, as I will likely not have time this week. (All my teachers seem to be cramming everything in the week before holiday break.)
Thanks for reporting this,
Blaster Niceshotwallcontribs 05:44, December 18, 2017 (UTC)
I have submitted a revision that should fix this issue, which should be live within the next few days.
Blaster Niceshotwallcontribs 16:59, December 23, 2017 (UTC)
The aforementioned revision has been approved and should show on your wiki once the cache updates.
Blaster Niceshotwallcontribs 16:11, December 26, 2017 (UTC)

Special WikiActivity Feed

Yo! I was wondering if it was possible to add the RailWAM in a way that it only appears on the 'Special:WikiActivity' feed. I want everyone to be able to see it on the wiki, but only from there. Thanks in advance. Killer kev (talk) 21:26, December 9, 2017 (UTC)

Hi, Killer kev,
You can make RailWAM appear on certain pages only with the loadOnPage configuration option. In this case, you can add this code to MediaWiki:Common.js:
window.railWAM = {
     loadOnPage: 'Special:WikiActivity',
};
Make sure you submit the code for security review in the right rail after you publish it. It will be live in a few days once it is approved.
Please let me know if this does not work or if you need more help.
Blaster Niceshotwallcontribs 02:14, December 10, 2017 (UTC)

Much appreciated Killer kev (talk) 16:01, December 10, 2017 (UTC)

Unfortunately, it didn't work. I'm seeing the rail on every page of the Wiki despite adding the code as shown. Killer kev (talk) 15:45, December 12, 2017 (UTC)

Hi,
There must be a bug with the loadOnPage variable, as I am seeing it on all pages as well. I will have to take a look into this next week, as I will likely not have time this week. (All my teachers seem to be cramming everything in the week before holiday break.)
Thanks for reporting this,
Blaster Niceshotwallcontribs 05:44, December 18, 2017 (UTC)
I have submitted a revision that should fix this issue, which should be live within the next few days.
Blaster Niceshotwallcontribs 16:59, December 23, 2017 (UTC)
The aforementioned revision has been approved and should show on your wiki once the cache updates.
Blaster Niceshotwallcontribs 16:11, December 26, 2017 (UTC)

All is good on my end. Much appreciated!! Killer kev (talk) 18:47, December 27, 2017 (UTC)

Anons

If loaded sitewide, will it be shown to anon users? What about adding an option to control if it should be displayed to anon or just registered users? leviathan_89 @fandom 22:27, December 10, 2017 (UTC)

Hi, leviathan_89,
RailWAM currently loads for all users regardless of whether they have an account. I like the idea of an option for restricting the module's visibility to registered users only though, especially considering the amount of ads displayed for anons. This will probably be added in version 3, or earlier.
Blaster Niceshotwallcontribs 22:34, December 10, 2017 (UTC)
I have published a revision with a new option called showToAnons. It should be live within the next few days. (Hopefully tomorrow, since it is a week day.)
--Blaster Niceshotwallcontribs 02:07, December 28, 2017 (UTC)

Auto-log edit

Is this edit normal? Seems a rather big for just one day... leviathan_89 @fandom 16:36, December 16, 2017 (UTC)

Hi,
You are correct; that behavior is abnormal. It seems to be logging scores for multiple days. I will have to take a look into this next week, as I will likely not have time this week. (All my teachers seem to be cramming everything in the week before holiday break.)
Thanks for reporting this,
Blaster Niceshotwallcontribs 05:44, December 18, 2017 (UTC)
I have submitted a revision that should fix this issue, which should be live within the next few days.
Blaster Niceshotwallcontribs 16:59, December 23, 2017 (UTC)
The aforementioned revision has been approved and should show on your wiki once the cache updates.
Blaster Niceshotwallcontribs 16:11, December 26, 2017 (UTC)

Score Logging Bug

Hello. Me and other users in the Pixel Gun Wiki are experiencing a bug with your script. Every time we click on the "Log Data" button, it re-appears once you go into another page. You can go to the link and find that this bug is occurring. Fix this problem. ~Signed JustLeafy ( ͡| ͜' ͡| ) USER WALL 11:19, December 27, 2017 (UTC)

Hi, JustLeafy,
This appears to be part of a bug that was reported earlier. It should have been fixed as the revision was approved yesterday; this could simply be a matter of your cache needing to update. I will still look into whether something else is causing it, though.
Blaster Niceshotwallcontribs 16:08, December 27, 2017 (UTC)
I performed a test that simulates your wiki, and everything works correctly with the current version of the script. Like I said before, this seems to be a cache issue, which should resolve itself within a few days. I will manually add today's data to your wiki's WAM log so that the alert will stop showing for today.
Blaster Niceshotwallcontribs 16:58, December 27, 2017 (UTC)
Now, we've the same error in Harry Potter Lexicon but more than two weeks now...
Agent Zuri Profile Message Wall Blog 13:22, January 12, 2018 (UTC)
I am seeing this bug on your wiki as well. I am currently looking into fixing this, though it may take a little longer than normal because I am having difficulty reproducing it on my test wiki.
Thanks for reporting this!
Blaster Niceshotwallcontribs 23:06, January 13, 2018 (UTC)
I took a thorough look at the code being loaded onto your wiki, and it seems you are getting an old version of the RailWAM Library (imported by RailWAM) from before I fixed the bug causing this issue. It is strange that this version would still be in the ResourceLoader after two weeks. I will try to see if I can find a way to get it to update, though it will probably come down to a matter of waiting.
Blaster Niceshotwallcontribs 23:06, January 13, 2018 (UTC)
I checked your wiki late last night and this morning, and it seems it is being served the correct version. I was even able to log the score last night. Can you try logging the score to confirm that it didn't just update for me?
Thanks,
Blaster Niceshotwallcontribs 16:31, January 15, 2018 (UTC)
Thanks a lot for your effort! Now, it works. Agent Zuri Profile Message Wall Blog 17:59, January 15, 2018 (UTC)

Database option alignment

Can't the option list make better use of the space available to avoid that double line? I guess it depends on the strings, but there is still room to leave it on a single line. https://imgur.com/a/sQq4N leviathan_89 @fandom 23:11, December 30, 2017 (UTC)

Hi, leviathan_89,
Thanks for reporting this. This issue does not appear in the English version since the strings are a bit shorter; thus, it was undetected. I have published a revision that should fix this issue, which should be live in a few days.
Blaster Niceshotwallcontribs 17:18, December 31, 2017 (UTC)

Appearance issue with the FAQ popup

Hello. I would like to inform the author that the FAQ popup from RailWAM has some minor appearance issues. First of all, one of the properties for the the background is set to rgba(0.0.0.0) which is 100% transparent, and that makes the text much harder to read. Also, the width (896px) is too long and doesn't fit my screen's resolution. Setting the width to 50% (to make sure that there are no parts that go off-screen on a smaller resolution), and the background to white or whitesmoke will fix this problem.

Issue-with-railwam-faq-help

10:45, March 2, 2018 (UTC)


Hi, Useful,
There should be a FAQ designed for smaller screens (<768 px) that would be displayed in this case, but I believe there is an issue with how RailWAM calculates the screen width that is causing this. I don't think that this should take terribly long to fix, but it will likely be a few days until revisions are approved. I will start working on this when I get a chance (probably later today).
However, I'm not seeing the issue with the transparent background on my test wiki. Could you provide a link to your wiki so I can investigate further?
Thanks,
Blaster Niceshotwallcontribs 19:17, March 2, 2018 (UTC)
Here is my Wiki 05:46, March 3, 2018 (UTC)
I have submitted a revision that should fix both issues; it just needs to be approved by the JS review team before it can go live. Please let me know if you are still seeing this issue/start seeing new bugs in a few days. If you want, you can check the code's current status on the right-hand side of the code page.
Blaster Niceshotwallcontribs 00:45, March 4, 2018 (UTC)
The aforementioned revision has been approved. It still may still take a day or so for the old version to be cleared from your cache, though.
Blaster Niceshotwallcontribs 23:30, March 4, 2018 (UTC)

Entire text of module disappears

Why did all text in template disappear after module was updated? 40px-Greenflych1.gif Talk Mix Gerder Contributions 09:34, March 8, 2018 (UTC)

Hi, Mix Gerder,
I'm not seeing this issue on my test wiki and several other wikis that I know use RailWAM. Could you provide a link to your wiki so I can investigate further? Are you importing RailWAM through personal or sitewide JS?
Thanks for reporting this,
Blaster Niceshotwallcontribs 16:18, March 8, 2018 (UTC)
This happens absolutely on all wikis. I imported to global & sitewide JS, but even after removing the script from global JS this problem has remained on wiki where RailWAM was connected. 40px-Greenflych1.gif Talk Mix Gerder Contributions 17:13, March 8, 2018 (UTC)
I am still unable to reproduce this issue, even after disabling my cache with dev tools. Are you viewing RailWAM in English or a different language? What is/are the language(s) of the wikis you are viewing? Are there any error messages in your browser console?
Blaster Niceshotwallcontribs 18:11, March 8, 2018 (UTC)
Sorry, problems with my browser, in another browser (with all JS, CSS and extensions) everything is fine. 40px-Greenflych1.gif Talk Mix Gerder Contributions 12:15, March 9, 2018 (UTC)
I'm glad to hear that the issue has been resolved. Thanks for letting me know!
Blaster Niceshotwallcontribs 20:32, March 9, 2018 (UTC)

Template

This is just a suggestion, but is it possible to have a template for RailWAM, like there is for DiscordIntegrator?

 Leo-watch-wikia.pngamerichino talk  +  22:11, July 28, 2020 

Hi, Americhino,
Template modules for pages are currently a planned feature. I'm hoping I can get them into the next update, but I am currently focusing on revamping the database and creating a graphing feature. If not in v3, I will probably add them in v4. I'm sorry that I can't be more specific about when they will be added. Thanks for your interest!
Blaster Niceshotwallcontribs 12:29, May 21, 2018 (UTC)
Hi Americhino,
I'm replying to this topic again because I have decided that the WAM module template feature will have to go into v4, unfortunately. I want to get v3 published within the next two weeks before school starts, when I will have a lot less time. I haven't even had time to begin looking into this feature yet, so I don't think there is any way that it could be created and tested within that timeframe. However, I can guarantee that these features will be in v3:
  • Score, rank, and vertical rank graphing (finished today)
  • Database revamp with date picker (done)
  • Dashboard (done)
  • Old data logger (just needs an interface)
  • Improved color retrieval from wiki theme (done)
  • Some new config options, one of which should help ensure data accuracy for wikis below the top 5000 threshold (done)
  • Some other backend updates (mostly done)
Blaster Niceshotwallcontribs 01:36, August 7, 2018 (UTC)

Can't open

Hey,

I visited MOMOLAND Wiki today. I will edit my profile, but, it contains:

"RailWAM run into problem........." so I can't open it. I don't know what it means.

BlackpinkJisoo1995 (talk) 12:24, July 30, 2018 (UTC)

Hi BlackpinkJisoo1995,
I visited the MOMOLAND Wiki, and RailWAM is working fine for me. Could you check again and see if it is working again? It's possible there was an issue with a service RailWAM uses that has since been fixed, as there have been no recent changes to RailWAM.
If it's still not working, I will need you to provide some more information:
  • Could you provide a link to the wiki? I checked momoland.wikia.com, but I want to make sure we are looking at the same wiki.
  • What device are you using? (Computer, iPad, etc.)
  • What browser are you using?
  • Do you update your browser regularly or is it an old version?
  • How long have you been having this issue?
  • Were you logged into your account when you had this issue?
  • Are there any red errors in your browser console? (You don't need to tell me the yellow ones. Those are usually from FANDOM's internal code.)
    • If you don't know how to open your console, Ctrl/Cmd + Shift + J should work in Chrome, Firefox, and Edge. Let me know if this doesn't work.
Thanks for reporting this,
Blaster Niceshotwallcontribs 15:38, July 30, 2018 (UTC)

Configurations not working

None of the window.railWAM I added on the YJ Wiki seem to be working, despite having been approved. ― Thailog 21:06, August 23, 2018 (UTC)

Hi Thailog,
It looks there is are some small (and quite common) errors in your Common.js file. First, you need to add commas after each of the configuration options. You also need to omit quotes around the words true and false. This configuration should work properly:
window.railWAM = {
    logPage:"Project:WAM Log",
    autoLogForUsers:"Thailot",
    botUsers:"Thailot",
    showLogAlert:false,
};
Many times Fandom's editor will catch these errors and place a little red "X" to the left of where the issue is. The yellow triangles indicate warn you of an issue that won't necessarily break your code but that should still probably be fixed. (Yellow triangle issues can still cause the code to break in some circumstances.)
Fandom will still approve code even if it has these errors; they only do a security check.
If you are still having trouble even after fixing all the red errors, sometimes pasting code into JSHint will help. This site finds errors in your code and shows warnings that I have found to be a little more descriptive than those from Fandom's editor.
Is there a part of the configuration section of the documentation that you found confusing? I might be able to make it clearer on the page.
Blaster Niceshotwallcontribs 00:17, August 24, 2018 (UTC)
I caught the commas error after I posted here, but the botUsers doesn’t seem to be working. Unless it’s not supposed to work when it created the log page? Also, do I need to visit the wiki with that account to log WAM data, or the script will do it eventually? ― Thailog 00:35, August 24, 2018 (UTC)
I can confirm that there is a bug with botUsers. I believe I found the issue, but I need to test my fix before I submit it for review.
Unfortunately, the script can't log WAM data without you visiting the wiki because RailWAM runs on your client, not on Fandom's servers. However, with Fandom's recent transition to HTTPS, I am looking into ways to log data without making a user visit the wiki. But, this is entirely theoretical; I haven't done any testing with this yet.
Blaster Niceshotwallcontribs 15:34, August 25, 2018 (UTC)
I have just published a fix for this issue, but it needs to be approved by the JS review team before it goes live. They usually don't review over weekends, so the fix will probably be live by Monday or Tuesday.
Thanks for reporting this bug!
Blaster Niceshotwallcontribs 17:19, August 25, 2018 (UTC)
The fix for the botFlag issue has been approved. Let me know if you still have this issue in a day or so (after the old version should have been cleared from your cache).
Blaster Niceshotwallcontribs 15:37, August 26, 2018 (UTC)
It's working, thanks! ― Thailog 17:34, August 26, 2018 (UTC)

Suggestion: Template version?

I know that this is possible on codes like these, could you make a template version of this for use on Wikis that have it? It would allow it to appear on some main pages. Thanks.

LeTesla (talk) 15:41, August 28, 2018 (UTC)

Hi LeTesla,
A WAM module template for pages is something that will definitely be in version 4 of RailWAM and is one of the most requested features. RailWAM is currently on version 2, but version 3 (with WAM graphs!) is pretty close to release. (It would have been published already if not for some unexpected issues with the WAM database.)
Unfortunately, as I haven't started on version 4 yet, I can't provide a timeline for when a template will be added. The template will probably be the first thing I work on after version 3 is released, and I am considering releasing it before the rest of version 4 depending on what else I decide to include.
Thanks for your suggestion!
Blaster Niceshotwallcontribs 20:19, August 28, 2018 (UTC)

WAM page and controller move

As FANDOM is trying to migrate the MediaWiki stuff off w:c:www, they are moving the WAM page to Community Central. The script might need to be updated accordingly. -- Cube-shaped garbage can 17:50, October 16, 2018 (UTC)

Thanks for letting me know; I'll keep an eye on the URL change. Only the link to the WAM page in the rail module should be affected.
Blaster Niceshotwallcontribs 22:41, October 16, 2018 (UTC)

Error in edit summary

Hey there, I found a big mistake when logging new WAM data using an account in Spanish. When you go to the wiki activity, the summary says, at the end "score entry" which should be removed in the Spanish summary. This is what it says when I log the WAM data: Añadiendo nueva puntuación WAM score entry

Please fix it.

EDIT: I fixed it myself! ;)
Thank you for reporting this issue and for fixing it! I'm sorry I couldn't get back to you on this issue sooner; I am usually only able to check the wiki on weekends due to school work.
Feel free to add in missing translations for Spanish (and any other language you know) if you are interested. Since machine translators tend to be inaccurate, RailWAM has to rely on user-submitted translations. There are a lot of new messages for the upcoming version, and many languages are missing translations for them.
Again, thanks for fixing it!
Blaster Niceshotwallcontribs 01:24, October 27, 2018 (UTC)

Possible error on fandom.com

Hello.
After the transition of our project to the fandom.com domain, the rating WAM was strangely recorded. The data element is not added, but the previous one is corrected: The first example and the following edits. At the same time, the message on the need to update the record does not disappear in the module.
Natalya-ru 06:49, November 1, 2018 (UTC)

Hello-o-o-o...
Natalya-ru 17:59, November 4, 2018 (UTC)
Hi, Natalya-ru,
I'm sorry I didn't see your message before; it likely that it went out of wiki activity before I could see it. I'm pretty sure I know what the issue is, and it should be a simple fix. I don't have time to fix it tonight, but I will try to work on it tomorrow. Please note that it will take a day or two for FANDOM staff to approve the changes once I submit them.
Thanks for reporting this!
Blaster Niceshotwallcontribs 02:45, November 5, 2018 (UTC)
Good! Thank you. For me, there is no urgency, it is enough for me to know that you know about the problem and it will be corrected. Wish you success!
Natalya-ru 11:27, November 5, 2018 (UTC)
I have written a fix for the issue, but I want to do another test once the new WAM data is available in a few hours. If it still works, I will submit it for review. I have also restored all the WAM data lost to this bug in your wiki's WAM log. I will let you know here when the fix is live; I don't recommend trying to log the data until then because the script will remove the data again. It is easy to restore it if you need it done again, though.
Blaster Niceshotwallcontribs 22:29, November 5, 2018 (UTC)
The new version has been approved. I visited your wiki, but the old version is still in my cache. It may take a day or so for your cache to clear and for the update to work. Please let me know if the issue continues.
Again, thanks for reporting this!
Blaster Niceshotwallcontribs 23:46, November 7, 2018 (UTC)
I checked, it works. Thanks you!
Natalya-ru 07:54, November 9, 2018 (UTC)

RailWam bugs

Good day. I have a bugs with RailWam on this wiki:

1) The "up" and "down" arrows are painted in the same color and they're always directed in different directions.

2) On the button "write" appeared the inscription "cancel".

I was informed that the RailWam script was recently changed, so I was advised to ask here for help. 

{{SUBST:ПОДСТАНОВКА:Подпись_участника_TrueDarkOne}} 20:23, November 18, 2018 (UTC)

Hello, TrueDarkOne,
The first issue you mention is actually intentional behavior. Green arrows show a good change, and orange arrows show a bad change. Increasing your WAM score is good, so the up arrow is green. However, increasing your WAM rank is bad: you'd rather be in 1st place than in 2nd place. Thus, the up arrow for WAM ranks is orange, and the down arrow is green. Usually, you move up the leaderboard (in other words, your WAM rank decreases) when your WAM score increases, so the arrows are often pointed in opposite directions.
If I understand you correctly, you think that the words on the buttons in the log alert are confusing. After you press "write," the button should say "close alert" or "dismiss." I will replace the "cancel" label with a translation from an earlier version of RailWAM that says "close alert." Please let me know if the button labels are still confusing after they change. (It may take a day or so for the buttons to change on your wiki until your browser cache clears.)
Thank you for reporting these issues! Please let me know if you still have questions or find bugs.
Blaster Niceshotwallcontribs 21:37, November 19, 2018 (UTC)
Blaster Niceshot, hello again. Thanks for the clarification, now I understand better, how does it work. Moreover, today I checked my RailWAM, and the bugs with buttons I mentioned were fixed. Many thanks for your help.
{{SUBST:ПОДСТАНОВКА:Подпись_участника_TrueDarkOne}} 19:14, November 20, 2018 (UTC)

slow regexp

at the some place of code (wamLog.match(/<[a-z][\s\S]*class="[\s\S]*railwam-data-element[\s\S]*">/)) the script uses .match on 150+kb string. this match freezes window for long time (10-30 secs). u can avoid it via jquery: $(wamLog).find('.railwam-data-element') or $(wamLog).find('[class*="railwam-data-element"]') will much faster (less than a sec) Fngplg (talk) 18:08, November 22, 2018 (UTC)

Hi, fngplg,
I have adjusted the conditional to fix the speed issue. Hopefully, it will be approved before the weekend. Do you have a link to the WAM log with all that data? It would be useful to copy for testing purposes.
Thanks for reporting this!
Blaster Niceshotwallcontribs 00:00, November 23, 2018 (UTC)
i don't have an actual data, cuz i just don't use rw. it was reaction to message about "railwam freezes the browser". it was tracked down to .match on this request data. i did not dig into the script logic to verify the request. Fngplg (talk) 01:50, November 23, 2018 (UTC)

Not working, possible conflict?

I have added the necessary code to the ImportJS and Common.js in Reborn Wiki, got it approved, but it still won't show up. It's been a few days and I was wondering if it could be in conflict with CodeQuickLinks or any of my personal JS? -MrAceAttorney (talk) 18:44, November 23, 2018 (UTC)

Hi, MrAceAttorney,
This is a really weird glitch. It doesn't seem to be a conflict with anything because I am not seeing RailWAM either. However, RailWAM functions normally when I import it through my personal JavaScript. I also copied your wiki's ImportJS onto a wiki where I have admin rights, and RailWAM and the other scripts were functioning normally almost immediately. I have checked your site's ImportJS, Wikia.js, and Common.js and found that you have done everything correctly.
I did find that Fandom's internal code is not importing RailWAM on your wiki. Having all the same scripts working on my wiki leads me to believe that this is some sort of caching issue on Fandom's end.
What you can try is doing a "null edit" on MediaWiki:ImportJS: go into editing mode, don't change anything, and press publish. If, after a few minutes and a hard refresh (Ctrl/Cmd + F5), you do not see RailWAM, try rearranging the scripts on ImportJS, publishing the page, and do another hard refresh after a few minutes.
If neither of those things gets the servers to update, please let me know. I will probably ask you to report the bug to Fandom.
Thanks for reporting this!
Blaster Niceshotwallcontribs 01:04, November 24, 2018 (UTC)
I rearranged the scripts and it worked. Thanks! --MrAceAttorney (talk) 02:55, November 24, 2018 (UTC)

Logging not working

Any attempt to use the log page functionality just ends up throwing console errors. Firefox is telling me:

ReferenceError: assignment to undeclared variable wamLog

And Edge is telling me:

The server has not found anything matching the requested URI (Uniform Resource Identifier).
(XHR)GET - https://dev.wikia.com/index.php?title=User:SlyCooperFan1/WAM Log&action=raw&_=1543910050922
Variable undefined in strict mode

SlyCooperFan1 [message · contributions] 07:55, December 4, 2018 (UTC)

On Deltarune Wiki, it seems to be bugging as well, though I don't have specific console messages related to these weird changes. -- Cube-shaped garbage can 21:04, December 4, 2018 (UTC)
Hi, SlyCooperFan1 and Kocka,
I published a fix for this issue last week, but there was a typo that has prevented it from working. I am submitting another fix now.
Could you provide a link to your wiki(s) where you use RailWAM? This logging bug has been known to delete data, so I can restore it for you once the fix has been approved.
Thanks for reporting this!
Blaster Niceshotwallcontribs 21:12, December 4, 2018 (UTC)
Thanks for the quick response and fix! I'm using RailWAM on my personal global JS, and I just installed it literally yesterday. None of the log functions were working for me whatsoever on any wiki, so I didn't end up changing or deleting any data. Kocka probably needs the fix at the Deltarune wiki though. Thanks again :) SlyCooperFan1 [message · contributions] 21:14, December 4, 2018 (UTC)
If the fix is logging old data through Special:BlankPage/RailWAM/Log, I could use it myself too (I used it for Deltarune Wiki once in past, but the data got overwritten by the error). Thanks for the bugfix! -- Cube-shaped garbage can 21:23, December 4, 2018 (UTC)
I was planning on restoring the most of the data from the WAM log's history since the old data logger can take a bit longer. Then I would use the logger to fill in anything else that was lost. However, since your wiki just started importing RailWAM on November 25, the logger should only take a few minutes if you decide to do that from the beginning.
Blaster Niceshotwallcontribs 21:27, December 5, 2018 (UTC)
It appears that the caching issue has been resolved. I have checked your wiki and a few others, and RailWAM is working normally for me. Are you still having the same issue?
Blaster Niceshotwallcontribs 21:34, December 6, 2018 (UTC)

Cannot log data for December

G'day mate!

Recently a user on the Gran Turismo Wiki informed me that the ranking indicators (arrows) were no longer appearing. Looking at the dashboard, data is not logged for December. When I try to select the missing dates from the date picker and hit "Log Data", the window freezes, the console displays no messages, and the gap in our graph remains. Any idea what the cause could be? Currently I don't have time to go through your script to check for myself but maybe you have heard of this happening before? FANDOM API issue perhaps?

Anyway, hope you can take a look and advise. Cheers!

RickGT - Gran Turismo Wiki Administration 17:58, December 5, 2018 (UTC)

Hi, RickGT,
A fix for this issue has already been approved, but it appears that the old one is still cached in Fandom's servers. Another user did a minor edit to try and get it to update, but that still has to be approved. Hopefully, this will be fixed by tomorrow.
Thanks for reporting this!
Blaster Niceshotwallcontribs 21:27, December 5, 2018 (UTC)
It appears that the caches have updated, but I'm writing again because I noticed an issue with your wiki's RailWAM configuration on Wikia.js. The keywords true and false are not typically put in quotes. I may make the script accept strings (surrounded in quotes) for these, but for right now you can change your wiki's configuration to the following to get it to work:
window.railWAM = {
    logPage:"User:RickGT/WAM Log",
    showChange:true,
    showLogAlert:false,
    showToAnons:true,
};
Blaster Niceshotwallcontribs 01:56, December 6, 2018 (UTC)
Thanks mate! All seems to be working well in test mode, just waiting for the review process. Not sure how I confused the config string quotations, must have been a typo, thanks for pointing that out!
RickGT - Gran Turismo Wiki Administration 17:10, December 8, 2018 (UTC)

Bug "Uncaught ReferenceError: wamLog is not defined"

Hi,
today we came across a bug in Narnia Wiki: When clicking the logging button, it doesn't log. A console.error() says: "Uncaught ReferenceError: wamLog is not defined" somewhere around line 66:

    complete: function(wamLogXHR) {
        wamLog = typeof wamLogXHR.responseText === 'string' ? wamLogXHR.responseText : '';

Best regards and thanks in advance,
Agent Zuri Profile Message Wall Blog 19:46, December 5, 2018 (UTC)

Hi, Agent Zuri,
A fix for this issue has already been approved, but it appears that the old one is still cached in Fandom's servers. Another user did a minor edit to try and get it to update, but that still has to be approved. Hopefully, this will be fixed by tomorrow.
Thanks for reporting this!
Blaster Niceshotwallcontribs 21:27, December 5, 2018 (UTC)
Hi Blaster Niceshot,
Thanks for fixing this!
Sounds like FANDOM should change their caching for global scripts…?
Looking forward to that fix :-)
Agent Zuri Profile Message Wall Blog 22:05, December 5, 2018 (UTC)
It appears that the caching issue has been resolved. I have checked your wiki and a few others, and RailWAM is working normally for me. Are you still having the same issue?
Blaster Niceshotwallcontribs 21:34, December 6, 2018 (UTC)
Hey, sorry for my late reply. I didn't see your answer or forgot to reply. For me it's working fine now but for my admin colleague it does not. We'll see if she or I can figure out what's different with her setup...
Nevertheless: Thank you!
Agent Zuri Profile Message Wall Blog 20:00, December 20, 2018 (UTC)

Some feedback on rank directions

Hey there, I wanted to provide some general feedback. In my entire life of consuming digital media, I've never seen an arrow pointing down being used as a good thing, especially for increasing a rank, until RailWAM. I know you explained this a couple of weeks ago on this same page, but I would like to suggest reversing this. The rank arrow should really be pointing up, since people don't put higher-rank positions at bottoms of lists. For example, this is what everyone does:

  1. This is #1.
  2. This is #2.
  3. This is #3.

No one lists ranks as such (unless you're BuzzFeed):

  1. This is #3.
  2. This is #2.
  3. This is #1.

In the same vein, I'd also really like to recommend reversing the rank graph display for the same reason: no one reads a graph pointing down as a good thing, especially when you have the WAM score graph doing it correctly by pointing up. Please change these to work normally, because right now it's super confusing. SlyCooperFan1 [message · contributions] 00:39, December 9, 2018 (UTC)

I have to agree with SlyCooperFan1 on this point. I understand the reasoning behind this, but most contributors may not. Generally speaking, in any media, positive movements should be pointing up and negative movement pointing down, no matter the number or rank format. It just makes it easier for the less technically inclined to have an "at a glance" look of the wikis trending position. Just my two cents...

RickGT - Gran Turismo Wiki Administration 16:54, December 10, 2018 (UTC)

Hi, SlyCooperFan1 and RickGT,
From looking at the rank indicators/graph direction myself, I agree with you that it is confusing. I also did some research last night to see how other sites, namely website traffic ranking sites (which have a similar purpose to RailWAM), and they have arrows pointing up for moving up the leaderboard, as you have suggested. They have also reversed the y-axis on ranking graphs so that the highest rank is at the highest peak. Therefore, I have decided to make these changes to RailWAM.
Personally, I think the colors the traffic ranking sites used really reinforced the idea of positive/negative more than the direction the arrows were pointing. (See examples from Alexa and SimilarWeb- I just picked Bing because it had a rank change.) I am considering changing the arrow colors to be bolder and more recognizable as positive/negative (a deeper green and a red instead of the current orange). Do you have an opinion on changing the colors? I can provide some example images if necessary.
Thanks for reporting this,
Blaster Niceshotwallcontribs 21:07, December 10, 2018 (UTC)
It has to be a combination of a correct arrow direction as well as obvious color choices. That being said, I'm actually perfectly fine with the color choices right now. I use RailWAM globally and, on every wiki I've seen it on, the colors have matched perfectly fine. I would hesitate to change them. I'd rather just see the rank arrows and rank graph direction fixed. Thanks for deciding to change them :) SlyCooperFan1 [message · contributions] 01:30, December 11, 2018 (UTC)
Again, I agree with SlyCooperFan1. I'm perfectly fine with the colour scheme as it appears now. My concern was also the arrow and graph direction. Many thanks for deciding to change them!
RickGT - Gran Turismo Wiki Administration 17:15, December 11, 2018 (UTC)
The changes for the rank arrows and the graphs have been approved. Please let me know if you have any more suggestions or find bugs.
Blaster Niceshotwallcontribs 20:42, December 14, 2018 (UTC)
Just saw them, looking really good! Graphs and sidebar are both working perfectly once the cache catches up. Thank you so much! SlyCooperFan1 [message · contributions] 21:53, December 14, 2018 (UTC)

Scores not available

Hey Blaster Niceshot, I'm trying to log all the WAM scores from the past month after deleting all content from the log page (it was getting too long, I'm going to start from scratch for 2019), but now I cannot log ANY scores, from ANY dates, at all. RailWAM simply states, "RailWAM cannot find any data to graph". Any fixes to this?

RickGT - Gran Turismo Wiki Administration 20:09, January 7, 2019 (UTC)

Hi, RickGT,
I am aware of this issue and am working to resolve it. One of the APIs that RailWAM uses to get the full data was unexpectedly retired on short notice on January 3. I believe I have found a replacement, but I still need to do some testing. I am also concerned that the code review team will reject the revision initially because they did so with the now-retired API, so it will take longer to get it accepted, assuming there are no other issues. (You shouldn't see any changes in the WAM module or other features with the API change.)
I will let you know here when I have updates. I am hoping to test the new version and submit it for review within the next few days.
Unfortunately, you won't be able to graph any data, log old data, or see the WAM rank in the module until the issue is resolved. Once it is fixed, I would recommend using the log old data tool to re-log any data since January 3 because the data you are currently logging doesn't include the rank and vertical rank.
Thanks for reporting this!
Blaster Niceshotwallcontribs 21:09, January 7, 2019 (UTC)
I published a revision with a replacement for the retired API. It took a bit longer than expected as I added some extra security validation checks. Hopefully, the revision will be live within a day or two.
Please let me know if the issue continues or if you notice any other issues resulting from this change.
Blaster Niceshotwallcontribs 17:32, January 13, 2019 (UTC)
The fix is live and appears to be working properly. Please let me know if you find more bugs or if you notice any issues resulting from this change.
Blaster Niceshotwallcontribs 00:46, January 14, 2019 (UTC)

Unknown rank

Hey Blaster Niceshot, the WAM rank is not showing up on the YJ Wiki. ― Thailog 00:28, January 16, 2019 (UTC)

Hi, Blaster Niceshot, and Thief Game, and ATOM RPG. --FunGorn (talk) 16:20, January 16, 2019 (UTC)
Hi, Thailog and FunGorn,
This issue was already fixed a few days ago, but it seems that Fandom's servers aren't giving you the updated version on your wikis and are instead giving you the broken, cached one. I am going to try publishing an edit that will hopefully fix the problem and force the caches to update. Please let me know if you continue to have problems after a day or so.
Thanks for reporting this!
Blaster Niceshotwallcontribs 21:08, January 16, 2019 (UTC)
It seems that one of the services used to fix the issue is having problems now. It wasn't when you originally reported the problem, so you may have seen it fixed for a day and then it was broken again. I am going to replace the service, and then I will try to get Fandom to change their API so I don't need the service.
I will let you know when the revision is live. Hopefully, it will be approved before Monday.
Blaster Niceshotwallcontribs 20:25, January 18, 2019 (UTC)
The revision has been approved, but the fix will not appear right away as long as the old version is still in the cache. On my end, it looks like the cache updated for Young Justice, but not for ATOM RPG. I will keep an eye on ATOM RPG to make sure it is fixed; it should only take about a day for the cache to update.
Neither the issue nor the fix impact Thief Game because it is not in the top 5000 wikis on the WAM. Fandom doesn't calculate a WAM rank for wikis below the top 5000, so the rank can't be retrieved for Thief Game.
Please let me know if the issue continues or if you find any other bugs.
Blaster Niceshotwallcontribs 22:45, January 21, 2019 (UTC)
ATOM RPG status: good. Thief Game status: good (now in the top 5000). Thanks! --FunGorn (talk) 11:28, January 30, 2019 (UTC)

Full HTML Output

Hi, has this app been updated recently? Today when the plugin autologged it dumped the entire HTML source of the RecentActivity page instead of the WAM score. Here's the result: w:c:thunderbirds:Thunderbirds Wiki:WAM Log. I was logging past data the day before and noticed that some months would not log to the file no matter how often I repeated it, but other than that I haven't done any different.

Could some have a look at this please? Thanks. guyus24 09:50, January 27, 2019 (UTC)

Hi, guyus24,
I started looking into this issue, but unfortunately I haven't been able to figure out what the issue is. I will keep testing to figure out the issue. I'll send you a message on the Thunderbirds Wiki when I have updates so you don't need to keep checking here.
I'm going to remove the HTML from your WAM log so it stops triggering the spam filter, and you can log data again. Please let me know if the script logs HTML again.
As for the logging issues for certain months, Fandom simply doesn't update the WAM for whatever reason. It's also possible that your wiki wasn't in the top 5000 WAM ranks if you were trying to log data from a while ago. Because of the way Fandom's API is set up, historical WAM data can only be retrieved when the wiki was in the top 5000 WAM ranks. Could you give an example of a date/month that won't log? I might be able to pinpoint the exact reason the data is unavailable then.
Thanks for reporting this!
Blaster Niceshotwallcontribs 06:00, January 28, 2019 (UTC)
Thanks for looking into it. I believe the affected months were August and September. According to the console output it found all the data and gave the message that everything was successfully logged, but no change had been made to the log file. I tried it twice, and the same thing happened. I believe we should not have dropped out of the 5000, or have been anywhere close to dropping out. It was when the tool next auto-logged, the next morning, that the HTML dump was generated. That makes me think the two are somehow linked together.
I'll try again to log that missing data and let you know if there are any problems, or if the log file stuffs up again.
Thank you! guyus24 10:10, January 28, 2019 (UTC)

Bug at FMG-Wiki

I don't know the cause, but that it only works UNTIL logging it. Alpha-ketoacid\(^\text{Talk}\) 18:29, March 2, 2019 (UTC)

Hi, Alpha-ketoacid,
I've taken a look at the Fan-made Googology Wiki, and it doesn't appear to me that RailWAM is functioning abnormally. I've also done a test that simulates FMG on my test wiki, and it seemed to be working fine. Would you be more specific as to what isn't working or provide a screenshot of the issue? Is there something that should be showing up but isn't? I should then be able to pinpoint the problem.
Thanks for reporting this,
Blaster Niceshotwallcontribs 21:16, March 2, 2019 (UTC)

Loading problems on the German Narnia Wiki

Hi, on this wiki page I often have this problem:

RailWAM Error RailWAM ran into a problem and could not display the module. Reloading the page and checking your personal and site-wide JavaScript for errors are recommended. If the issue persists, please submit a bug report with links to this wiki and any other relevant pages on the RailWAM talk page.

What can I do?  Harry granger | Talk | Contribs  20:12, March 21, 2019 (UTC)

Hi, Harry granger,
I've fixed the issue that was causing this and have submitted the revision for review. There was a small issue with how the script verifies data for wikis not in the top 5000 WAM ranks that made the script "think" that data was already retrieved when it in fact wasn't. Hopefully, the revision will be live by today or Monday.
Thanks for reporting this!
Blaster Niceshotwallcontribs 20:16, March 22, 2019 (UTC)


Hi Blaster Niceshot,
thank you for your help. I hope it works now on Monday.
 Harry granger | Talk | Contribs  20:40, March 22, 2019 (UTC)
Hi, new problem. I uploaded the message. Please have a look here. It can/could be found here. Thank you.  Harry granger | Talk | Contribs  19:26, July 15, 2019 (UTC)

loadonpage&loadonnamespace conditions

the expression:

(railWAM.loadOnNamespace  || railWAM.loadOnNamespace[namespaceIndex]) == mwConfig.wgNamespaceNumber

when loadonnamespace\loadonpage is array, and namespace\page id is 0, this condition will be (array || 0) == mwConfig.wgNamespaceNumber => array==wgNamespaceNumber. it means that script will not be loaded because of "not listed in the namespace\page list". Fngplg (talk) 19:53, April 24, 2019 (UTC)

Hi, Fngplg,
Thanks for pointing this out. I have written a fix for the issue and just need to test it before I submit it for review.
Blaster Niceshotwallcontribs 21:13, April 24, 2019 (UTC)
The revision has been approved.
Blaster Niceshotwallcontribs 18:24, April 25, 2019 (UTC)

Errors

I had an error with RailWAM. —Preceding unsigned comment added by S9 Closing Logo Wiki (talkcontribs) . Please sign your posts with ~~~~!

Its because of CORS;
Access to XMLHttpRequest at 'https://www.wikia.com/api/v1/Wikis/Details?ids=175944&cacheId=1563249253.349' from origin 'https://towerofgod.fandom.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
. (also you should replace ShowHide with mw-collapsible.) --Sharkie 03:56, July 16, 2019 (UTC)
I've edited the script to use Community Central instead of www.wikia.com, so hopefully that should fix it. (it cached the thing so I couldn't check if it was fixed or not, I'll leave the decision to submit it for JSRT to the script's author.) --Sharkie 07:14, July 16, 2019 (UTC)
Hi S9 Closing Logo Wiki,
I tested Sharkie's edit (see above), and I believe it should fix the issue. I've submitted the fix for security review, and hopefully it will be live within a day or two. Fandom did a technical update today and moved the APIs that RailWAM uses to get WAM data, so RailWAM was unable to find the data and produced an error.
Thanks for reporting this! Please let me know if you have any further issues.
Blaster Niceshotwallcontribs 19:26, July 16, 2019 (UTC)

Oops, I forgot to make a headline. RailWAM Error.

Multiple wikis are showing an error message for the RailWAM widget. Example. Horseshoe Crab 03:38, July 16, 2019 (UTC)

Hi Horseshoe Crab,
I tested Sharkie's edit (see above), and I believe it should fix the issue. I've submitted the fix for security review, and hopefully it will be live within a day or two. Fandom did a technical update today and moved the APIs that RailWAM uses to get WAM data, so RailWAM was unable to find the data and produced an error.
Thanks for reporting this! Please let me know if you have any further issues.
Blaster Niceshotwallcontribs 01:21, July 17, 2019 (UTC)

RailWAM error

Hello.

The RailWAM on Battle for Dream Island Wiki ran into an error.

"RailWAM ran into a problem and could not display the module. Reloading the page and checking your personal and site-wide JavaScript for errors are recommended. If the issue persists, please submit a bug report with links to this wiki and any other relevant pages on the RailWAM talk page."

Fanny is senpai uwu 04:29, July 16, 2019 (UTC)

See #Errors. --Sharkie 07:22, July 16, 2019 (UTC)
Hi Gmo666,
I tested Sharkie's edit (see above), and I believe it should fix the issue. I've submitted the fix for security review, and hopefully it will be live within a day or two. Fandom did a technical update today and moved the APIs that RailWAM uses to get WAM data, so RailWAM was unable to find the data and produced an error.
Thanks for reporting this! Please let me know if you have any further issues.
Blaster Niceshotwallcontribs 19:26, July 16, 2019 (UTC)

RailWAM error on Malware Wiki

Hello.

I am the owner of the Malware Wiki ( https://malware.wikia.org/wiki/ ) and the RailWAM recently had an error.

"RailWAM ran into a problem and could not display the module. Reloading the page and checking your personal and site-wide JavaScript for errors are recommended. If the issue persists, please submit a bug report with links to this wiki and any other relevant pages on the RailWAM talk page."

Is there a way this can be fixed?

LeTesla (talk) 04:54, July 16, 2019 (UTC)

See #Errors. --Sharkie 07:22, July 16, 2019 (UTC)
Hi LeTesla,
I tested Sharkie's edit (see above), and I believe it should fix the issue. I've submitted the fix for security review, and hopefully it will be live within a day or two. Fandom did a technical update today and moved the APIs that RailWAM uses to get WAM data, so RailWAM was unable to find the data and produced an error.
Thanks for reporting this! Please let me know if you have any further issues.
Blaster Niceshotwallcontribs 19:26, July 16, 2019 (UTC)

RailWAM error on MarioWiki

Hello, my name is Derek. I am the administrator of MarioWiki. I have the same problem as the previous two messages: the RailWAM cannot display the module. Thank you for reading this. Derekblue1 (T B C) 07:41 Jul 16 2019 (UTC)

See #Errors --Sharkie 08:31, July 16, 2019 (UTC)
Hi Derek,
I tested Sharkie's edit (see above), and I believe it should fix the issue. I've submitted the fix for security review, and hopefully it will be live within a day or two. Fandom did a technical update today and moved the APIs that RailWAM uses to get WAM data, so RailWAM was unable to find the data and produced an error.
Thanks for reporting this! Please let me know if you have any further issues.
Blaster Niceshotwallcontribs 19:26, July 16, 2019 (UTC)
It worked well, thank you! Derekblue1 (T B C) 02:06 Jul 19 2019 (UTC)

Error on Xbox Wiki

My name is DirtLover03 and I am head admin on Xbox Wiki and just like everyone else at the moment, RailWAM is showing an error. It says RailWAM ran into a problem and could not display the module. Reloading the page and checking your personal and site-wide JavaScript for errors are recommended. If the issue persists, please submit a bug report with links to this wiki and any other relevant pages on the RailWAM talk page. I would appreciate if this could be fixed.  Example (talk) 08:12, July 16, 2019 (UTC)

See #Errors --Sharkie 08:32, July 16, 2019 (UTC)
Hi DirtLover03,
I tested Sharkie's edit (see above), and I believe it should fix the issue. I've submitted the fix for security review, and hopefully it will be live within a day or two. Fandom did a technical update today and moved the APIs that RailWAM uses to get WAM data, so RailWAM was unable to find the data and produced an error.
Thanks for reporting this! Please let me know if you have any further issues.
Blaster Niceshotwallcontribs 19:26, July 16, 2019 (UTC)

RailWAM Error on Flipline Studios Fandom

Hi! I'm the founder and head admin on Flipline Studios Fandom and recently I noticed that an error happens with the RailWAM of the wiki, there appears "RailWAM ran into a problem and could not display the module. Reloading the page and checking your personal and site-wide JavaScript for errors are recommended. If the issue persists, please submit a bug report with links to this wiki and any other relevant pages on the RailWAM talk page", so since with the reloading don't make the RailWAM works I'm reporting this here.

Thanks to take your time, I would appreciate if this can be fixed!

Sincerely/Sinceramente,
LuisAngelSignature

14:30, July 16, 2019 (UTC)
See #Errors --Sharkie 19:11, July 16, 2019 (UTC)
Hi LuisAngel01,
I tested Sharkie's edit (see above), and I believe it should fix the issue. I've submitted the fix for security review, and hopefully it will be live within a day or two. Fandom did a technical update today and moved the APIs that RailWAM uses to get WAM data, so RailWAM was unable to find the data and produced an error.
Thanks for reporting this! Please let me know if you have any further issues.
Blaster Niceshotwallcontribs 19:26, July 16, 2019 (UTC)

RailWAM does not work

A week ago that RailWAM does not work, I hope the FANDOM engineers solve it, regards.- --Carlos Suarez (Menntaskólinn í Reykjavík) (Tolvupostur) 15:58, July 16, 2019 (UTC)

See #Errors --Sharkie 19:11, July 16, 2019 (UTC)
Hi Carlos Suarez,
I tested Sharkie's edit (see above), and I believe it should fix the issue. I've submitted the fix for security review, and hopefully it will be live within a day or two. Fandom did a technical update today and moved the APIs that RailWAM uses to get WAM data, so RailWAM was unable to find the data and produced an error.
Thanks for reporting this! Please let me know if you have any further issues.
Blaster Niceshotwallcontribs 19:26, July 16, 2019 (UTC)

Bug Report on Lost Cities Keeper Wiki

Hello! Where the WAM widget is supposed to be it is currently displaying "RailWAM Error." Wiki link: https://lost-cities-keeper.fandom.com/wiki/Lost_Cities_Keeper_Wiki SophitzFoster (talk) 18:25, July 16, 2019 (UTC)

See #Errors --19:11, July 16, 2019 (UTC)
Hi SophitzFoster,
I tested Sharkie's edit (see above), and I believe it should fix the issue. I've submitted the fix for security review, and hopefully it will be live within a day or two. Fandom did a technical update today and moved the APIs that RailWAM uses to get WAM data, so RailWAM was unable to find the data and produced an error.
Thanks for reporting this! Please let me know if you have any further issues.
Blaster Niceshotwallcontribs 19:26, July 16, 2019 (UTC)

RailWAM Error

Hi, RailWAM is currently not displaying on Jpop wiki. I've reloaded the page a few times now and I'm still not getting it to work. --Riyu-Hime (talk) 04:27, July 17, 2019 (UTC)

See #Errors --Sharkie 04:28, July 17, 2019 (UTC)
Hi Riyu-Hime,
The fix for this issue was already approved by Fandom's security review team. I also applied a fix to the proxy server RailWAM uses this morning. However, it seems that the broken version is still in the cache for some wikis. It should only take about a day or so for the new version to appear if it hasn't already.
Thanks for reporting this! Please let me know if you have any further issues.
Blaster Niceshotwallcontribs 15:51, July 17, 2019 (UTC)

RailWAM Error

Hello, RailWAM does not appear to be displaying on the R2DA Wikia. I have seen this to be a common problem amongst FANDOM and I would like to know if it could be fixed?

(talk) 09:52, July 17, 2019 (UTC)
See #Errors --Sharkie 10:24, July 17, 2019 (UTC)
Hi WikiaColors,
The fix for this issue was already approved by Fandom's security review team. I also applied a fix to the proxy server RailWAM uses this morning. However, it seems that the broken version is still in the cache for some wikis. It should only take about a day or so for the new version to appear if it hasn't already.
Thanks for reporting this! Please let me know if you have any further issues.
Blaster Niceshotwallcontribs 15:51, July 17, 2019 (UTC)

Changing CSS to use px

I noticed that RailWAM is still using the em unit for font sizing. The problem with using relative units such as % or em is that they may adversely scale and not display consistently where there is external variation, such as where wikis have implemented their own CSS or certain browser extensions are being used, in some cases causing no text to display at all. The common practice used by default on Fandom is using px, with absolute units being more stable and specific in this context. This is preferable, and I suggest that the CSS is updated to use px only, as it seems to use both px and em right now for some reason.

Hackey5 (talk) 02:33, July 31, 2019 (UTC)

Hi Hackey5,
Thanks for explaining your reasoning for the font size change. We occasionally get users here who change the source of scripts to suit their own preferences, which is why I responded to you in the edit summary the way I did.
Based on your message, it sounds like you know of specific examples where this has happened. Could you provide links to some of those wikis where this is a problem (especially those where no text displays)? I'm not necessarily against changing the parent containers to use px, but I want to make sure that there is not a deeper problem in RailWAM's code.
I don't think there's anything wrong with mixing px and em. If a wiki wants to change the font size of the alert (or another element), they can simply change the base font size of the parent container, and everything in the element will scale based on that. I'm not sure if I understand how changing all font sizes to use px is any more stable than setting the base font size of the parent container in px.
Thanks for reporting this,
Blaster Niceshotwallcontribs 15:26, July 31, 2019 (UTC)
I found the Geometry Dash Fan Wiki from your profile as the wiki that is having the font size issue with the log alert.
I've given more thought to this since I posted yesterday. I hate to be a "it's not a bug, it's a feature" kind of developer, but I feel that this is too much of an edge case to warrant a change for all users. I am guessing you already know this, but your wiki is using .mediawiki .WikiaSiteWrapper {font-size: 0;} in Wikia.css to remove whitespace between inline block elements. I would argue that relative font sizing is actually more stable in the context of external variation because it respects changes to the page's base font size via CSS, which are much more common than font-size: 0; in my experience. For the same reason, relative font sizing is also more consistent with RailWAM's use of existing wiki themes as much as possible.
I'm sorry that the only solution I can suggest to you is a CSS fix on your end, but I think using px would hurt more users than it helps. This CSS should make the log alert appear as it does on most other wikis:
/* RailWAM log alert font size fix */
#railwam-log-alert {
    font-size: 12px;
}
Upon further inspection of where em/px were being used, I agree that the few uses of px were oddly mixed with relative font sizes, so I've changed all font sizes to use em as per the reasoning above. These changes did not appear to create any additional issues on your wiki.
Again, thanks for reporting this! Please let me know if you run into any more issues with RailWAM.
Blaster Niceshotwallcontribs 22:10, August 1, 2019 (UTC)
Heh, well you've effectively uncovered my fastidiousness.
My gripes with em is also in part due it being both somewhat arbitrary, and that inheritance trickled down through multiple sibling elements makes it harder to determine absolute font size as a result of the multiplication (and can get overly small). I'd argue that consistency is lost here, and find it preferable to avoid the multiplication as much as possible.
  • #railwam-log-alert: 0.95em
    • #railwam-notlogged-text-warning: .85em
    • .railwam-alert-btn: 0.8em
    • #railwam-initclose-link: 0.8em
    • #railwam-log-link: .8em
You can probably already see where you might like to tidy that syntax, so I won't press on too much with that (I noticed border-radius is also using em?).
But I guess on the matter of consistency, it appears intentional that you've opted to take a more creative approach with the #railwam-log-alert, going rogue without the formality of using the .rail-module or .module class haha. My local wikis' code accounts for modules but don't account for the lack of such specification since there are no default cases I recall where children of a plain .WikiaRail parent element are not enclosed first in those aforementioned classes. Perhaps you might want to add the .rail-module class so that regular default styling followed by local styling can be applied? You could also include .wds-button classes to the buttons and make further default assignments to further increase consistency. You can eliminate a lot of redundant CSS this way as well which helps to give the script a sense of cleaner integration.

Hackey5 (talk) 16:28, August 2, 2019 (UTC)

I would much rather use rem than em to get relative sizing without the multiplication issues, but Fandom sets the font size via the body element rather than the root element. I've tested the em units with several different font sizes to ensure that the text stays within a readable range.
Not adding the .module and .rail-module classes was an effort to minimize the amount of space RailWAM takes up because of the margins on those classes. IIRC, this was back in the midst of uproars over Fandom increasing the size of several page elements, even if only by a handful of pixels, in 2016. Of course, you can override the margins to reduce height, but then you get a rail of similarly styled modules that look like they should have the same width but don't. Putting the alert inside the module also takes up more space and makes the module appear excessively large. The (not great) compromise was to break from the module styling while still using wiki colors for quasi-consistency. For the same reasons, WDS buttons (which I think were just being introduced and subject to their own criticism) were kept out of the interface.
Of course, none of that would be an issue if the alert wasn't so clunky in the first place. It has stayed the same for almost three years now because updates have never been requested to it. Heavily suggested features like the database and especially the graphs had to be given priority. Honestly, I was already considering completely scrapping and replacing it in the next update in addition to some structural updates to the main module. Unfortunately, my plans for those changes are so far just that: plans. (I have my own, separate development versions of RailWAM that I have been adding other features to besides the releases posted here.)
Railwam-log-alert-mockup-latest
Here is the latest version of the mockup of the planned log alert. I am willing to implement it ahead of the V4 update, but again, I haven't started on it yet, so creating it and testing it in numerous languages will take time. I don't think it would take more than a week. I was and am still extremely hesitant to offer you an experimental prototype version because it's not going to be complete. (For example, I'm changing the way alert dismissal works, so the "dismiss" button would probably be removed or nonfunctional on the prototype.)
Let me know if you want me to create a prototype version that can interface with the current RailWAM. If not, I'll still work on the new alert and release it once it's tested. The only other "hotfixes" I can offer you are a) the CSS I already posted and b) using the autoLogForUsers option (see documentation).
Blaster Niceshotwallcontribs 22:27, August 3, 2019 (UTC)
I appreciate the effort you've put into developing this script and offering me comprehensive explanations and updates. I generally assume most scripts aren't being actively developed which is why I initially went and changed one of those font sizes. It's good to see this kind of long term commitment. The new design is looking sweet. If I could make any small suggestions in that regard, it'd be to add a slight margin below #railwam-log-alert to give a tad more space before the module header. Overall, a solid update. Thanks.
Hackey5 (talk) 08:19, August 13, 2019 (UTC)
Thank you for the kind words. I'll add in a 5px margin at the bottom of the alert for a little bit more space. If you're looking to see if a script is still maintained, the "last updated" date and script status in the infobox are usually fairly accurate indicators. Some authors a will explicitly set their scripts to "unmaintained" status when they leave. I believe I saw one of the admins drafting clearer guidelines as to what constitutes unmaintained status a few months ago, but I'm not sure what happened to that; it doesn't appear to have been made official according to the policy page. If you have a Discord account and really need to talk to an inactive script author for substantial changes, you might be able to ping them on the Dev Wiki server.
Again, thanks for reporting this issue!
Blaster Niceshotwallcontribs 02:18, August 14, 2019 (UTC)

Export functionality

Is there any possibility for an upcoming export function, to export WAM data as an Excel doc, CSV doc, etc. anytime soon? banana talk/wall timestamp: 20.18 utc | 4 august 2019

Hi, Banarama,
Actually, I am currently working on a feature for V4 that performs statistical analysis on WAM and would be downloadable. (It was originally going to be included as "graph stats," but the current plan is for a separate "WAM reports" feature.) I wasn't originally planning on including raw data in the download file, but that sounds like a useful feature that should be fairly easy to implement.
Were there any particular statistical measures you were hoping to calculate from the data? I already have back-end code written to calculate mean, median, quartiles, and sample standard deviation. I am also planning to include line graphs, box plots, and data "insights" based on historical data from the WAM index in a .pdf version of the report.
Unfortunately, I can't promise a release date for V4 at this point in the development process, but this sort of feature is definitely on the table.
Thanks for your suggestion!
Blaster Niceshotwallcontribs 21:26, August 4, 2019 (UTC)
I don't have too many statistical measures aside from those, but one thing I'm interested in particularly is definitely the inclusion of a trendline analysis. WAM data fluctuates greatly, so I would find it helpful for such a feature to help plot the “big-picture” changes in the data over time, and how they're correlated with interest, updates, etc. banana talk/wall timestamp: 22.46 utc | 5 august 2019

Problem

My wiki (https://super-mario-maker-2-wiki.fandom.com) has the WAM extension, and even though I log the score every day, it just stays at the same number and says: Yesterday's WAM data is not logged. This has been happening for weeks. —Preceding unsigned comment added by AK World (talkcontribs) . Please sign your posts with ~~~~!

Hi, AK World,
I am about to publish a revision to the script that should fix this issue. However, it may take a day or so to be approved by the security review team. Please let me know if the issue persists.
Thanks for reporting this!
Blaster Niceshotwallcontribs 22:04, August 19, 2019 (UTC)
The revision has been approved. Please let me know if you notice any other issues.
Blaster Niceshotwallcontribs 14:56, August 20, 2019 (UTC)

Problem with script

Sorry, English is not my native language. But I have problem with my script on Oxygen Not Included Wiki. RailWAM doesn't appear on my wiki, although the script is installed. Can this problem be somehow solved? — TESERACT (talk) 09:17, August 25, 2019 (UTC)

Hi, TESERACT,
Sorry for the late reply. I have been having some computer issues the last few days that have prevented me from checking the wiki as often as I normally do.
I found an entry in your wiki's WAM log where the data was not stored correctly for some reason. (This issue is not your fault; it appears to have been a weird bug with the way the data was logged on that particular day.) I've removed that entry, and the WAM module is appearing normally on my end. I will further investigate this when I am able to determine what caused the erroneous entry in the first place.
Please let me know if you have any more issues with RailWAM, and thanks for reporting this!
Blaster Niceshotwallcontribs 20:33, August 28, 2019 (UTC)

WAM scores wrong if not in top 5000

I am one of the admins on Diamond Digger Saga Wiki. This fandom does not have much activity and only seldom makes it into the top 5000.

What I see is the following: When we are in the top 5000, we receive a new score value, but when we are beyond the 5000th rank, then the score of the last time that we were in the top list is carried forward. So we do not see the real score from a day outside the top 5000. Is this on purpose?

Additional remark: Since the last update around August 20 the problem with the message "Yesterday's WAM data is not logged." as reported for super-mario-maker-2-wiki above does no more show up. Fred4711 (talk) 17:15, September 8, 2019 (UTC)

Hi, Fred4711,
I'll investigate the discrepancy, but this sounds like an issue rooted in Fandom's API. RailWAM retrieves the data for wikis in the top 5000 from a different API endpoint than wikis below 5000 because Fandom makes rank data available for the top 5000. However, in my experience, the API endpoint for getting top 5000 data tends to be a day behind the one for getting non-5000 data, which creates issues for wikis like yours that are on the cusp between the two. Unfortunately, there isn't anything I can do in RailWAM's code to fix the API; the fix would have to come from Fandom. If the API turns out to be the issue, I can send in a bug report if you'd like, but I have a feeling that this issue doesn't affect enough wikis to make it high on their priority list.
I'm sorry, but I am a little confused by your additional remark. Are you saying the problem with the not logged message has been resolved?
Thanks for reporting this!
Blaster Niceshotwallcontribs 19:01, September 8, 2019 (UTC)
Thank you for the feedback. I was not aware that there are different sources involved. I understand that there is no easy way to fix this (if a possibility to fix it exists at all). So the solution for our fandom must be to become more active to stay in the top 5000 every day ;-)
For the additional remark: I did not want to create confusion. My intention was to confirm that the last update has solved the other problem (which had caused non-top-5000 fandoms to receive scores only every second day, and getting the message "Yesterday's WAM data is not logged." instead). Our fandom was also hit by that bug, but this is now solved.
Fred4711 (talk) 20:18, September 8, 2019 (UTC)

Log page sometimes doesn't show up

Every now and then, https://acecombat.fandom.com/wiki/Special:BlankPage/RailWAM/Log will just stay as a blank page. I'm honestly not sure why. For example, right now the page is blank. This happens on multiple browsers, even if I disable site and user CSS and JS. SlyCooperFan1 [message · contributions] 19:27, September 16, 2019 (UTC)

If it helps at all, I am seeing a console error in Firefox that reads as such:
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://community.fandom.com/api/v1/Wikis/Details?ids=1903. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing). [Learn More]
SlyCooperFan1 [message · contributions] 23:19, September 16, 2019 (UTC)
Hi, SlyCooperFan1,
Sorry for the late reply. I have been overloaded with homework these past few days, so I haven't gotten a chance yet to look into your issue in depth. I'll investigate more closely later this weekend (most likely tomorrow) because I have a lot of work tonight as well.
Thanks for reporting this and sorry for the delay,
Blaster Niceshotwallcontribs 17:46, September 20, 2019 (UTC)
It's no problem at all! For what it's worth, it's suddenly working again, but like I said it'll go back to not working at some point. Real life takes priority though, take your time :) SlyCooperFan1 [message · contributions] 21:28, September 20, 2019 (UTC)
Hi again,
Thank you for being so patient. One of my assignments last weekend ended up being a bit larger than expected, so I haven't been on Dev Wiki until today.
Based on the console message, it looks like Fandom was changing some of the settings on their servers. I just checked the API documentation, and it indeed appears that the server settings are different than I remember. I also checked your wiki, and the problem does is not occurring now. However, I was able to see the issue back when you originally posted, so the issue was not on your end. My guess is that Fandom was testing different security settings on one of their servers.
I can't confirm that this is the issue, though, without being able to see it while it is happening. Were you seeing this issue for a while or just over the span of a couple days? Is it still occurring? If so, I'll monitor your wiki to see if I can find the source of the problem.
Again, thank you for your patience!
Blaster Niceshotwallcontribs 15:07, September 28, 2019 (UTC)
Sorry for the delayed reply, I don't get email notifications for edits to this page. It's happening right this moment, for example. It happens every now and again but I don't notice it for more than a day at a time. SlyCooperFan1 [message · contributions] 23:38, October 2, 2019 (UTC)
I am still able to see the issue as well. Have you noticed if this issue goes away and comes back within the same day? Or does it only change day by day? I'm going to monitor your wiki around midnight UTC time (when the servers change to the next day) to see what happens.
One strange thing I noticed when I was trying to diagnose the issue was that CORS would block a request requesting data about your wiki but not another wiki. For example, while the issue was occurring, I was able to send a GET request for data about a wiki with the ID 7777 (which I confirmed exists), but CORS denies a GET request for data about your wiki (ID 1903). Fandom hosts the problematic API endpoint on community.fandom.com, so it's not a matter of requesting from different domains.
Blaster Niceshotwallcontribs 15:53, October 5, 2019 (UTC)
I don't think I've ever seen it go away or come back within the same day. It only seems to change day by day. Should one of us contact Fandom to ask for assistance in looking into this? SlyCooperFan1 [message · contributions] 21:08, October 5, 2019 (UTC)

(resetting indent) Sorry for the late reply; I must have missed your response in wiki activity. (I really wish there were notifications for talk pages.)

I am going to monitor your wiki for a couple more days so that I can compare some more request/response headers. If I still can't find an issue in RailWAM after that, I'll contact Fandom support to ask about their servers. I have a feeling that if you send in the request, they will simply direct you here.

Blaster Niceshotwallcontribs 20:04, October 12, 2019 (UTC)

I'm sorry for the delay in responding to you. This issue has been particularly inconsistent, which has made it difficult to collect data. It is usually a few days in between when I am able to do tests, and I have been doing several:
  • The issue seems specific to the request URL (https://community.fandom.com/api/v1/Wikis/Details?ids=1903). I am able to successfully send requests with dummy parameters on days it is not working (i.e., hello=true). This leads me to believe it is a cache issue.
  • I have sent requests on two different browsers (Chrome and Edge), and the issue is consistent between them. Thus, I do not believe that this a client-side cache issue. There is also nothing in localStorage that appears problematic.
  • Whether the page works or not seems to change day-by-day.
  • On days when the request on the log old data page fails, it also fails on all other pages on Acepedia that use that request.
  • I can successfully send a request to the exact same URL from another wiki (i.e., bniceshottest.fandom.com), even when it is not working on Acepedia.
  • Request headers are consistent between working days and non-working days.
  • Google searches concerning inconsistent CORS issues haven't turned up anything relevant.
This seems to be a server issue. I'll try sending an email to Fandom about this, but I know that they are pretty busy with Unification, so I don't know if/when they will look into this. (That is why I have been hesitant to email them without some evidence that the issue is on their end.)
If that doesn't work, my dummy parameters test suggests that I could add a unique ID to each request to stop the issue. But since this does not seem to be a client-side issue, that is more of a band-aid approach.
I'll send you a message on Acepedia when they reply so you don't have to keep checking here.
Blaster Niceshotwallcontribs 23:25, October 27, 2019 (UTC)

Issues Retrieving Historic Data

I am trying to use this on the Transformers Legends Wiki and am running into what I believe are two different errors when attempting to get historic data. The first error happens when the wiki was not in the top 5000. The script throws this error:

Uncaught TypeError: Cannot read property 'wam' of null
    at Object.insertChart (load.php?debug=false&lang=en&mode=articles&skin=oasis&missingCallback=importNotifications.importArticleMissing&articles=external%3Adev%3AMediaWiki%3AAddRailModule%2Fcode.js|external%3Adev%3AMediaWiki%3AAjaxRC%2Fcode.js|external%3Adev%3AMediaWiki%3ABackToTopButton%2Fcode.js|external%3Adev%3AMediaWiki%3ADisplayTimer%2Fcode.js|external%3Adev%3AMediaWiki%3AFixWantedFiles%2Fcode.js|external%3Adev%3AMediaWiki%3AInactiveUsers%2Fcode.js|external%3Adev%3AMediaWiki%3AListAdmins%2Fcode.js|external%3Adev%3AMediaWiki%3ALockOldBlogs%2Fcode.js|external%3Adev%3AMediaWiki%3ARailWAM%2Fcode.js|external%3Adev%3AMediaWiki%3ASearchSuggest%2Fcode.js|external%3Adev%3AMediaWiki%3ASpoilerAlert%2Fcode.js|external%3Adev%3AMediaWiki%3AVisualSpellCheck%2Fcode.js|external%3Adev%3AMediaWiki%3AWallGreetingButton%2Fcode.js|MediaWiki%3AFormEditModifications.js|MediaWiki%3AFullInterwikiMap.js&reviewed=1582140074&only=scripts:108)
    at Object.callback (load.php?debug=false&lang=en&mode=articles&skin=oasis&missingCallback=importNotifications.importArticleMissing&articles=external%3Adev%3AMediaWiki%3AAddRailModule%2Fcode.js|external%3Adev%3AMediaWiki%3AAjaxRC%2Fcode.js|external%3Adev%3AMediaWiki%3ABackToTopButton%2Fcode.js|external%3Adev%3AMediaWiki%3ADisplayTimer%2Fcode.js|external%3Adev%3AMediaWiki%3AFixWantedFiles%2Fcode.js|external%3Adev%3AMediaWiki%3AInactiveUsers%2Fcode.js|external%3Adev%3AMediaWiki%3AListAdmins%2Fcode.js|external%3Adev%3AMediaWiki%3ALockOldBlogs%2Fcode.js|external%3Adev%3AMediaWiki%3ARailWAM%2Fcode.js|external%3Adev%3AMediaWiki%3ASearchSuggest%2Fcode.js|external%3Adev%3AMediaWiki%3ASpoilerAlert%2Fcode.js|external%3Adev%3AMediaWiki%3AVisualSpellCheck%2Fcode.js|external%3Adev%3AMediaWiki%3AWallGreetingButton%2Fcode.js|MediaWiki%3AFormEditModifications.js|MediaWiki%3AFullInterwikiMap.js&reviewed=1582140074&only=scripts:118)
    at Object.complete (eval at <anonymous> (jquery,mediawiki:8), <anonymous>:15:312)
    at fire (jquery,mediawiki:12)
    at Object.fireWith (jquery,mediawiki:14)
    at done (jquery,mediawiki:120)
    at XMLHttpRequest.callback (jquery,mediawiki:129)

For an example of this, try graphing data for January 1-3, 2019. The second error for some reason is happening even when the wiki was in the top 5000. This is the error:

Uncaught TypeError: Cannot set property 'logged' of null
    at eval (eval at <anonymous> (jquery,mediawiki:8), <anonymous>:13:981)
    at Function.each (jquery,mediawiki:8)
    at Object.success (eval at <anonymous> (jquery,mediawiki:8), <anonymous>:13:881)
    at fire (jquery,mediawiki:12)
    at Object.fireWith [as resolveWith] (jquery,mediawiki:14)
    at done (jquery,mediawiki:120)
    at XMLHttpRequest.callback (jquery,mediawiki:129)

For an example of this, try graphing for December 1-3, 2012. However, it does not always have these issues. For an example of it working, try graphing January 1-3, 2018.
Andrewds1021 (talk) 03:54, February 20, 2020 (UTC)

Hi Andrew,
Sorry for the late reply. The last few days have been a little hectic.
I found the cause of the issue, but I still need to test the fix to make sure nothing unintended happens. Hopefully, I'll be able to work on that tomorrow, but if not, I should be able to work on it on Friday.
Thanks for reporting this!
Blaster Niceshotwallcontribs 01:44, February 26, 2020 (UTC)
No worries. We all have things to do IRL. I am sure the data will still be there by whenever you get it all sorted out. Thanks for taking the time to look into and fix this.
Andrewds1021 (talk) 06:48, February 27, 2020 (UTC)
Hi again,
Sorry for the delay; some unexpected issues came up this past week. I wrote up a fix for first bug, but the cause of the second does not appear to be what I originally thought it was, so it has taken a bit longer to figure out. I believe I have narrowed down where the second issue is actually coming from, but I still need to test to make sure. I'll let you know when I publish the revised version.
Thanks for your patience!
Blaster Niceshotwallcontribs 20:19, March 6, 2020 (UTC)
Thanks for the update. I appreciate your willingness to fix the errors.
Andrewds1021 (talk) 23:34, March 7, 2020 (UTC)
The revisions have been approved. Please let me know if the issue persists after more than a day or so (when the old version will be have been cleared from the cache) or if you run into any other issues.
Blaster Niceshotwallcontribs 19:26, March 10, 2020 (UTC)
Apologies for the delay. I have just tested it and I am still getting an error message more or less the same as the second one I previously mentioned. It is occurring in the same scenario. Since I am not familiar with reading the error output, I will post it here and maybe you can tell if it is a different issue or not.
Uncaught TypeError: Cannot set property 'logged' of null
    at eval (eval at <anonymous> (jquery,mediawiki:1), <anonymous>:13:981)
    at Function.each (jquery,mediawiki:8)
    at Object.success (eval at <anonymous> (jquery,mediawiki:1), <anonymous>:13:881)
    at fire (jquery,mediawiki:12)
    at Object.fireWith [as resolveWith] (jquery,mediawiki:14)
    at done (jquery,mediawiki:120)
    at XMLHttpRequest.callback (jquery,mediawiki:129)
The first error has been fixed though; so thanks a bunch for that.
Andrewds1021 (talk) 20:36, March 16, 2020 (UTC)
Hi Andrew,
I just wanted to let you know that I saw this message. I should be able to look into it tomorrow or over the weekend.
Thanks for following up with this,
Blaster Niceshotwallcontribs 15:57, March 19, 2020 (UTC)
Hi Andrew,
I submitted a revision that should fix the issue at the end of the last week. I was waiting to post until it is approved, but it doesn't seem like any scripts have been reviewed yet this week. I'm guessing they have staff focusing on the UCP or working from home due to the coronavirus.
I'll let you know when it gets approved.
Blaster Niceshotwallcontribs 21:42, March 31, 2020 (UTC)
The revision has been approved. Let me know if you run into any more issues or if this issue persists.
Blaster Niceshotwallcontribs 15:49, April 4, 2020 (UTC)
Hello Blaster Niceshot,
Thanks for fixing these issues. I know it took you quite a bit of time to iron it all out and I really appreciate it. I actually was already aware that it had been approved. I just hadn't had the chance to test it until now. I am happy to report that I have retested the 3 examples mentioned in my original comment and all of them work without a hitch. I tried a few extra date ranges as well and not a single issue. At some point, I will be doing some mass logging of old data so I guess that will be the true test. I'll be sure to let you know if I come across any other issues. Thanks so much.
Andrewds1021 (talk) 22:11, April 4, 2020 (UTC)
Hello Blaster Niceshot,
I just wanted to let you know that I have started mass-logging old data. So far I have logged from the end of October 2012 through 2016 and have not encountered any clear issues with the script. Earlier today, there was an issue with the data not actually getting added to the log page but I suspect that is an issue on Fandom's side as it was working before and is working now.
Andrewds1021 (talk) 23:03, April 7, 2020 (UTC)
P.S. I noticed that your getLogged function appears to support multiple log pages but your log function does not (which makes sense). I was wondering if you would consider modifying the script to support reading from multiple log pages. I am sure you know more JS than I do but it appears to be that all you would need to do is modify how you call log from code.js. Primarily using just one value from railWAM.logPage in the event that it is an array rather than a string.
Andrewds1021 (talk) 23:22, April 7, 2020 (UTC)
Hi Andrew,
I'm glad to hear everything is working. I added support for multiple log pages in the getLogged function when I intended lib.js to serve as a general library for WAM functions; I didn't know if other scripts would need multiple log pages. I would add it to the main script, but I am currently in the process of rewriting RailWAM to eliminate user-based logging entirely. I got approval from Fandom a few months ago to make a Node.js server that will control all data retrieval and logging for RailWAM. A bot account will log data on a dedicated wiki, and the whole logging process should be invisible to the end-user. I would prefer to eliminate logging entirely, but I would have to pay to store the data myself or Fandom would have to change how their WAM API works. (As it currently stands, the server uses a free Redis database because it's only storing a list of wiki IDs that are considered "active.")
The data that has already been logged on individual wikis will be transferred, so you aren't wasting your time mass-logging data now.
I might have some "guinea pig" wikis test the new version to make the general transition smoother. Since you have expressed an interest in RailWAM, do you want your wiki be one of the testers? (It will likely be at least a few months before anything is ready to test.)
Blaster Niceshotwallcontribs 20:07, April 9, 2020 (UTC)
I see. Thanks for letting me know. That sounds like a pretty significant project you have on your hands at the moment. If I understand you correctly, the new version shouldn't impact old logs. Therefore, I have no issue offering "my" wiki as a test wiki if you would like. That said, the wiki is pretty inactive and will probably never show in the top 5000 ever again. As such, there probably wouldn't be any interesting test cases generated from it. I added RailWAM to the wiki in late February with the primary purpose of accessing the older data.
Andrewds1021 (talk) 20:42, April 11, 2020 (UTC)

I can't see the rank of the wiki

Anotación 2020-02-29 014948

Every time I see RailWAM, it only gives me score value. When I enter the dashboard, it says the rank and vertical rank value is unknown. I want to know why that happens. --AndreMor (talk) 06:50, February 29, 2020 (UTC) https://wubbzy.fandom.com/wiki/Special:BlankPage/RailWAM/Dashboard

It appears that the entries you've been logging since mid-November last year are missing ranking data. For what it's worth, I'm able to log the latest entry without issue. If you're using a content blocker, ensure you've whitelisted XHR requests to railwam.herokuapp.com, otherwise RailWAM will fall back to a Wikia-provided API that does not include ranking data. puxlit (talk) 08:49, February 29, 2020 (UTC)
Hi AndreMor,
Sorry for the late reply; there were some unexpected issues that I needed to deal with this past week. It looks like there was a discussion about your issue on the Discord server (thanks for replying everyone). Is this issue still occurring for you?
Thanks for reporting this!
Blaster Niceshotwallcontribs 20:23, March 6, 2020 (UTC)

bug(s) in the appendafter logic

there are 2 lines, that creates list of elements:

appendElms += elm + ', #top-right-boxad-wrapper, #top-boxad-wrapper, #NATIVE_TABOOLA_RAIL';

note the absence of the comma at the end of the line: it leads to list corruption (with resulting selector like "elm1, #top-...., #NATIVE_TABOOLARAILelm2"). that means that the only 1st element of the appendafter array will have effect.

how to check: open Special:WikiActivity, load the script with

window.railWAM = {
    logPage:"Project:WAM Log",
    appendAfter: ['.element1', '.insights-module'],
};

also, whole this if: if (railWAM.appendAfter === i++), for me, the line works like "if array === number". Fngplg (talk) 14:24, May 7, 2020 (UTC)

Hi, Fngplg,
Thanks for reporting this. I have a lot going on Monday and Tuesday, so I should be able to get to this Wednesday or Thursday.
Blaster Niceshotwallcontribs 02:50, May 10, 2020 (UTC)
Hi again,
Sorry for the delay. I submitted a revision that should fix this issue; I must've written that old code after I was up working until 3 a.m. Please let me know if you run into any more issues.
Blaster Niceshotwallcontribs 01:56, May 15, 2020 (UTC)
2nd block still here. do search for if (railWAM.appendAfter === i++) Fngplg (talk) 02:15, May 15, 2020 (UTC)
Fixed. Blaster Niceshotwallcontribs 02:26, May 15, 2020 (UTC)

Where do I log my WAM?

Where do I log my WAM? This is for both Personal and Wiki-wide, so can u help me, like can u send a screenshot of the page I'm supposed to be on? JustLeafy told me hit the 'Log Data' button but idk where or what the page with the button is. Also every time I open the page https://survivio-idea.fandom.com/wiki/Special:BlankPage/RailWAM/Log and https://survivio-idea.fandom.com/wiki/Special:BlankPage/RailWAM/Database, it stays blank but however https://survivio-idea.fandom.com/wiki/Special:BlankPage/RailWAM/Dashboard shows the Dashboard. How is this possible?

~ Trooper777123 FlameClan Specialist 12:00, May 11, 2020 (UTC)

Hi, Trooper777123,
Sorry for the late reply. I have been taking numerous tests these last few days.
Are you still encountering this issue? I visited your wiki and copied your configuration options into my personal JS. I was able to access all of those RailWAM-related pages. I am also able to see the log alert. If you wrote this message shortly after installing RailWAM, it is possible that your cache still needed to update.
If everything is loading for you, but you don't know how to log data, there should be some text in a red box above the rail module that says "Log latest data." Click on that, and it should open up a dialog that allows you to log the data.
I also noticed that you have installed RailWAM in both your site-wide JS and your personal JS on that wiki. You really only need to install it once if you are installing it on a single wiki. However, installing it twice should not cause any issues, except that keeping a separate, personal WAM log won't allow you to access the data in the site-wide log; you would be logging it redundantly.
Please let me know if you are still having this issue or if you need more help logging data; I can provide a screenshot if needed.
Thanks for reporting this!
Blaster Niceshotwallcontribs 20:01, May 13, 2020 (UTC)
Noticed:
'personal WAM log won't allow you to access the data in the site-wide log' ; matter of fact that's exactly what it done. I couldn't see the Project:WAM Log page data on my wiki.
So this is what I will try.
1. Look for the Log Alert. If I do find it, I do as u said if the second part of ur message.
2. Disable personal JS
3. Clear cache and check again for Log Alert, basically repeating #1.
4. If it doesn't work then, I will tell u asap.
Trooper777123 FlameClan Specialist 18:41, May 14, 2020 (UTC)
I may have found the problem. My common.js was on the complicated side, and after viewing PredatoR X ~CF0P~'s common.js on Surviv.io Wiki, I saw how simple it could be. So I reduced mine on Surviv.io Idea Wiki down. Now I'm waiting for the cache to update.
~ Trooper777123 FlameClan Specialist 18:50, May 14, 2020 (UTC)

Make this thing visible only to registered users

Hello! I'd like to suggest something here – please consider disabling this script to anonymous users. Let me explain why, because there are two main reasons:

  • Significant majority of wiki readers… well… don't care about wiki's WAM rank. They don't even know what WAM is. Seriously – for me RailWAM is definition of providing unnecessary data to people who didn't even ask to see it.
  • This script is performing AJAX request to external website operated by 3rd party service provider and made by community member – users' privacy is potentially exposed by keeping logs, etc. I'm not really sure if that even complies with Fandom Privacy Policy.

As you may see I'm not a great fan of your script (sorry), however I see how many communities around Fandom decided to use it and therefore I'd be very happy if you take my suggestion into consideration as they're made out of concern about users' good. Thanks.

RAIL my talk 21:01, June 1, 2020 (UTC)

Hi, Rail,
This is going to be a long post, so I'll break this down into separate issues.
  • Privacy: Because this is an important issue for a lot of users, I want to cover this one first in a lot of detail.
  • There is a line in Fandom's privacy policy that states: "APIs and SDKs may allow third parties including advertising partners to collect your personal information in order to provide content that is more relevant to you." From my limited knowledge of the law, that seems that it would apply to RailWAM if you consider the server an API. I have also received approval to use such a service via official channels. When I first added a third-party proxy, Fandom rejected the revision in JSRT. I sent them an email via Special:Contact to explain why it is necessary to use a proxy, and they changed it to approved. I received further approval, more explicitly than changing the approval on a script, several months ago when they gave me the go-ahead to expand the Node.js server so that I could eliminate WAM logs. Specifically, that means using a database to store wiki IDs and WAM data (not IP addresses or other user information) through Heroku. That has not been completed yet, but it doesn't take any more or less data from the user than it does now.
  • IP addresses are sent to the Heroku server as they would be to any website you visit. I also receive information about when the request is sent and what wiki ID it came from through the logs. Heroku deletes these logs after one week. I do not download or otherwise store this information. (Obviously, not downloading information doesn't make collecting information compliant by itself. See my above point about approval.) I make all the code that is actively used by the server public, although I keep in-development server code private. (Though it doesn't seem I updated the infobox with the link to the current server code, even though it is public under the same username as my Fandom username. I'll add it when I finish writing this.)
  • Years ago, before I published RailWAM on Dev, I emailed Fandom when they first imposed stricter access limits on the WAM index API. I asked them to lighten this restriction so that in-network sites could access the API because it is only available on community.fandom.com. They refused, citing the fact that WAM was supposedly going to change soon anyway, whatever that means. I tried multiple ways but was unable to access certain WAM data (rank, hub rank) via script without a third-party service on browsers like Google Chrome that enforce strict MIME-type checking. Originally, RailWAM used YQL from Yahoo, but I had to switch to a Heroku server when YQL shut down.
  • You did not bring this up explicitly in your post, but I want to cover WAM logs because they have been cited as another privacy concern and annoyance. To be completely honest, I don't like WAM logs either. I don't like creating a page on users' wikis. I don't like having users edit that page to update their WAM data. They create an awful headache for me program logic-wise and tons of weird bugs. They weren't even part of my initial design of the script. They are necessary for wikis below the top 5,000 WAM ranks because their historical data is not otherwise available. Cache/localStorage were not options because some wikis use raising the WAM score as a community goal and need historical WAM data to be publicly available--we could argue the merits of that until the end of time, but frankly, I don't think anyone (including me) knows more about those communities than the users and admins there do. For wikis in the top 5,000, they aren't necessary for historical data if you want to wait for several hours while the script requests one day of data at a time at a rate of 1 request/10 seconds. I emailed Fandom about that rate, and that is what they provided via Special:Contact. I've kept WAM logs in for this long because there are very few options to store ~8 years worth of data for the 5,000 wikis in the index every day plus new data for free.
  • There is only so much I can do within the limits Fandom provides. They expressed a possibility of modifying their WAM API once UCP is finished in my last contact with them, though that was before the layoffs. I don't know when/if that will ever happen, so I have to keep working as if it won't.
  • Now to what I believe was more the heart of your post: anonymous users.
  • I agree with you that WAM data isn't relevant to most casual readers. In fact, I was already considering making showToAnons = false the default in the next major version. I will not make such a change before a major version release because I don't think it would be fair to the administrators who don't keep tabs on Dev Wiki and may never even realize such a change was made. I am already planning on sending some sort of notification out with the next update so people don't come on here asking where their log alerts went. I will not remove the option to show the module to anons entirely because there are some wikis where anons are prolific contributors. Community WAM goals could be relevant to them. I don't wish to restrict admins how they use the script because I have a limited ability to see their use case when I have never been to their wiki, and I don't have access to any sort of Fandom-wide data about such things. Perhaps more visibility options would help compensate, but it depends on what is technically possible on Fandom. For now, I will not make any promises on a change.
  • On the subject of you not liking the script:
  • That obviously isn't what I like to hear from users, but not everyone likes rail modules and/or WAM data. I can't provide you any other options to hide it without creating privacy concerns (i.e. cookies) besides what is already available in the documentation: Opting Out of RailWAM. If you feel uncomfortable with your IP address being sent to a Heroku server, this option stops the running of the script before it gets to the point where it would make the request to the proxy.
Thanks,
Blaster Niceshotwallcontribs 00:24, June 2, 2020 (UTC)
Thanks for your reply! I understand why you have to use proxy to get data necessary to run this script, but that's still a matter of concern to me. But eventually I have to accept what staff told you ¯\_(ツ)_/¯
"In fact, I was already considering making showToAnons = false the default in the next major version." – great to hear that!
"I can't provide you any other options to hide it without creating privacy concerns (i.e. cookies) besides what is already available in the documentation: Opting Out of RailWAM." Good you're bringing this up. Provided code doesn't work because sitewide wiki JavaScript seems to be loaded before custom user JS so it can't work. I am using NoScript and PrivacyBadger browser add-ons to block requests to that domain (but not only to this particular one, obviously) so it's not a problem to me. RailModule is still displayed tho.
Thanks again,
RAIL my talk 07:06, June 2, 2020 (UTC)
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+