Template talk:First base guild materials lookup

From Guild Wars 2 Wiki
Jump to navigationJump to search

This template is not processing items over 1000 properly. See User:Anzenketh/Sandbox/Page Anzenketh (talk) 02:11, 1 November 2015 (UTC)

Oh great, SMW returns numbers formatted with thousand separators. I'll see what I can do until Alex wakes up... —Dr Ishmael User Dr ishmael Diablo the chicken.png 02:48, 1 November 2015 (UTC)
I think I found a fix. If we use sep to set a separator in our ask query. I am doing some testing in userspace. Anzenketh (talk) 02:50, 1 November 2015 (UTC)
Fixed. —Dr Ishmael User Dr ishmael Diablo the chicken.png 03:03, 1 November 2015 (UTC)
I'm hoping that the problem that this old revision was used to fix (namely ) wasn't undone by this edit, as the two look mighty similar
Damn string functions. -Chieftain AlexUser Chieftain Alex sig.png 14:14, 2 November 2015 (UTC)
Ah bugger, yes we have now broken it. Try Special:RunQuery/Base Ingredients query for "Beta Fractal Capacitor (Infused)" - you see it breaks. -Chieftain AlexUser Chieftain Alex sig.png 14:15, 2 November 2015 (UTC)
Possible fix, abuses arraymaps as usual. -Chieftain AlexUser Chieftain Alex sig.png 17:38, 2 November 2015 (UTC)
hurr I've just realised the "fix" I just implemented won't work for 1000's which don't contain ",0". -_- does it never end? -Chieftain AlexUser Chieftain Alex sig.png 18:37, 2 November 2015 (UTC)
Meh, let's use regex. -Chieftain AlexUser Chieftain Alex sig.png 18:49, 2 November 2015 (UTC)
Still breaking on Exotic Essence of Luck on War Room. —Dr Ishmael User Dr ishmael Diablo the chicken.png 19:12, 2 November 2015 (UTC)
Isn't that a totally different template that relyk conjured up? -Chieftain AlexUser Chieftain Alex sig.png 20:15, 2 November 2015 (UTC)
Could be, could be... there's too many of these darn things running around now. —Dr Ishmael User Dr ishmael Diablo the chicken.png 20:54, 2 November 2015 (UTC)