So basically i have a lua module ABC, invoked by a template T.
And then, some other main pages call the template T to invoke module ABC.
So,
* frame:getTitle() gives the title of the Module, i.e. ABC;
* frame:getParent():getTitle() gives the title of the Template, i.e. T.
But how can i get the title of the page calling the template T (the parent of T?)
I know most of the time, mw.Title.getCurrentTitle() simply works. But sometimes, if page1 is trunscluding page2, and page2 is calling the template T, then mw.Title.getCurrentTitle() gives me the title of page1, but i want the title of page2.
Is there any way to get the title of page2?
Thanks in advance!