@ Galobtter: could you change the main function so it can be accessed from another module without the need of a frame? Seeing as how the frame is only used to get the argument, it doesn't seem to be an issue. -- Gonnym ( talk) 10:59, 2 February 2019 (UTC)
Galobtter I've made a change to the module sandbox to exclude infobox mapframe from the other-infoboxes in-lead-check. This is done because it's not actually an infobox and quite common causing quite a lot of false positives. This was promted by a report on my talkpage. I think it should work and have done some testing in my sandbox, but would like a second pair of eyes on it since it's my first module edit. -- Trialpears ( talk) 22:06, 2 October 2019 (UTC)
Together Again (Buck Owens song) contains multiple instances of {{ Infobox song}}. All three of them are in the lead, but none of them appear to generate a short description. It seems like one or all of them should do so.
Grande amore has an infobox in the lead, but it does not generate a short description. I can't explain this one, but it might help with debugging.
We Had It All (song) has one infobox in the lead and one in another section, but neither appears to generate a short description. It seems like the first one should do so. – Jonesey95 ( talk) 19:47, 5 March 2024 (UTC)
embed = yes
or child = yes
) don't count for a second infobox in the lead. The issue with
Grande amore is not something noted in the documentation. The module is matching "Infobox song contest entry" (the nested infobox) as being a second instance of infobox song.
SilverLocust
💬
07:01, 6 March 2024 (UTC)
{{#invoke:Is infobox in lead|main|[Ii]nfobox [Ss]ong}}
. The module would need to check more than that to make the distinction you want.
frame:getParent().args
to get the infobox's parameters/arguments and check those against the ones in the first infobox — though I'm not sure how you would take into account arguments that had transclusions like | date = 1{{nbsp}}January 2000
, since I believe the transclusion will have already been expanded when the module gets the args from the parent.{{#invoke:Is infobox in lead|main|[Ii]nfobox [Ss]ong|artist|[[Buck Owens]]}}
and then instead check for the Lua gsub %|%s-artist%s-=%s*%%Buck%sOwens%%
(meaning, in plain language, |[space?]artist[space?]=[spaces?][[Buck[space]Owens]]
), provided the argument contains no transclusions (or if transclusions are taken into account in some way, as noted above).
SilverLocust
💬
04:03, 7 March 2024 (UTC)
@ Galobtter: could you change the main function so it can be accessed from another module without the need of a frame? Seeing as how the frame is only used to get the argument, it doesn't seem to be an issue. -- Gonnym ( talk) 10:59, 2 February 2019 (UTC)
Galobtter I've made a change to the module sandbox to exclude infobox mapframe from the other-infoboxes in-lead-check. This is done because it's not actually an infobox and quite common causing quite a lot of false positives. This was promted by a report on my talkpage. I think it should work and have done some testing in my sandbox, but would like a second pair of eyes on it since it's my first module edit. -- Trialpears ( talk) 22:06, 2 October 2019 (UTC)
Together Again (Buck Owens song) contains multiple instances of {{ Infobox song}}. All three of them are in the lead, but none of them appear to generate a short description. It seems like one or all of them should do so.
Grande amore has an infobox in the lead, but it does not generate a short description. I can't explain this one, but it might help with debugging.
We Had It All (song) has one infobox in the lead and one in another section, but neither appears to generate a short description. It seems like the first one should do so. – Jonesey95 ( talk) 19:47, 5 March 2024 (UTC)
embed = yes
or child = yes
) don't count for a second infobox in the lead. The issue with
Grande amore is not something noted in the documentation. The module is matching "Infobox song contest entry" (the nested infobox) as being a second instance of infobox song.
SilverLocust
💬
07:01, 6 March 2024 (UTC)
{{#invoke:Is infobox in lead|main|[Ii]nfobox [Ss]ong}}
. The module would need to check more than that to make the distinction you want.
frame:getParent().args
to get the infobox's parameters/arguments and check those against the ones in the first infobox — though I'm not sure how you would take into account arguments that had transclusions like | date = 1{{nbsp}}January 2000
, since I believe the transclusion will have already been expanded when the module gets the args from the parent.{{#invoke:Is infobox in lead|main|[Ii]nfobox [Ss]ong|artist|[[Buck Owens]]}}
and then instead check for the Lua gsub %|%s-artist%s-=%s*%%Buck%sOwens%%
(meaning, in plain language, |[space?]artist[space?]=[spaces?][[Buck[space]Owens]]
), provided the argument contains no transclusions (or if transclusions are taken into account in some way, as noted above).
SilverLocust
💬
04:03, 7 March 2024 (UTC)