This template is within the scope of WikiProject History, a collaborative effort to improve the coverage of the subject of History on Wikipedia. If you would like to participate, please visit the project page, where you can join the discussion and see a list of open tasks.HistoryWikipedia:WikiProject HistoryTemplate:WikiProject Historyhistory
This template is within the scope of WikiProject Disaster management, a collaborative effort to improve the coverage of Disaster management on Wikipedia. If you would like to participate, please visit the project page, where you can join the discussion and see a list of open tasks.Disaster managementWikipedia:WikiProject Disaster managementTemplate:WikiProject Disaster managementDisaster management
This template is within the scope of WikiProject Infoboxes, a collaborative effort to improve the coverage of Infoboxes on Wikipedia. If you would like to participate, please visit the project page, where you can join the discussion and see a list of open tasks.InfoboxesWikipedia:WikiProject InfoboxesTemplate:WikiProject InfoboxesInfoboxes
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)[reply]
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)[reply]
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:
{{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
}}
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)[reply]
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)[reply]