https://bugzilla.wikimedia.org/show_bug.cgi?id=45034

       Web browser: ---
            Bug ID: 45034
           Summary: Defining a variable with the name "Input" using
                    http://www.mediawiki.org/wiki/Extension:Variables
                    fails to remember var.
           Product: MediaWiki extensions
           Version: REL1_19 branch
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: major
          Priority: Unprioritized
         Component: [other]
          Assignee: wikibugs-l@lists.wikimedia.org
          Reporter: technical...@yahoo.com
    Classification: Unclassified
   Mobile Platform: ---

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.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to