Forum:Template or Parser Function Expansion Problem

To cut right to my point, I want c:Javascript:Template:Member?action=edit to use a different output pattern based on how much input is given. I've tried to debug it but gotten nowhere. The results are shown here; the first is correct but the second is incorrect. (See also c:Javascript:Javascript:Sandbox.)

Please, what am I doing wrong? --Jesdisciple (talk) 15:37, 27 September 2008 (UTC)


 * fixed


 * in
 * = "alpha"
 * = "beta"
 * = "alpha"
 * = "beta"
 * = "alpha"
 * = "beta"
 * = "alpha"
 * = "beta"


 * in
 * = "alpha"
 * = "beta"
 * = "alpha"
 * = "beta"
 * = "alpha"
 * = "beta"
 * = "alpha"
 * = "beta"


 * in
 * = "foo"
 * = "foo"
 * = "alpha"
 * = "alpha"
 * = "alpha"
 * = "beta"
 * = "alpha"
 * = "beta"


 * in
 * = "foo"
 * = "foo"
 * = "alpha"
 * = "alpha"
 * = "beta"
 * = "beta"
 * = "beta"
 * = "beta"


 * in
 * = "foo"
 * = "foo"
 * = "bar"
 * = "bar"
 * = "alpha"
 * = "alpha"
 * = "alpha"
 * = "alpha"


 * in
 * = "bar"
 * = "bar"
 * = "beta"
 * = "beta"
 * = "alpha"
 * = "alpha"
 * = "alpha"
 * = "alpha"

that should explain it.

--Uberfuzzy 16:29, 27 September 2008 (UTC)

Ah, thanks! One more question: Why did it give all that garbage? Why not just .foo or the like? Thanks again. --Jesdisciple (talk) 18:22, 27 September 2008 (UTC)
 * nfi. the parser does some weird things when it detects  that didnt get used. it prevents some wikitext from being turned into html, so that lots of bad things dont happen down the line. --Uberfuzzy 20:39, 27 September 2008 (UTC)