Extension talk:VisualData/Result formats
Add topicAppearance
Latest comment: 9 months ago by Thomas-topway-it in topic docs clarification when using Lua
docs clarification when using Lua
[edit]I see the module Module:Handle query mentioned. we're supposed to create this ourselves, right? I created my own module but the first code example:
local origArgs = (type(frame.getParent) == "function") and frame:getParent().args or frame local success, json = pcall(mw.text.jsonDecode, origArgs[0])
fails because origArgs doesn't have any elements in it. how am I supposed to ensure the correct elements are there?
I also tried the Lua query but it would be really helpful to have an example there as well as the data types expected.
I would update the docs myself after figuring it out but I've spent a couple hours on it already and I haven't gotten it to work Intcreator (talk) 22:35, 25 December 2024 (UTC)
- @Intcreator I did not see this comment. I have a demo here https://wikisphere.org/wiki/Demo_VisualData/Lua Thomas-topway-it (talk) 09:11, 13 January 2025 (UTC) -- I will also review the past method and the related doc as per your recommendation
- @Intcreator I've updated the extension and the docs Thomas-topway-it (talk) 11:33, 1 September 2025 (UTC)