Please forgive me, but I cannot fathom the logic to produce the desired
result by using the provided documentation for primarily this, and some
related template logic extensions.

I have produced a template which allows me to set variables which then are
constructed into an array using a loop function. I cannot figure out how to
'''not''' define an array value if it is not defined in the template.

I have produced [
https://psychonautwiki.org/wiki/Template:SubstanceBox/Example an example of
the error]; towards the bottom of the table you will see that a table row
for "Onset" is erroneous. I have also isolated [
http://hastebin.com/kiveboyati.django the relevant code]

Instead of the expected result of a hidden table row, I am seeing that the
array value is being set as the template's variable name instead.

Any help would be gratuitously appreciated by the universe at large.

Love and waffles, PJ.

==Relevant documentation==
===[[Help:Extension:ParserFunctions#.23if|if]]===

<pre>{{#if: test string | value if test string is not empty | value if test
string is empty (or only white space) }}</pre>

===[[Extension:Arrays#arraydefine|arraydefine]]===

<pre>// Define a one-element array named 'e', using ';' as delimiter
{{#arraydefine:e|apple, pear|;}}</pre>
_______________________________________________
Wikitech-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Reply via email to