Page MenuHomePhabricator

collision between tunits trancluded and same id defined in the caller
Closed, InvalidPublicBUG REPORT

Description

Steps to replicate the issue (include links if applicable):

  • declare a translation unit in a source page
  • get the tu Id
  • check for a page to transclude declaring the same Id
  • in this one reuse this Id with template tunit
  • now transclude this page in the source page

What happens?:

  • the transcluded tunit uses now the tu Id of the source page rather than the Id of the transcluded page as it has initially.

What should have happened instead?:

  • tunit of the transcluded page must not use the tu Id of the calling page but continue to use their local definition as it was on the page to transclude

Software version (on Special:Version page; skip for WMF-hosted wikis like Wikipedia):

Other information (browser name/version, screenshots, etc.):

Event Timeline

Pppery subscribed.

Moot following https://www.mediawiki.org/w/index.php?title=API:REST_API/Reference/Sample_code:Create_page&diff=prev&oldid=8527381

And in any case this was a problem with local templates; you would have needed to specify the source page as a third parameter to {{tunit}}

Marvellous ! It was a set of parameters i dont usually explore. Thanks. Actual form works when included:
# {{tunit|id=21|content=Create a user sandbox page on English Wikipedia|3=API:REST_API/Reference/Sample code:Create page}}