Board Thread:Support Requests - Getting Technical/@comment-30384903-20150620185412

Hi, so I'm never a person that fully knows JavasSript, but what I'm good at is learning patterns and simply copying and pasting; after analyzing how two other wikis did it, I successfully got the first rating (using http://rating-widget.com/get/rating/) onto my wiki (MediaWiki:Common.js/RatingWidget.js) and got it set up with a template (Template:FieryRatings) and actually put it into use for like one night; then when I woke up this morning, I thought, since the site provides different types of ratings ("stars" and the simple "like/dislike"), I thought it'd be nice to have two different types on a same page; I was aiming for a rating of the current quality of the article, and a rating for what people thought about the actual subject, the article is covering, itself. I then set up MediaWiki:Common.js/RatingWidget2.js and Template:EntertainmentRatings; I had imported the second script and placed the second template on the same page... and then the problem surfaced: they always display the same type of ratings, and it's not like the second script failed, because if you refresh the page the ratings are on, sometimes the two ratings are both displaying the second type.

I feel like I'm missing a fundamental step that will restrict which template and code should display which script, but I failed to figure it out... I've read http://rating-widget.com/documentation/#rw_api_example_customize_two and I'm just going to admit I'm not getting it; I've currently undone the installation of the second script and removed the second template on the page for display (because it was getting confusing to see two of the same thing); but yeah, I feel like there's a lot of talented people on Wikia and hopefully someone can help solving this problem! Thanks! S a m m m ✦✧ (talk) 18:54, June 20, 2015 (UTC)  