Template talk:Infobox event
![]() | Template:Infobox event is permanently protected from editing because it is a heavily used or highly visible template. Substantial changes should first be proposed and discussed here on this page. If the proposal is uncontroversial or has been discussed and is supported by consensus, editors may use {{edit template-protected}} to notify an administrator or template editor to make the requested edit. Usually, any contributor may edit the template's documentation to add usage notes or categories.
Any contributor may edit the template's sandbox. Functionality of the template can be checked using test cases. |
![]() | This template does not require a rating on Wikipedia's content assessment scale. It is of interest to the following WikiProjects: | |||||||||||||||||||||
|
![]() | The content of Template:Infobox news event was merged into Template:Infobox event. The former page's history now serves to provide attribution for that content in the latter page, and it must not be deleted as long as the latter page exists. For the discussion at that ___location, see its talk page. |
![]() | The content of Template:Infobox historical event was merged into Template:Infobox event. The former page's history now serves to provide attribution for that content in the latter page, and it must not be deleted as long as the latter page exists. For the discussion at that ___location, see its talk page. |
![]() | This template was nominated for deletion. Please review the prior discussions if you are considering re-nomination:
|
|
|
This page has archives. Sections older than 28 days may be auto-archived by Lowercase sigmabot III if there are more than 3. |
Template-protected edit request on 22 January 2025
editThis edit request has been answered. Set the |answered= parameter to no to reactivate your request. |
Non-fatal injuries should be changed to injuries. Arsabent (talk) 21:41, 22 January 2025 (UTC)
- Not done for now: please establish a consensus for this alteration before using the
{{Edit template-protected}}
template. This wording has been used since 2015, when it was changed to "Non-fatal injuries" for consistency with other templates in Special:Diff/676129907. —andrybak (talk) 19:04, 23 January 2025 (UTC)
Title would look a lot better inside the border box
editThis 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
editThis edit request has been answered. Set the |answered= parameter to no to reactivate your request. |
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)
- 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 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)