From what I've read if I have a template that calls a module I should be able to get the args from the template that the module's function is invoked in any idea why this doesn't work?
local template = frame:getParent()
local arg1 = template.args[1]
From what I've read if I have a template that calls a module I should be able to get the args from the template that the module's function is invoked in any idea why this doesn't work?
local template = frame:getParent()
local arg1 = template.args[1]
My only workaround is to pass the parameters through the module's args, but it's messy
It should definitely work. Can you give a link to the actual code that doesn't work for you?
By the way, in case the arguments management is beyond trivial, I would recommend using Module:Arguments from Dev
Sure! It's actually not a fandom wiki, but it does use MediaWiki so I figured it was close enough? https://wiki.uooutlands.com/Module:Crafting
We don't have Module:Arguments, though I could probably port it over, that might be the issue acctully
I see. While I personally don't mind, I'm afraid it wouldn't be tolerated to use this forum for something not Fandom-related. I suggest you refer to general MediaWiki help forums, or to StackOverflow.
Yeah that's fair, thanks for your response.
What do you think?