I believe that I've had similar problems in the past. I have created https://phabricator.wikimedia.org/T189404.
Thanks for bringing this up, Strainu.
Pine ( https://meta.wikimedia.org/wiki/User:Pine )
On Sat, Mar 10, 2018 at 4:33 AM, Strainu strainu10@gmail.com wrote:
Thanks Gergo
2018-03-09 9:51 GMT+02:00 Gergo Tisza gtisza@wikimedia.org:
On Thu, Mar 1, 2018 at 2:52 PM, Strainu strainu10@gmail.com wrote:
Say we have an article which includes {{Infobox A}}, which redirects to {{Infobox B}}, which in turn transcludes {{Infobox}}, which is implemented using [[Module:Infobox]]. Is there a way to know from the module (or the {{Infobox}} template) which infobox was actually used in the article?
Not unless you pass it along as a parameter. mw.getCurrentFrame().getParent() only goes one level up (so you can tell Module:Infobox was called from {{Infobox}} but not beyond that). _______________________________________________ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l