Talk:RailWAM

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:


 * 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 Niceshot wall  contribs  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 Niceshot wall  contribs  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 Niceshot wall  contribs  20:33, September 1, 2016 (UTC)

Polski
Hello! Translated for PL by Szynka013 and DarknessEyes23. Good job and good idea guys ^^ ~ Szynka 013 13:02, September 1, 2016 (UTC)
 * Thanks for your translation! It will be added shortly.
 * Blaster Niceshot wall  contribs  20:33, September 1, 2016 (UTC)

IT
Translations for Italian: 14:02, September 26, 2016 (UTC)


 * Added myself.  19:47, September 26, 2016 (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?
 * 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 Niceshot wall  contribs  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 Niceshot wall  contribs  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 Niceshot wall  contribs  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 Niceshot wall  contribs  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 Niceshot wall  contribs  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 Niceshot wall  contribs  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 Niceshot wall  contribs  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): Ultragustavo25  |  Mural  02:51, September 7, 2016 (UTC)


 * Thank you!


 * Blaster Niceshot wall  contribs  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 Niceshot wall  contribs  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. &mdash; NoWay (talk &middot; 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 Niceshot wall  contribs  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 Niceshot wall  contribs  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:


 * 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  option sets the script to load on all namespaces):


 * I removed the extra  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.
 * 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 Niceshot wall  contribs  21:30, September 8, 2016 (UTC)

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


 * Thank you!


 * Blaster Niceshot wall  contribs  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/WAM.  The 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 Niceshot wall  contribs  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 Dai ca superman (talk) 10:50, September 15, 2016 (UTC)


 * Hello,
 * This issue appears to be that  and   are conflicting. The script is set to check if the page matches one of the pages in the   and if its namespace matches one in  . 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  and   at the same time. Thanks for bring this up,
 * Blaster Niceshot wall  contribs  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 Niceshot wall  contribs  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:
 * Current Vietnamese translation:
 * Thanks,
 * Blaster Niceshot wall  contribs  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 Niceshot wall  contribs  19:28, September 23, 2016 (UTC)
 * Thank you for correcting!
 * Blaster Niceshot wall  contribs  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 Niceshot wall  contribs  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 Niceshot wall  contribs  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: ... , 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 Niceshot wall  contribs  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. 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 Niceshot wall  contribs  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  to false to turn the alerts off once the new version is live:


 * Blaster Niceshot wall  contribs  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: 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.
 * abcabc
 * abcabc

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 Niceshot wall  contribs  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 Niceshot wall  contribs  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 Niceshot wall  contribs  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. 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 Niceshot wall  contribs  19:05, October 12, 2016 (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. http://images2.wikia.nocookie.net/__cb20160317045446/spyro/ru/images/thumb/8/89/Greenflych1.gif/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 Niceshot wall  contribs  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 Niceshot wall  contribs  15:15, April 9, 2017 (UTC)


 * Oh weird...Revision has been rejected. http://vignette3.wikia.nocookie.net/central/images/8/88/Washing_Machine.png/revision/latest?cb=20161204163456 Benny✍ 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 Niceshot wall  contribs  00:29, April 13, 2017 (UTC)


 * Hello sir do i have copy this whole thing or the one in the RailWAM page
 *  Clash  .    Bikash   Talk  05:31, April 15, 2017 (UTC)