Template:Infobox 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 is the talk page for discussing improvements to the Infobox template.
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
Text has been copied to or from this page; see the list below. The source pages now serve to provide attribution for the content in the destination pages and must not be deleted as long as the copies exist. For attribution and to access older versions of the copied text, please see the history links below.
__DTSUBSCRIBEBUTTONDESKTOP__{"headingLevel":2,"name":"h-PK2-20240717054100","type":"heading","level":0,"id":"h-Template-protected_edit_request_on_17_July_2024-20240717054100","replies":["c-PK2-20240717054100-Template-protected_edit_request_on_17_July_2024"],"text":"Template-protected edit request on 17 July 2024","linkableTitle":"Template-protected edit request on 17 July 2024"}-->
__DTSUBSCRIBEBUTTONMOBILE__{"headingLevel":2,"name":"h-PK2-20240717054100","type":"heading","level":0,"id":"h-Template-protected_edit_request_on_17_July_2024-20240717054100","replies":["c-PK2-20240717054100-Template-protected_edit_request_on_17_July_2024"],"text":"Template-protected edit request on 17 July 2024","linkableTitle":"Template-protected edit request on 17 July 2024"}-->
This edit request to Module:Infobox has been answered. Set the |answered= or |ans= parameter to no to reactivate your request.
There was a previous discussion with a similar request on the 28th of April in 2014 by Sardanaphalus. I'm also making a similar request as well.
Can someone please make the following edits to this template:
1. Can this template and {{#invoke:Infobox|function}} (be set to) use basestyle "à la" {{Navbox}} family..?
2. Also like the {{Navbox}} family, can class and style as alternative names for bodyclass and bodystyle be included, as well as |width= as an alternative to |bodystyle=width:...;..?
Can someone please make these edits on Module:Infobox/sandbox on my behalf because I don't know how to use Lua (its Wikipedia page)? PK2 (talk; contributions) 05:41, 17 July 2024 (UTC)[reply]__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"20240717054100","author":"PK2","type":"comment","level":1,"id":"c-PK2-20240717054100-Template-protected_edit_request_on_17_July_2024","replies":["c-Gonnym-20240717071100-PK2-20240717054100","c-MSGJ-20240717073800-PK2-20240717054100","c-SWinxy-20240717125900-PK2-20240717054100","c-Izno-20240717213500-PK2-20240717054100"]}}-->
Oppose #2. There are various class and style parameters used. There is no need to introduce easily foreseeable errors. If a template creator can't take the time to write "bodyclass" then to be honest, they really have no reason to write one. Regarding #1, I don't understand the request. Gonnym (talk) 07:11, 17 July 2024 (UTC)[reply]__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"20240717071100","author":"Gonnym","type":"comment","level":2,"id":"c-Gonnym-20240717071100-PK2-20240717054100","replies":["c-Primefac-20240717130300-Gonnym-20240717071100"]}}-->
Agreed; we don't need to introduce new alternate parameters for something that has been standard for a long time. Primefac (talk) 13:03, 17 July 2024 (UTC)[reply]__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"20240717130300","author":"Primefac","type":"comment","level":3,"id":"c-Primefac-20240717130300-Gonnym-20240717071100","replies":[]}}-->
I am not seeing any previous discussion, so request has been disabled pending a consensus for change — Preceding unsigned comment added by MSGJ (talk • contribs) 07:38, 17 July 2024 (UTC)[reply]__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"20240717073800","author":"MSGJ","type":"comment","level":2,"id":"c-MSGJ-20240717073800-PK2-20240717054100","replies":[]}}-->
I think I can get behind the first part of #2, where "class" and "style" alias "bodyclass" and "bodystyle", respectively; the usage of "body" makes me think that it refers to the content in the <tbody> rather than the entire <table>. Widths should not be set in infoboxes. Rather, the width should be based on the content (usually the image size) on each page. Plus, infoboxes on mobile (afaik) are all fixed-width.
Could you clarify what #1 is supposed to mean? I'm with Gonnym, I don't understand either. Do you mean you want to add a parameter for "basestyle" like in Navbox? SWinxy (talk) 12:59, 17 July 2024 (UTC)[reply]__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"20240717125900","author":"SWinxy","type":"comment","level":2,"id":"c-SWinxy-20240717125900-PK2-20240717054100","replies":["c-Izno-20240717213700-SWinxy-20240717125900"]}}-->
Regarding body association, note that this template probably won't be a table forever, see User:Izno/Sandbox/Infobox for commentary on the point. Izno (talk) 21:37, 17 July 2024 (UTC)[reply]__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"20240717213700","author":"Izno","type":"comment","level":3,"id":"c-Izno-20240717213700-SWinxy-20240717125900","replies":[]}}-->
Regarding |width=, that will not be supported. If you would like to modify an infobox's width, you should do so with TemplateStyles via |templatestyles= in the appropriate media query so that these templates can be responsive at small resolutions. At some point it will be removed from {{navbox}} also.
I agree with Gonnym and Primefac about the other request in #2. We do not need to support additional aliases. Izno (talk) 21:35, 17 July 2024 (UTC)[reply]__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"20240717213500","author":"Izno","type":"comment","level":2,"id":"c-Izno-20240717213500-PK2-20240717054100","replies":[]}}-->
__DTSUBSCRIBEBUTTONDESKTOP__{"headingLevel":2,"name":"h-GreenC-20240719174800","type":"heading","level":0,"id":"h-URLs_in_image_field-20240719174800","replies":["c-GreenC-20240719174800-URLs_in_image_field"],"text":"URLs in image field","linkableTitle":"URLs in image field"}-->
__DTSUBSCRIBEBUTTONMOBILE__{"headingLevel":2,"name":"h-GreenC-20240719174800","type":"heading","level":0,"id":"h-URLs_in_image_field-20240719174800","replies":["c-GreenC-20240719174800-URLs_in_image_field"],"text":"URLs in image field","linkableTitle":"URLs in image field"}-->
It's common to find URLs in the |image= field which of course does not work eg. Hemal Ranasinghe. These are trivial to detect (I think?) and could generate an error so they can be tracked and removed. The URLs are sometimes in square links. Other fields are |image_skyline= and |logo= and probably others. -- GreenC17:48, 19 July 2024 (UTC)[reply]__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"20240719174800","author":"GreenC","type":"comment","level":1,"id":"c-GreenC-20240719174800-URLs_in_image_field","replies":["c-WOSlinker-20240719181000-GreenC-20240719174800","c-Ponor-20240719182700-GreenC-20240719174800"],"displayName":"Green"}}-->
Quite a few can be found with a search. Another option would be to modify Module:InfoboxImage. -- WOSlinker (talk) 18:10, 19 July 2024 (UTC)[reply]__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"20240719181000","author":"WOSlinker","type":"comment","level":2,"id":"c-WOSlinker-20240719181000-GreenC-20240719174800","replies":["c-GreenC-20240719194800-WOSlinker-20240719181000","c-GreenC-20240719204900-WOSlinker-20240719181000"]}}-->
This revised search returned about 700 but regex times out. I suspect it's a lot more. I stumbled on this while looking for goo.gl links and found about 200 image links with that domain alone. -- GreenC19:48, 19 July 2024 (UTC)[reply]__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"20240719194800","author":"GreenC","type":"comment","level":3,"id":"c-GreenC-20240719194800-WOSlinker-20240719181000","replies":[],"displayName":"Green"}}-->
Good catch, @GreenC. There are a few hundred of those when you use this search for image, and some 60 for image_skyline and another 500+ for logo. Ponor (talk) 18:27, 19 July 2024 (UTC)[reply]__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"20240719182700","author":"Ponor","type":"comment","level":2,"id":"c-Ponor-20240719182700-GreenC-20240719174800","replies":[]}}-->
__DTSUBSCRIBEBUTTONDESKTOP__{"headingLevel":2,"name":"h-SirlupinwatsonIII-20240722050300","type":"heading","level":0,"id":"h-Template-protected_edit_request_on_22_July_2024-20240722050300","replies":["c-SirlupinwatsonIII-20240722050300-Template-protected_edit_request_on_22_July_2024"],"text":"Template-protected edit request on 22 July 2024","linkableTitle":"Template-protected edit request on 22 July 2024"}-->
__DTSUBSCRIBEBUTTONMOBILE__{"headingLevel":2,"name":"h-SirlupinwatsonIII-20240722050300","type":"heading","level":0,"id":"h-Template-protected_edit_request_on_22_July_2024-20240722050300","replies":["c-SirlupinwatsonIII-20240722050300-Template-protected_edit_request_on_22_July_2024"],"text":"Template-protected edit request on 22 July 2024","linkableTitle":"Template-protected edit request on 22 July 2024"}-->
This edit request to Module:Infobox has been answered. Set the |answered= or |ans= parameter to no to reactivate your request.
Hi there I hope you are doing well! I would like to add an additional image from The [1]PBC Coat of Arms under the main image using the actual template. Precisely, I would like to edit as I want this page without prior demand or requirements. If you could include my tag-name in the allowed list, I would greatly appreciate it.
Best regards, Sir Watson SirlupinwatsonIII (talk) 05:03, 22 July 2024 (UTC)[reply]__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"20240722050300","author":"SirlupinwatsonIII","type":"comment","level":1,"id":"c-SirlupinwatsonIII-20240722050300-Template-protected_edit_request_on_22_July_2024","replies":["c-Primefac-20240722122400-SirlupinwatsonIII-20240722050300"]}}-->
Not done: this is the talk page for discussing improvements to the template{{Infobox}}. Please make your request at the talk page for the article concerned. Primefac (talk) 12:24, 22 July 2024 (UTC)[reply]__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"20240722122400","author":"Primefac","type":"comment","level":2,"id":"c-Primefac-20240722122400-SirlupinwatsonIII-20240722050300","replies":[]}}-->
__DTSUBSCRIBEBUTTONDESKTOP__{"headingLevel":2,"name":"h-Robertsky-20240825183600","type":"heading","level":0,"id":"h-Logos_and_dark_mode-20240825183600","replies":["c-Robertsky-20240825183600-Logos_and_dark_mode"],"text":"Logos and dark mode","linkableTitle":"Logos and dark mode"}-->
__DTSUBSCRIBEBUTTONMOBILE__{"headingLevel":2,"name":"h-Robertsky-20240825183600","type":"heading","level":0,"id":"h-Logos_and_dark_mode-20240825183600","replies":["c-Robertsky-20240825183600-Logos_and_dark_mode"],"text":"Logos and dark mode","linkableTitle":"Logos and dark mode"}-->
Is it possible to set a white (or an offwhite) background colour fill by default for logos in dark mode? Logo images with transparent background may not work well with dark mode, i.e. Taiwan Power Company. – robertsky (talk) 18:36, 25 August 2024 (UTC)[reply]__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"20240825183600","author":"Robertsky","type":"comment","level":1,"id":"c-Robertsky-20240825183600-Logos_and_dark_mode","replies":["c-Primefac-20240825202400-Robertsky-20240825183600","c-Izno-20240825205800-Robertsky-20240825183600"],"displayName":"\u2013 robertsky"}}-->
Maybe it's just my computer, but I see the image in question inside of a white box (though when I go directly to the file page itself, it shows a transparent background). Primefac (talk) 20:24, 25 August 2024 (UTC)[reply]__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"20240825202400","author":"Primefac","type":"comment","level":2,"id":"c-Primefac-20240825202400-Robertsky-20240825183600","replies":["c-MSGJ-20240825203600-Primefac-20240825202400"]}}-->
That's what I see too. I agree the black background does not make it easy to see the logo — Martin (MSGJ · talk) 20:36, 25 August 2024 (UTC)[reply]__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"20240825203600","author":"MSGJ","type":"comment","level":3,"id":"c-MSGJ-20240825203600-Primefac-20240825202400","replies":["c-Primefac-20240825204800-MSGJ-20240825203600"]}}-->
Which do you see? A black background in the infobox, or a white background in the infobox? Just noting that both options have been indicated above. Primefac (talk) 20:48, 25 August 2024 (UTC)[reply]__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"20240825204800","author":"Primefac","type":"comment","level":4,"id":"c-Primefac-20240825204800-MSGJ-20240825203600","replies":["c-MSGJ-20240825205000-Primefac-20240825204800"]}}-->
I see the white background in the infobox and the transparent background on the file itself, which I interpreted to be the same as you — Martin (MSGJ · talk) 20:50, 25 August 2024 (UTC)[reply]__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"20240825205000","author":"MSGJ","type":"comment","level":5,"id":"c-MSGJ-20240825205000-Primefac-20240825204800","replies":[]}}-->
It cannot be done from the core styles today. (That might be possible later, I haven't decided. Feedback somewhere between fine and welcome.)
You will need to provide an appropriate class to the image row to indicate it holds an icon, and then you will need to add TemplateStyles to the infobox to make the image background always the light background. In order:
Add a class to the row. In infobox company's case, there is already a logo class, but I do not know from what this stems, so I will add to ib-company-logo
Save all the pages + protection for the TemplateStyles page.
IDK about MSGJ and Primefac. The relevant dark mode here is the WMF standard dark mode, which only now post-my-edit displays the image with a light background. Izno (talk) 20:58, 25 August 2024 (UTC)[reply]__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"20240825205800","author":"Izno","type":"comment","level":2,"id":"c-Izno-20240825205800-Robertsky-20240825183600","replies":["c-Robertsky-20240826023500-Izno-20240825205800","c-Robertsky-20240826063100-Izno-20240825205800"]}}-->
@Izno thanks! yeah... I should have had specified that it is the WMF standard dark mode. Thanks to @MSGJ and @Primefac for responding as well. – robertsky (talk) 02:35, 26 August 2024 (UTC)[reply]__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"20240826023500","author":"Robertsky","type":"comment","level":3,"id":"c-Robertsky-20240826023500-Izno-20240825205800","replies":[],"displayName":"\u2013 robertsky"}}-->
Hi there, I hope this is a good place to ask. Does preprocessArgs({ {prefix = 'image', depend = {'caption', 'imagerowclass'}} }, 10) mean that for an image26 + caption26 to show up, we have to have an imagerowclass26, or something similar?
My problem is that {{Infobox mountain/sandbox}} refuses to render that, and there's no errors shown, so I'm at a loss. The logic over there is a fair bit convoluted - we want to shift indices in case a photo is present, and the photo can also be present at Wikidata, so we call {{#invoke:WikidataIB|getValue}} for the latter. But even if I set up image26 and caption26 statically, it's not rendered. How come?
Obviously, if all this is barking up the wrong tree and there's a simpler way to get the same result, I'm all ears.
TIA! --Joy (talk) 15:25, 8 October 2024 (UTC)[reply]__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"20241008152500","author":"Joy","type":"comment","level":1,"id":"c-Joy-20241008152500-implementing_optional_image\/caption","replies":["c-Izno-20241008160600-Joy-20241008152500"]}}-->
To answer the first question, no, "depend" is the other direction: to have an imagerowclass or a caption you must first have an image. Izno (talk) 16:06, 8 October 2024 (UTC)[reply]__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"20241008160600","author":"Izno","type":"comment","level":2,"id":"c-Izno-20241008160600-Joy-20241008152500","replies":["c-Joy-20241008200000-Izno-20241008160600"]}}-->
Thanks.
Is it possible that this dynamic row creation behavior of infobox mountain depends on preprocessArgs step, which in case of dataN can be 50 or so apart, but imageN can only be 10 or so apart, or something like that? --Joy (talk) 20:00, 8 October 2024 (UTC)[reply]__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"20241008200000","author":"Joy","type":"comment","level":3,"id":"c-Joy-20241008200000-Izno-20241008160600","replies":["c-Joy-20241008203100-Joy-20241008200000"]}}-->
OK that should be it. I think I missed the fact that imageN is not supposed to be interleaved with dataN, but necessarily above them. IOW despite this content ultimately being an image, it'll have to be implemented through data rows? --Joy (talk) 20:31, 8 October 2024 (UTC)[reply]__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"20241008203100","author":"Joy","type":"comment","level":4,"id":"c-Joy-20241008203100-Joy-20241008200000","replies":["c-Izno-20241008204100-Joy-20241008203100"]}}-->
I was fairly certain this was a restriction but wanted to see if anyone else piped up. Yes, images go at the top of the infobox, that's always where they've gone, and where other infoboxes support an image elsewhere it's with a data cell, no label, because they were shoehorned in. Izno (talk) 20:41, 8 October 2024 (UTC)[reply]__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"20241008204100","author":"Izno","type":"comment","level":5,"id":"c-Izno-20241008204100-Joy-20241008203100","replies":["c-Joy-20241008210100-Izno-20241008204100"]}}-->
OK, makes sense. The only reason I went for the image+caption syntax was that it seemed logical for that separation of rows, but if there's no real difference between imageN+captionN and dataN+data(N+1), it's just fine to keep using the latter for this. --Joy (talk) 21:01, 8 October 2024 (UTC)[reply]__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"20241008210100","author":"Joy","type":"comment","level":6,"id":"c-Joy-20241008210100-Izno-20241008204100","replies":[]}}-->
Is there any reason why |rowstyle= doesn't show borders in dark mode as seen at the Washington Commanders? ~ Dissident93(talk)02:51, 14 November 2024 (UTC)[reply]__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"20241114025100","author":"Dissident93","type":"comment","level":1,"id":"c-Dissident93-20241114025100-Rowstyle_question","replies":["c-Izno-20241114025400-Dissident93-20241114025100"]}}-->
WMF styles are oppressive it seems. That's it, that's the story. Izno (talk) 02:54, 14 November 2024 (UTC)[reply]__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"20241114025400","author":"Izno","type":"comment","level":2,"id":"c-Izno-20241114025400-Dissident93-20241114025100","replies":["c-Dissident93-20241114032400-Izno-20241114025400"]}}-->
I'm assuming it's no easy fix then. ~ Dissident93(talk)03:24, 14 November 2024 (UTC)[reply]__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"20241114032400","author":"Dissident93","type":"comment","level":3,"id":"c-Dissident93-20241114032400-Izno-20241114025400","replies":["c-Izno-20241114035400-Dissident93-20241114032400"]}}-->
Not without issues in other ways. Izno (talk) 03:54, 14 November 2024 (UTC)[reply]__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"20241114035400","author":"Izno","type":"comment","level":4,"id":"c-Izno-20241114035400-Dissident93-20241114032400","replies":[]}}-->