These are chat archives for arenanet/api-cdi

13th
Mar 2017
Jonathan Andrist
@rwfrk_twitter
Mar 13 2017 09:54
mourning* ^ fixed that for you.
Darqam
@Darqam
Mar 13 2017 18:35
so I'm in another chat for some newbie programmers and one of them threw this following golden line "I know batch but not console commands. Could I not just use batch to start a console instead?"
Eearslya Sleiarion
@Eearslya
Mar 13 2017 18:35
...
Werdes
@werdes
Mar 13 2017 19:47
well "start" exists :D
ChieftainAlex
@ChieftainAlex
Mar 13 2017 19:53
anyone remember if gw2 uses a comma separator for thousands ingame?
  • does that change dependent on language?
not my screenshot fyi
Darrian
@rikkuness
Mar 13 2017 19:55
that cash tho, shit
darthmaim
@darthmaim
Mar 13 2017 19:55
its a "." in german
Darrian
@rikkuness
Mar 13 2017 19:55
never had more than 200-300 hahaha
Darqam
@Darqam
Mar 13 2017 19:55
yeah, dude got a chak egg sac
I hate him
ChieftainAlex
@ChieftainAlex
Mar 13 2017 19:58
:/
one million karma in different ui languages.. EN: 1,000,000 karma. DE: 1.000.000 karma. FR: 1000000 karma..
no wonder the coin template on the wiki goes berserk
darthmaim
@darthmaim
Mar 13 2017 20:00
just remove everything [^0-9]
those are integers anyway
and format them however you want
ChieftainAlex
@ChieftainAlex
Mar 13 2017 20:02
for some reason the only wiki parser function that accepts regular expressions isn't playing nice today
agreed though non numbers have got to go!
darthmaim
@darthmaim
Mar 13 2017 20:03
{{#replace:{{#replace:{{value}}|,|}}|.|}}?
ChieftainAlex
@ChieftainAlex
Mar 13 2017 20:04
yep
also going to replace spaces.
darthmaim
@darthmaim
Mar 13 2017 20:09
mediawiki templates ¯\_(ツ)_/¯
after writing this monster: Template:Location + Template:Location/Region I never touched it again
and no one else really touched that template in the last 4 years
ChieftainAlex
@ChieftainAlex
Mar 13 2017 20:16
I had no idea the == location == section on german wiki pages was driven by a template
darthmaim
@darthmaim
Mar 13 2017 20:17
well, now you know :P
It's actually quite nice
ChieftainAlex
@ChieftainAlex
Mar 13 2017 20:17
so those two templates effectively query one page, then the parent for location? :P
darthmaim
@darthmaim
Mar 13 2017 20:17
uhhm, something like that, yeah
ChieftainAlex
@ChieftainAlex
Mar 13 2017 20:18
ah, for multiple locations its more complex.
darthmaim
@darthmaim
Mar 13 2017 20:18
they somehow load the parent regions with smw and do some clever ordering/deduping
and all that logic just by defining vars and checking if vars exist...
You can see a few more complex examples here: https://wiki-de.guildwars2.com/wiki/Benutzer:Darthmaim/StandortTest
ChieftainAlex
@ChieftainAlex
Mar 13 2017 20:24
See if it had been on the EN wiki, the likelihood of someone finding a bug would be high, and the likelihood of me being able to fix it zero.. so hardcoded locations everywhere :<
darthmaim
@darthmaim
Mar 13 2017 20:24
:D
The only bugs we had were all caused by smw
ChieftainAlex
@ChieftainAlex
Mar 13 2017 20:25
exactly.
darthmaim
@darthmaim
Mar 13 2017 20:25
double attributes and stuff...