Board Thread:Support Requests - Getting Technical/@comment-131168-20140114160305/@comment-131168-20140114183721

Well I haven't actually coded it yet, but I see by looking at results for two different tests it will be possible to differentiate between three states and do what I need. I can't differentiate a template being input from nothing being input, but since I can treat them the same way it works for this case.


 * Length of 0, first character nothing? Either it's emptiness or the template, either way pass it along as-is.
 * Length > 0, first character [? It's an image in [[File:]] format, pass it along as-is.
 * Length > 0, first character not [? I'll assume it's meant to be a file name.

Seems a bit convoluted, but hey.