Template talk:Lua
Add topic| This template was considered for deletion on 24 July 2026. The result of the discussion was Withdrawn. |
Text has been copied to or from this page; see the list below. The source pages now serve to provide attribution for the content in the destination pages and must not be deleted as long as the copies exist. For attribution and to access older versions of the copied text, please see the history links below.
|
Request for two additions
[edit]This template has an option to be used on module pages, which then changes the text shown to This module uses Lua:
. I was wondering if it would be possible to add an option to list two things.
- Module dependencies (modules the current module uses to function - basically anything used in a require() function) - the title would then be changed to:
This module dependencies:
(or something similar). The current title is just not that clear on the importance of that the modules listed there. - Template it implements - It should be made more clear what relationship a cetrain module has with a template. So that Module:Do something very specific will link to Template:Do something very specific in the same way as currently a template uses this template. The header should be something like
This module implements:
. --Gonnym (talk) 12:02, 5 October 2018 (UTC)
- @Gonnym I like both of these ideas. I also think it would be useful if we could specify the function of a module that is used by a template. — Martin (MSGJ · talk) 09:13, 16 February 2024 (UTC)
- What happend to this? Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits; 11:32, 19 October 2026 (UTC)
Lua error in Module:Lua_banner at line 113: attempt to index field 'edit' (a nil value).
[edit]Lua error on Template:Infobox book/wikidata: Lua error in Module:Lua_banner at line 113: attempt to index field 'edit' (a nil value).
--Gonnym (talk) 12:28, 15 September 2020 (UTC)
- Gonnym, fixed: Special:Diff/978558819. The root cause is Module:Listify not existing. Perhaps Module:Lua banner could be updated to handle such cases better. —andrybak (talk) 16:56, 15 September 2020 (UTC)
- Hello, hoping you maybe able to help me. I am having trouble with this same issue on the rw.wp. Was a solution ever found? example: https://rw.wikipedia.org/wiki/Module:Format_TemplateData BevoLJ (talk) 00:55, 19 May 2022 (UTC)
- @BevoLJ: have you resolved this issue? I am having the same here: https://lt.wikipedia.org/wiki/Module:Documentation Zygimantus (talk) 21:40, 8 February 2024 (UTC)
- Hello, was there ever a fix for this issue? I am getting it when using Template:Infobox. Trying to narrow down issues where row data does not appear at all. Runefire3 (talk) 02:31, 10 June 2025 (UTC)
- @BevoLJ: have you resolved this issue? I am having the same here: https://lt.wikipedia.org/wiki/Module:Documentation Zygimantus (talk) 21:40, 8 February 2024 (UTC)
- Hello, hoping you maybe able to help me. I am having trouble with this same issue on the rw.wp. Was a solution ever found? example: https://rw.wikipedia.org/wiki/Module:Format_TemplateData BevoLJ (talk) 00:55, 19 May 2022 (UTC)
- I want to document that {{Airport-Statistics}} uses c:Module:Airport statistics filtered, and encounter this issue. It's probably an unintended use case, but I think it makes sense (and looks OK-ish on subpage TM:Airport-Statistics/doc). -Srapoj (talk) 10:13, 17 October 2025 (UTC)
- The Extension:Chart case has been solved by a new template {{Uses Chart}}. However there are other possible usages of foreign site Lua modules (e.g. Module:Unicode data). It might still worth fixing this issue. Srapoj (talk) 22:13, 4 November 2025 (UTC)
Make the template work with 0 parameters by setting the module with the same name as default
[edit]The current {{lua}} template returns an error when used without any arguments. I want a default value of the first parameter to be set to the module with the same name as the template it is transcluded in. For example, if {{lua}} is placed on Template:Hatnote/doc, then it should behave like {{lua|hatnote}}. JsfasdF252 (talk) 16:44, 5 April 2021 (UTC)
- Was this done? Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits; 11:32, 19 October 2026 (UTC)
Error search
[edit]I propose that we add a second parenthetical link for each module to this template, using {{Module error search}} that would include a search like:
- Module:Example (sandbox; errors)
-- Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits; 11:23, 19 October 2026 (UTC)
- That's an interesting idea. It could be tried to see if it is useful. I added to your message at WP:VPT in an attempt to get more opinions. Johnuniq (talk) 01:07, 20 October 2026 (UTC)