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

       Web browser: ---
             Bug #: 29319
           Summary: [VariablesExtension] Transcluded pages fetch variables
                    only for the first transclusion
           Product: MediaWiki extensions
           Version: any
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: [other]
        AssignedTo: [email protected]
        ReportedBy: [email protected]
    Classification: Unclassified


Occurred on MediaWiki 1.16.5

Used in this test: Page A, Template B and Template C

Page A:
a:{{#vardefineecho:v|2}}
b:{{B}}
b:{{B}}
a:{{#vardefineecho:v|{{#expr:{{#var:v}}+4}}}}
c:{{C}}
b:{{B}}

Template B:
{{#vardefineecho:v|{{#expr:{{#var:v}}+1}}}}

Template C:
{{#vardefineecho:v|{{#expr:{{#var:v}}+2}}}}

Expected output: a:2 b:3 b:4 a:8 c:10 b:11

Actual output: a:2 b:3 b:3 a:7 c:9 b:3

It's obvious the variable values are only retrieved once for the first
transclusion of a template. Changes to the variables are visible for the
transcluding page (see a:7), but not on the second, third, ... transclusion of
any template.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to