Module talk:Excerpt/Archive 2
Appearance
![]() | This is an archive of past discussions about Module:Excerpt. Do not edit the contents of this page. If you wish to start a new discussion or revive an old one, please do so on the current talk page. |
Archive 1 | Archive 2 | Archive 3 | Archive 4 |
Lua errors in portals
Here is a useful list of portal Lua errors, which I fixed occasionally by having the module handle more cases. The current crop is:
- Romney Classical Institute in Portal:American Civil War/Featured article doesn't remove {{Infobox school}}. This causes a Lua error in the infobox, "Lua error in Module:Location_map at line 414: No value was provided for longitude.". (Schools have longitude; portals don't.) This will affect Portal:American Civil War only occasionally but may indicate a wider problem. Module talk:Location map/Archive 10#Please limit error checking to main (article) space may be relevant.
- Battle of Vukovar (protected) in Portal:Croatia/Indices. This is also a longitude error but there is no unwelcome infobox.
- Portal:Liquor: I can't find an error even after expanding the multitude of collapsed sections. It may be transient and have gone away when a different random selection was made.
- Portal:San Francisco Bay Area has too many expensive function calls. This is not a module issue and requires that we simplify the portal. I've had a grumble on its talk page.
- Forth Road Bridge in Portal:Scotland/Selected articles/34 and Portal:Scotland/Selected articles doesn't remove {{Infobox bridge}}, causing another longitude error.
- Portal:Speculative fiction/Selected works: The time allocated for running scripts has expired. This is not a module issue and could be solved by simplifying the portal subpage. (I'm not going to do that, as the list has been the subject of heated discussion.) The portal itself is unaffected, as it processes only one randomly selected work.
– Certes (talk) 16:43, 22 May 2020 (UTC)
- Thanks! Tomorrow I'll pause with the development of new features and focus on testing and debugging. Cheers! Sophivorus (talk) 18:32, 22 May 2020 (UTC)
- @Certes: It seems that the only errors directly related to this module are the Longitude ones, correct? I created a test case at Template:Transclude lead excerpt/testcases2#Longitude error. As you said, it seems that for some reason the module isn't removing the infobox, but I haven't figured out why yet. Kind regards, Sophivorus (talk) 16:00, 23 May 2020 (UTC)
- There may be two problems: one that causes infoboxes to be retained, and one in Module:Location map or in the way it's being used, seen even in Portal:Croatia/Indices which correctly hides the Vokovar infobox. Certes (talk) 17:25, 23 May 2020 (UTC)
- @Certes: It seems that the only errors directly related to this module are the Longitude ones, correct? I created a test case at Template:Transclude lead excerpt/testcases2#Longitude error. As you said, it seems that for some reason the module isn't removing the infobox, but I haven't figured out why yet. Kind regards, Sophivorus (talk) 16:00, 23 May 2020 (UTC)