Board Thread:Dark Assembly/@comment-653063-20150318192940/@comment-653063-20150323124816

well, this is copypasted from what i posted in community.wikia:

''my "|#default=" option (haha) is to not have 'DXWeapStats' that contains 47 switches, but make separate templates for each game, "D1WeapStats", d2, d3 etc, that would be correctly formatted for each game. Then I can have, like... ... (*still thinking*)... well, yeah, no switches. I think. I'm pretty sure, no switches if I do game-specific WeapStats. It's just... the whole point of all the work I've been doing for six weeks is to reduce the amount of duplicated crap everywhere. Should a change ever want to be made in the future, then a person would have to change 5+ templates. But on the first hand in the first place, too much server load is bad all the time, and 'changing multiple templates ohs nos wahh wahh' is... way less bad, at some theoretical point in the future and wouldn't take that long anyway (compared to how many times a server-heavy page would be loaded in all the months in the meantime). If my goal is 'templates make things smaller and faster,' then in this case, 'ONE template to do all the jobs' might actually not be the answer... ''

I mean, being able to have Lua in my mental toolbox would be great.... but.... I failed so bad at Lua the last *cough*three*cough* times I've made stabs at learning it... I really might have to fall back on the 'default option' here.

And really, if I shut up and be objective here... it's really not that bad. 6 Templates for weapons is... admittedly, annoying, but if that's what it takes... *rubs face* I'm not going to have a lot of time before Wed evening, but I'll take a really good stab at Lua by the end of the week, and see what happens. In the meantime, I'll take all the cell-level switches out of DXWeapStats so it stops being server heavy. (OH CRAP D5 comes out Thursday Japan time which is like late Wednesday for us uhhhh I guess I better get this started already...)

Also, wow, we are either missing a ton of info, or missing flavor text, or both even. - generally, this. AFAICSee there are no stats for most/any of the D1 weapons, D2 is similar, D3 appears to have all or almost all stats but very little flavor (see the list, for D3 there's only flavor for spears, plus the pittance for the others that I've input), D4 appears to have all or nearly all stats and I think 0 (zero) flavor.

ok so. You know? For now, game-indiv templates will have to do. Scratch Lua for now. D5 is nearly upon us and I have no idea if this will happen, but I'd rather be (than not be) prepared for the idea that people will arrive and input data, so I'd rather have a framework setup for them to easily do so. I will get a D5-acceptable template up and available before Wed. (I have no idea what stats will be on the weapons but I'll assume they look like D4 and someone will just have to tell us what's what.)

This is simultaneously exciting and terrifying. Lol. SannaSK (talk) 12:48, March 23, 2015 (UTC)

I am angry enough to spit nails.

The "funnel all List of D# Weapon pages to DXWeapStats and then have that template split them back out to individual sub-templates" DOES NOT WORK. Code is stupid and I am angry and real life happens now so AFK. I un-broke D3 but other than that, grrr, don't mess with it, I'll be back sometime between now and Wed night.