Last modified: 2014-08-02 16:34:05 UTC
Defining a variable with the name "Input" using http://www.mediawiki.org/wiki/Extension:Variables fails to remember var when defining a second variable. I was trying to build a template, and my first statement was: {{#vardefine:Input|{{formatnum:{{{1|0}}}|R}}}} Putting in a {{#var:Input}} Immediately after it correctly reported what number went in. Then I defined another variable: {{#vardefine:Ordinal| ... snip ...}} with a long section of #switch functions that called upon {{#var:Input}}. {{#var:Input}}was never redefined inside of {{#var:Ordinal}} (not even inadvertently with a misplaced |) although placing a {{#var:Input}} directly after this second variable definition caused it to report as "0". Changing the name of {{#var:Input}} to {{#var:Decimal}} corrected the problem, so I am led to believe that "Input" as a variable name is what was causing the issue.
CC'ing maintainer - Daniel: Could not find info if there is a bugtracker, shall I create a Bugzilla component?
I've come across another issue with using "Input" as a variable name, so I'm bumping this ticket.