Board Thread:Support Requests - Getting Technical/@comment-27704998-20160607002600/@comment-27704998-20160608202014

Re Nanaki on caps: I guess I'll just let mediawiki's red link finder do the work for me here, rather than building it into the template preemptively.

Re Nanaki on #switch: This is perfect for my use case. I can see it becoming ungainly in the event of having too many possible inputs (even with the multiple input to one output functionality), but I suspect it's not designed for that situation anyway.

I did see something confusing:
 * → Nothing

There's no comparison, so it's always false, right? Shouldn't it go to the default output of "Something"? But if I had instead:



Then when I've got an initialised variable (| var=), then it's going to output "Nothing". If I have an uninitialised (| ) one, then it'll output "Something", right?



And here it outputs "Nothing" in both cases.

((edit: Actually, I'm no longer sure how this works. The more I think about it, the more confused I get. It's like my mind goes around in circles, eventually landing on "no matter what I do, if it's uninitalised, I'm going to end up with the string "" as the variable, and that makes the default text entirely pointless." So then do I have to use in every single instance of every variable just to get it to behave in a reasonable way? There's no way that's right.))

((Double edit: I have no idea how this works any more. There's never an actual null. It's a string if you don't initialise, and it's an (empty) string if you do but don't assign it to anything. And of course it's a string when you assign it a value. When is it ever false? The so-called "comparisons" are just "is variable true", but it's always true. I just don't understand.))

Re Andrewds + Nanaki on errors: okay, so it sounds like I've covered most cases, then. I mostly wanted to make sure that nothing funky might happen if someone entered wikitext or CSS into one of the variables.

Re mad on newlines: Okay, I see. Maybe the problems I've seen on a few of our pages are from s or headings, then.