User talk:Darqam/GW2W Easy Mode

From Guild Wars 2 Wiki
Jump to: navigation, search

Inputting Feedback[edit]

When giving feedback, make sure the details are clear. If there is a bug or problem, make sure you give enough information that I can reproduce it on my own. Please sign your comments (mainly so I have a timestamp of the issue).

source code?--Relyk ~ talk < 21:23, 7 October 2016 (UTC)
For anything in particular, or the whole damn thing? -Darqam (talk) 00:25, 8 October 2016 (UTC)
Whole thing? Curious on how other people go about serializing API data into something the wiki can use as I look at Widget:GW2 SMW Forms. You don't have to share anything if you don't want to.--Relyk ~ talk < 03:28, 8 October 2016 (UTC)
No i can, I'll setup a zip file tomorrow probably. But really all I do is download absolutely everything from items/colors/minis/skills/achiev/etc... and then apply a crap ton of if/else statements capturing all the things we have on the wiki for standards. It ain't pretty but it works. -Darqam (talk) 04:05, 8 October 2016 (UTC)

(Reset indent) Ok, so over the weekend hotel wifi didn't allow to download files... so upload got delayed. Anyway, it is available [ here] (Note to future readers, this link is now dead and a new source may be available at a later time if I get things secured properly.) as a .7z file. Fair warning (again), this has been in no way formatted/built nicely. It is exception upon exception. Once It gets to a better spot, I'll probably go back and make it actually legible. -Darqam (talk) 00:08, 12 October 2016 (UTC)


If you were to add this by default, could you also add {{section-stub}} to it? It'll be easy to over-write that line as needed. G R E E N E R 21:28, 18 October 2016 (UTC)

Yeah I think I will do so. Only issue is I need to write in a quick check to not have the acquisition header appear twice in some cases. -Darqam (talk) 22:15, 18 October 2016 (UTC)
Update: Nevermind, was much easier than anticipated (essentially check if it has outputted acquisition header, if not, the output it now). Items should now come up with that every time (I hope). -Darqam (talk) 22:27, 18 October 2016 (UTC)
Much appreciated, and looks good on the random types I've tried. I also enjoy you grabbing the mini id where appropriate. G R E E N E R 23:18, 19 October 2016 (UTC)
Yeah, unfortunately there is no api values for which set they belong in in some cases (gem store, festival, etc) so can't always have complete values :( -Darqam (talk) 23:23, 19 October 2016 (UTC)

Feedback 10th May 2017[edit]

The new changes are great, it's much faster than before. I had a go and tested a few things and found a few discrepancies.

  • The collection tag only shows one collection; some items have two EG: Mystic Staff.
  • “Release” can also have “lws3” and “lws2” values for living world items.
  • Decoration items have some issues because we use some extra identifiers like decoration type that isn’t in the /items/ API. That stuff is in the /guild/upgrades/ part of the API but that’s a mess on its own. Lion Statue
  • Feasts aren’t labelled and the utility variables are in a template: Maintenance Oil Station.
  • I’ve got “type” showing up as “generic” when it should be “consumable” on a few of those that I’ve linked.

I’ll let you know if I find any others. J.Tesla (talk) 17:43, 10 May 2017 (UTC)

Thanks, I'll take a look at these. The release thing needs to be hard-coded in, so in the end I might leave it just blank with a comment; I'll see. -Darqam 18:12, 10 May 2017 (UTC)
Ok, I believe I've managed to catch all the issues. I don't think I can list the type of decoration, since that info is wiki based and not actually on the API that I can see. Some consumables might still be wonky due to the ridiculous variation in what anet considers consumables, so I'll get to each case as someone brings it up or I find it. Thanks for the info so far! -Darqam 19:43, 10 May 2017 (UTC)
Seems I was mistaken about "decoration_type" being in there. If an item is determined to be a decoration it can be added in blank to be filled later. There are some things to be improved with decorations though:
  • If we start with the Ascalonian Tree. We have the flags “AccountBound” and “AccountBindOnUse” which should set “bound = account”.
  • We next need to find the recipe page which your site seems to manage. In here we have a “type” = “GuildDecoration”. That can overwrite the consumable type in the item infobox to “type = decoration”. We also have the flag “AutoLearned” which should output “source = automatic”. We have three ingredients but a unique “guild_ingredients” because guild decorations often require another decoration to upgrade. If we follow that guild_id we get to:
  • The guild upgrade portion of the API. Here we can see that this decoration is based on an item in “costs”. We can pull the name and item id from there to complete the recipe.
  • An alternative way to get the type would be following “details:guild_upgrade_id” on the items api to find it’s guild upgrade counterpart.
Unrelated to decoration, if an item/skin is a part of a collection the nav "{{collection nav}}" can be added to the bottom to generate a list of other items in the collection.
Since your site finds new entries it could be very useful when entering the "release = " parameter. I remember alex saying somewhere he wanted it to use a date format instead of "hot" or "lws3".
J.Tesla (talk) 15:54, 13 May 2017 (UTC)
I will take a look at this most likely in the coming week. Thanks for the very detailed information. I haven't attempted to deal much with decoration, so this will help make it much more fluid. -Darqam 04:19, 14 May 2017 (UTC)
Ok, I think I caught all of it. I'll keep an eye on decorations as they pop-up and are made on the wiki and adjust what I can before then and as they arrive. -Darqam 17:06, 15 May 2017 (UTC)

The API calls this a Harpoon but we call it a Spear. The recipe does the same. Thackeray's_Skewer. And "Speargun" > "Harpoon gun" here. J.Tesla (talk) 21:28, 17 May 2017 (UTC)

I think I have it fixed now. Thanks a bunch for looking through these with such details. -Darqam 22:01, 17 May 2017 (UTC)

How can we find tonic type?[edit]

Hey Darqam!
I'm writing a tool like GW2W Easy Mode for french wiki(fr:Utilisateur:Karaknor/générateur de pages). How do you know the type for a tonic with the API? --Karaknor (talk) 19:42, 11 May 2017 (UTC)

There unfortunately isn't a way to check if it's a tonic directly through the api, my check for it is usually: If the item has the word 'Tonic' in it's name AND IF the item is "type": "Consumable", then display it as a tonic. It's not super pretty, but unfortunately that's all I've figured out for it. -Darqam 21:49, 11 May 2017 (UTC)

Tries to load CSS page that doesn't exist[edit]

I could be wrong but it seems that it's trying to load a "/stylez.css" page on each page of your website, which redirects to hostgator. -Chieftain AlexUser Chieftain Alex sig.png 18:37, 16 May 2017 (UTC)

Oh man, that's a really old remnant that shouldn't be there. I removed the call for it for now (although maybe I should actually add the files and do proper css... meh). Thanks for catching it. -Darqam 21:01, 16 May 2017 (UTC)
Doing CSS from scratch is difficult. I had a play with it the other day but the second you drop a background image in there on the main section, you have trouble seeing the rare/exotic text. // -Chieftain AlexUser Chieftain Alex sig.png 22:35, 17 May 2017 (UTC)
Oh man, if you want to work on css, by all means please do so. I know the colors are a pain, and I actually increased the font size to make them visible. I enjoy what they add, but it might not be the best choice. If you, or anyone else, has other options I am more than willing to hear about it. I gave up a while ago on trying to actually design any website since I just can't seem to grasp it; thus why so far it's basically been 3 columns on white background. -Darqam 23:06, 17 May 2017 (UTC)
It's so pretty! :<
I was wondering, could you remove the | categorize = y bit from the skin infobox please? That's the default value and really isn't necessary to set. -Chieftain AlexUser Chieftain Alex sig.png 21:21, 7 June 2017 (UTC)
Oh sure, will remove that right away. As for it being pretty, I do agree. You did a good job! Now if only I could get the damn footer I play around with to work... -Darqam 23:17, 7 June 2017 (UTC)


Need somewhere to put a list, so it's here.

  • Add different color highlight to links clicked (to make days with 200+ items not hell) -Darqam 14:33, 26 July 2017 (UTC)
  • Add toggle option for floating/fixed infobox to not have to scroll so damn much -Darqam 14:33, 26 July 2017 (UTC)
  • Fix the stupid | icon = .png and | gallery = .jpg when skin isn't in database. -Darqam 14:33, 26 July 2017 (UTC)
  • Fix Infusion item type in infobox (Default -> Infusion) -Darqam 15:37, 26 July 2017 (UTC)
  • Fix adding `(skin)` if item name matches skin in BL weapons (see abaddon weapons). -Darqam 16:35, 26 July 2017 (UTC)
  • Put proper nav template for BL weapons (I swear I had done this...) -Darqam 16:54, 26 July 2017 (UTC)
Previously visited link colours are just like (example here for a link element with class "clicky" that's been visited before in your browser history) a.clicky:visited { color: red; } --Chieftain AlexUser Chieftain Alex sig.png 18:08, 26 July 2017 (UTC)
I was thinking about that, but does that actually work with non-url clicks? Never did try that, will see if it is that simple. -Darqam 18:43, 26 July 2017 (UTC)
Non url clicks?... >< oh right. Damnit -Chieftain AlexUser Chieftain Alex sig.png 19:22, 26 July 2017 (UTC)
Got it to work on my beta pages, once I figure out a nice way to allows floaty infoboxes, I'll push it all to live. Basically onClick send this, then <whatever>"#d9e6f9"; in the receiving function.-Darqam 20:42, 26 July 2017 (UTC)
And update is live, hopefully nothing broke hard, couldn't find anything on my end. -Darqam 21:57, 26 July 2017 (UTC)

(Reset indent) Item 82081 isn't loading the {{flavor}} template properly. It's starting it with the Anet version of the code, <c=@Flavor>. G R E E N E R 17:58, 1 August 2017 (UTC)

Fixed, anet decided to use a capital "F" instead of lowercase for once and I hadn't anticipated that. -Darqam 19:22, 1 August 2017 (UTC)

More stuff, ignore if you don't care

  • Create proper looping query when missing entries are over 200 in quantity (and not the hacked up butcher work currently in place) - Actually won't do this for the sake of not creating possible endless API querries
  • Shift things to proper/efficient sql syntax - almost done
  • Create gradual/systematic/whatever updated to check if item/achievements/things still match API, if not update entry
    • Create page to track new updates (independent of new items)
      • Page should track what entry changed, what details changed. (Requires new table in db, maybe | id | entry type | date (array) | property changed (array) | old value (array) | new value (array) )
  • Take a look at placement of {{collection nav}} appearing in places where it shouldn't on armor pages (I think when skin is collection?) -Darqam 23:15, 6 November 2017 (UTC)
  • lol, fix this whatever the hell that was. -Darqam 17:55, 9 November 2017 (UTC)
  • Look into putting in duplicate icon-Darqam 14:08, 17 November 2017 (UTC)
    • Extension: add checkbox (if query is too long) to allow for mediawiki query. if yes also add check to see if page exists, if not straight to edit. - finished, not publicly available atm
  • Attuned rings don't default to proper icon - Fixed on re-write, will be visible when big update arrives.

-Darqam 22:16, 20 November 2017 (UTC)

  • infusion issue here (see variables parameter) -Darqam 03:59, 30 November 2017 (UTC)
  • Deal with adding links to stats in descriptions. Probably just a word match+replace. Might have false positive, to see if benefits outweigh false catches. -Darqam 00:25, 21 December 2017 (UTC)
  • Inc : The dye kit page was missing the nav + giftable category
  • Vent :for unique achievement pages (the ones that get their articles), replace ''' (bold) with [[ ]] '''Thunderhead Peaks Treasure''' is a [[All or Nothing]] [[achievement]]. [[Thunderhead Peaks Treasure]] is a [[All or Nothing]] [[achievement]].
  • Vent: this one is more of a request, i suppose, but is it possible to add {{Ascended armor nav}} (instead of collection nav) for those pieces?

-Darqam 10:34, 11 January 2019 (UTC)


I've been wondering if it's technically possible to have a drop-down menu with different kinds of premade pages (for dyes, outfits, minis, combos, and so forth) to choose from when creating articles via your fancy tool. Just popped into my head since most often categories are missing from articles that are created this way. User Incarnazeus Signature.pngtalk 16:22, 23 August 2017 (UTC)

Do you mean like different templates for the same given item? If so that would be a crazy overhaul and not sure would be worth doing. If however you mean just a quick template output with no content in it (kind of like the template pages have on the wiki), I probably could write that up easily enough. -Darqam 19:02, 23 August 2017 (UTC)
I mean templates for different items, actually. Like raw forms for specific item types. Like a barebone page for a miniature, for example. Hope that makes sense. :x User Incarnazeus Signature.pngtalk 19:36, 23 August 2017 (UTC)
I can probably do that just fine, all I would do though is just copy stuff from like Template:Item_infobox though. Might make minor tweaks but that would be it. I would extend them to cover all the cases that I have, so presumably slightly more extensive than what the wiki has atm (I think?). Is that what you are looking for? -Darqam 23:59, 23 August 2017 (UTC)
Ok so update, is something like this what you want? I'm not sure I'll stick with that format, and there is of course still a bunch missing, but I'd like to know if that's what you were aiming for with the request before continuing. -Darqam 16:35, 26 August 2017 (UTC)
I just have one tiny request, can you move the id down from being on top the the near bottom, above release? It's a consistency thing, as that's where we have it in the infobox template and formatting guide. - Doodleplex 21:06, 23 August 2017 (UTC)
I can do that for sure. Don't actually have access (or time) to do that atm, but should be changed within the week. -Darqam 23:59, 23 August 2017 (UTC)
Actually, follow up. Would this be only for items, or also for skins? -Darqam 00:05, 24 August 2017 (UTC)
Skins too, yeah, makes it easier for people. - Doodleplex 00:20, 24 August 2017 (UTC)
Ok code is changed, but I only have access to the server later, will test real quick asap and then push live. -Darqam 02:17, 24 August 2017 (UTC)
And it should be updated. Only thing I didn't change was the recipe id location since I believe that's always been at the top (?). -Darqam 16:35, 26 August 2017 (UTC)

(Reset indent) That's neat, thanks for these changes! Any chance categories could be included too? User Incarnazeus Signature.pngtalk 17:06, 26 August 2017 (UTC)

Hum, not sure what you mean, I don't recall having to put manual categories into templates, or do you mean having a full on list of all categories on the wiki? -17:14, 26 August 2017 (UTC)
Ah, no, not into the templates. I meant if it was possible to stick the categories into the article templates (like the interwikis). User Incarnazeus Signature.pngtalk 18:01, 26 August 2017 (UTC)
Hum, that could be possible, but I'd need something that's consistent. So far I haven't because scenarios haven't arisen outside of decorations. For what type of articles is there categories missing? -Darqam 18:10, 26 August 2017 (UTC)
Miniatures mostly, and other Gem Store items like gliders (referring to the giftable category and some diverse other gem store specific ones). Not sure how to separate these from non-gem-store variants though... User Incarnazeus Signature.pngtalk 18:13, 26 August 2017 (UTC)
Unfortunately, until the gemstore API goes live, there's not much I can do about figuring out which item is gem store or not, so that will have to wait :/ -Darqam 18:33, 26 August 2017 (UTC)
All right, no worries at all. :) Gotta make the most of the brief time we're superior to machines! >:D Manual labor, yeah! User Incarnazeus Signature.pngtalk 18:36, 26 August 2017 (UTC)

(Reset indent) Ok so is done (unless something more needs to be added?). As well it seems there is an automated Gem Store webpage/API thingy now, but the scope of implementing that project is rather significant, and probably won't have time to do it soon; so eventually I'll have auto-updates going (in the style of chieftain's widget) but not just yet. -Darqam 02:39, 27 August 2017 (UTC)

Neat! Thank you for your work! User Incarnazeus Signature.pngtalk 08:49, 27 August 2017 (UTC)

Inventory Infobox[edit]

The new bags show up with "item infobox" when it should be "inventory infobox". Took a while to find out that we use inventory infobox. Not sure why we even have it. Item id was 83436 J.Tesla (talk) 17:20, 29 September 2017 (UTC)

Glad I wasn't the only one. J.Tesla (talk) 17:24, 29 September 2017 (UTC)
Yeah I noticed that, but in all honesty forgot again. Thanks for the heads up on it, it *should* be simple enough to fix I believe. -Darqam 18:11, 29 September 2017 (UTC)
Ok, I believe the fix in place should work given it mainly was just adding the | slots parameter and changing the infobox name. The bag nav should also appear by default now as well. -Darqam 19:07, 29 September 2017 (UTC)

Skin infobox[edit]

Hiya Darqam, the type parameter value is called "Chest" (wiki) instead of "Coat" (api). Could you apply a bandaid? -Chieftain AlexUser Chieftain Alex sig.png 14:28, 1 October 2017 (UTC)

ngggggh. Pretty sure there's also a similar issue with helms. Woop woop, another 2 if statement to add to the sea of those already present. -Darqam 16:15, 1 October 2017 (UTC)

👌 Suggestions 👌[edit]

Hey Darq-human. Here are some of my suggestions:

  1. For miniatures, adding | gallery1 = ... to the infobox is redundant, since it defaults to that anyway.
  2. Would it be possible for the easy mode to detect whether or not weapons are part of a set? For example, you have War God's Hammer - the system recognizes there's more than, say, three weapons in the api with the War God's prefix; in that case, the skin description would be:
"War God's Hammer is a skin that is part of the War God's weapons set.", rather than the generic "hammer skin" line.

That's kinda all I had, thought I had more tbh.

Oh right, is there any way for the search bar to stay on the page while looking at new entries? In the current state, you have to go to the previous page to search for items while on any other page other than home. —Ventriloquist 07:25, 7 November 2017 (UTC)

I could hardcode bl weapons as weapon sets no problem, but any other weapons I can't really since there's nothing in the API hinting to it being a set or not.
As for the search bar, both pages achieve rather different goals, I could maybe try and merge it all in one, but you'd still have to click a bunch and it would get chaotic in my opinion. -Darqam 13:41, 7 November 2017 (UTC)

Is there a way for if an item has a shared icon (which it already checks for), for it to put the icon code in as well? Saves a couple clicks.--Rain Spell (talk) 21:55, 12 November 2017 (UTC)

Unfortunately not, because there's no way to know *which* item was chosen on the wiki as the icon name, and sometimes the icon name doesn't even match any of the items. I think I tried initially to fetch a wiki page and extract it, but gave up on that. Might be worth looking up again through mediawiki API if it doesn't bog down load time. (So basically in the short term, no. Long term, maybe). -Darqam 02:01, 13 November 2017 (UTC)
Aw, that's unfortunate. Thanks for the response and all your work on easy mode <3--Rain Spell (talk) 04:47, 13 November 2017 (UTC)

Is there any way for you to track how many wiki pages are generated via your site, and then rewards you an equivalent number of smarties? I figure that's at least one way to compensate you for your time and effort ; ). G R E E N E R 05:55, 13 November 2017 (UTC)

Ha, well I have a google analytics page running, so how know how many times that page is reached, but no there's not really any way to track how many pages are built by that. I know that for me, any pages created with summary `.` after my website went live were built by that, but only other way would be to add, maybe like 3 zerowidth whitespaces in there and then search all pages on the wiki for those... but I don't personally feel like scanning the entire wiki just to figure that out, so basically: nope, only how many times my page is reached. -Darqam 14:05, 17 November 2017 (UTC)

Me again. Any chance you could add the following to recipe items?

[[page name]] is a [[recipe sheet]] used to learn the recipe to craft [[page name without recipe]].
Ventriloquist 10:07, 19 November 2017 (UTC)
I think I have that done now, I haven't had much time to test it so if something is wonky feel free to speak up. -Darqam 16:28, 19 November 2017 (UTC)

Sunset Jewel in the uslot isn't being updated[edit]

Item 83726 should have a Sunset Jewel, 84581, as a uslot, but it's not appearing even after asking the item to update. G R E E N E R 23:06, 18 November 2017 (UTC)

So fun fact, I never set trinkets to allow uslot for some reason, this should be now fixed on beta, and fixed on live in a few minutes after I check I'm not breaking anything with this. -Darqam 16:35, 19 November 2017 (UTC)

Dec 24th update[edit]

>* Added a wiki search to add an icon parameter when possible

Oh baby. Merry Christmas! (I'll let you know if I see anything go wonky with it, but the first couple shared images I've seen are spot on.)--Rain Spell (talk) 00:43, 25 December 2017 (UTC)

Glad you noticed it. I also just added (cause I forgot like a dumb dumb) that (if mediawiki option is checked) the 'wiki link'+'edit wiki link' get replaced with a red 'Create Wiki Page' if the page doesn't exist.
So far this new icon thing has worked rather smoothly, but screwed up on the creation of Giver's Pearl Handcannon, HOWEVERE, that was because that page shouldn't have been structured that way anyway. So yeah so far the idea is working out great, and when the wiki isn't slow as balls, it doesn't seem to affect the time by much. So overall pretty happy with it.
Amusingly enough I wasn't expecting this to be done today. Usually DNS propagation (URL pointing to a new machine) takes 10-20 hours, but I guess it ran early. So sort of a christmas gift I imagine.
Next big feature to be worked on is a rolling update tracker, which should catch any updates made to items, and once that works, traits and skills to help on those balance patches. Anyway, I rant. Signing off. -Darqam 03:14, 25 December 2017 (UTC)

New toy[edit]

Yo, so I just finished adding something to my website that will (well should) perpetually make sure the items are kept up to date. There is additionally a new drop down box on the view new entries page that allows to filter by latest updated instead of newest on API.

Biggest issue with it that I'm aware of, at the moment it doesn't show *what* was updated for that item. I'll be looking into that shortly enough if I can find a good solution. Worth noting that the entire database went through the ringer today, so that page is full of disordered updates. In time, it should populate itself into something very similar to what the current 'new items' is.

If you guys have thoughts about it, go ahead and speak up... Although there might not be much to say about it just yet I guess. -Darqam 02:05, 29 April 2018 (UTC)

The "what" bit is the hard bit, I'm not surprised its difficult.
It seems to be working for skills but not traits at the moment. (multiple duplicate date headings?) -Chieftain AlexUser Chieftain Alex sig.png 18:33, 25 May 2018 (UTC)

Minor skin infobox parameter errors[edit]

I noticed two skin infobox parameter errors on GW2W Easy Mode:

  • Any shortbow skin has type = ShortBow at GW2W Easy Mode instead of the wiki used parameter type = Short Bow.
  • The type parameter for the armor infobox is type = Coat while for the skin infobox it is type = Chest. GW2W Easy Mode uses type = Coat also for the skin infobox.

--Tolkyria (talk) 17:18, 20 September 2018 (UTC)