Title would look a lot better inside the border box
This template's appearance would look a lot better if the "title" were displayed inside the border box. Many (most?) InfoBox templates put the title inside the box, including Template:Infobox civilian attack or Template:Infobox person. Was there a discussion that established a consensus to leave the title outside (above) the box? Does anyone think the title looks better outside? Noleander (talk) 18:46, 24 April 2025 (UTC)
Pushpin map
Hi, please add these codes to the template for showing pushpin maps
|image4 = {{#if:{{#property:P625}}|{{#if:{{{pushpin_map|}}}|{{Location map|{{{pushpin_map|}}}
|relief = 1
|label = {{{name|<includeonly>{{PAGENAME}}</includeonly>}}}
|mark = Blue_pog.svg
|marksize = 9
|float = center
}}
}}
}}Thanks, Hooman Mallahzadeh (talk) 14:40, 28 April 2025 (UTC)
- Sandboxed and tested successfully at Template:Infobox event/sandbox. Hooman Mallahzadeh (talk) 14:45, 28 April 2025 (UTC)
- What is the purpose of this change, and how is it supposed to work? It looks like it duplicates the existing map parameter, which accepts location map templates, but for some reason it tests for the existence of Wikidata property P625. What is that property and why is there a test for it? Please show this change in use at an article by temporarily changing the article to use the sandbox template with this new parameter, and then changing it back. – Jonesey95 (talk) 23:59, 29 April 2025 (UTC)
- Hi, P625 is "coordinate location" is Wikidata, we check its existence to avoid lua error in events that don't have this property.
- The purpose is to show pushpin_map in addition to OSM where needed.
- If we set the pushpin_map argument to a map, for example to "Asia", then it shows its pushpin map in the specified map.
- For example for the article Port of Shahid Rajaee explosion, please change its infobox to this one and them click show preview to test it:
- Hooman Mallahzadeh (talk) 04:01, 30 April 2025 (UTC)
{{Infobox event/sandbox | image = Smoke billowing from Shahid Rajaee port explosion, 26 April 2025.jpg | caption = Smoke billowing after the explosion | date = {{Start date|2025|04|26|df=y}} | location = [[Port of Shahid Rajaee]], [[Bandar Abbas]], Hormozgan, Iran | coordinates = {{WikidataCoord|Q134125330|region:IR-22_type:event|display=inline,title}} | time = 12:20 [[Iran Standard Time|IRST]] | timezone = [[UTC+03:30]] | type = Gas substances explosion | cause = Fire | reported deaths = 70 | reported injuries = 1,210 | reported missing = | pushpin_map = Iran }}- @Jonesey95 Pushpin maps are sometimes better than OSM. The test for me is successful. Would you please apply this change? Hooman Mallahzadeh (talk) 14:51, 30 April 2025 (UTC)
Done. I had to fix a bunch of small problems with the proposed code, but I think I have it working. In the future, I recommend that you copy code from a template that is already working in the way that you want. This pushpin_map implementation could probably use some refinement, but it appears to be functional for now. – Jonesey95 (talk) 15:09, 30 April 2025 (UTC)
- @Jonesey95 Thanks. 🌻 Hooman Mallahzadeh (talk) 15:16, 30 April 2025 (UTC)
- @Jonesey95 Sorry. Label and caption is in this implementation the same. It is not appropriate. So I propose to apply the sandbox. Hooman Mallahzadeh (talk) 15:30, 30 April 2025 (UTC)
- You need to test your edits. I suspect that your version will show a blank caption if
|event=or|name=is present but empty. Also, using|caption=wraps the image in a thumbnail border, which is not ideal, and you have an extra pipe in that parameter value. – Jonesey95 (talk) 16:21, 30 April 2025 (UTC)- @Jonesey95 We have redundant and repetitive data in this implementation. Anyway, please add "/sandbox" to the infobox of Port of Shahid Rajaee explosion article to see test of my edits. Hooman Mallahzadeh (talk) 16:31, 30 April 2025 (UTC)
- I already did that, which is why I suggested that your proposed version has problems and needs testing. See this version with an empty event parameter; there is no label on the pushpin map dot. – Jonesey95 (talk) 21:05, 30 April 2025 (UTC)
- @Jonesey95 We have redundant and repetitive data in this implementation. Anyway, please add "/sandbox" to the infobox of Port of Shahid Rajaee explosion article to see test of my edits. Hooman Mallahzadeh (talk) 16:31, 30 April 2025 (UTC)
- You need to test your edits. I suspect that your version will show a blank caption if
- @Jonesey95 Sorry. Label and caption is in this implementation the same. It is not appropriate. So I propose to apply the sandbox. Hooman Mallahzadeh (talk) 15:30, 30 April 2025 (UTC)
- @Jonesey95 Thanks. 🌻 Hooman Mallahzadeh (talk) 15:16, 30 April 2025 (UTC)
- @Jonesey95 Pushpin maps are sometimes better than OSM. The test for me is successful. Would you please apply this change? Hooman Mallahzadeh (talk) 14:51, 30 April 2025 (UTC)
- Hi, P625 is "coordinate location" is Wikidata, we check its existence to avoid lua error in events that don't have this property.
- What is the purpose of this change, and how is it supposed to work? It looks like it duplicates the existing map parameter, which accepts location map templates, but for some reason it tests for the existence of Wikidata property P625. What is that property and why is there a test for it? Please show this change in use at an article by temporarily changing the article to use the sandbox template with this new parameter, and then changing it back. – Jonesey95 (talk) 23:59, 29 April 2025 (UTC)
Deprecate & clean up conflicting parameters
This template currently has a large number of conflicting parameters which can cause issues. As part of an ongoing effort to reduce these conflicts and reduce the overhead maintenance required on these templates, I am going to be deprecating and ultimately removing a number of parameters, particularly those that fail to conform to MOS:INFOBOXNAME. I will be listing those parameters shortly, but please chime in here with any questions, comments or concerns about this cleanup! Zackmann (Talk to me/What I been doing) 04:47, 20 June 2026 (UTC)
- Here are the changes I plan to make...
Deprecate Replace with |event=|name=|title=|Event_Name=|Image_Name=|image=|image_name=|Imagesize=|image_size=|Thumb_Time=|thumbtime=|alt=|image_alt=|Image_Alt=|caption=|image_caption=|Image_Caption=|English_name=|english_name=|Date=|date=|Location=|location=|place=|location=|also known as=|also_known_as=|AKA=|aka=|first reporter=|first_reporter=|patron=|patrons=|filmed by=|filmed_by=|Participants=|participants=|result=|outcome=|Result=|reported deaths=|deaths=|reported death(s)=|Deaths=|fatalities=|reported injuries=|injuries=|reported missing=|missing=|reported property damage=|property_damage=|property damage=|susperps=|suspects=|publication bans=|publication_bans=|url=|footage=|URL=|website=- --Zackmann (Talk to me/What I been doing) 05:21, 20 June 2026 (UTC)
- Probably worth changing the blank parameters similar to other discussions we had on this. Gonnym (talk) 10:17, 20 June 2026 (UTC)
- Good idea! Will add that. Zackmann (Talk to me/What I been doing) 16:25, 20 June 2026 (UTC)
Hi Zackmann08 (talk · contribs). Currently adding this template to an article and I noticed that |patrons doesn't work but |patron still does. ~2026-32492-01 (talk) 16:39, 23 June 2026 (UTC)Fixed by another user. By the way, would it be worth adding Sponsor(s) as an alternative name for Patrons? ~2026-32492-01 (talk) 17:01, 23 June 2026 (UTC)
- Probably worth changing the blank parameters similar to other discussions we had on this. Gonnym (talk) 10:17, 20 June 2026 (UTC)
header23 issue
| Arrests | test |
|---|
header23 is currently set to show if |casualties1=, |casualties2=, or |casualties3= are used but there isn't another header after them, which makes the following code look strange as arrests isn't part of "Casualties".
{{Infobox event
| name = test
| casualties3 = test
| arrests = test
}}
Gonnym (talk) 10:22, 20 June 2026 (UTC)
- @Gonnym: FYI refactored your comment above to make it part of the larger discussion. Left the content as you wrote it, just refactored it. Looking at the param report these 3 parameters are barely used and can easily be replaced by
|injuries=,|missing=or|deaths=. So I'm going to go ahead and simply deprecate the use of these parameters entirely to solve ths issue that you pointed out. --Zackmann (Talk to me/What I been doing) 16:28, 20 June 2026 (UTC)- @Gonnym: made Category:Pages using infobox event with casualties (0) and started on it. If you want to help out I'm taking a break for a few hours but will be back at it later. Zackmann (Talk to me/What I been doing) 18:14, 20 June 2026 (UTC)