Last modified: 2014-08-02 16:34:05 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T47034, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 45034 - Defining a variable with the name "Input" using http://www.mediawiki.org/wiki/Extension:Variables fails to remember var.
Defining a variable with the name "Input" using http://www.mediawiki.org/wiki...
Status: NEW
Product: MediaWiki extensions
Classification: Unclassified
Other (Other open bugs)
REL1_19-branch
All All
: Normal major with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-02-15 02:44 UTC by Technical 13
Modified: 2014-08-02 16:34 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Technical 13 2013-02-15 02:44:41 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.
Comment 1 Andre Klapper 2013-02-18 10:02:14 UTC
CC'ing maintainer - Daniel: Could not find info if there is a bugtracker, shall I create a Bugzilla component?
Comment 2 Technical 13 2014-08-02 16:34:05 UTC
I've come across another issue with using "Input" as a variable name, so I'm bumping this ticket.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links