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)

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)