Template talk:Infobox/Archive 15

Installation guide
Since I had difficulties to find a resource on installation, here is the working step-by-step-guide I used in the end to get this running: https://www.mediawiki.org/wiki/Manual:Importing_Wikipedia_infoboxes_tutorial — Preceding unsigned comment added by 213.33.64.46 (talk) 09:13, 23 April 2018 (UTC)

RFC notice
A relevant RFC is going on at Wikidata/2018 Infobox RfC. Capankajsmilyo(Talk 16:48, 2 May 2018 (UTC)

Categorization, redux
Since the old discussion got spirited away, and in the interest of not edit-warring:, Music of sidebar is an infobox. It uses infobox. Why shouldn't it be categorized as an infobox? Primefac (talk) 11:12, 23 May 2018 (UTC)
 * Well, to me, sidebars like Template:Music of Canada seem a more of a navbox than an infobox. The infobox templates is often abused, so that's why the automatic categorization only kicked in on things starting with the naming convention infobox foobar. If consensus is that every template using the infobox template as its basis should be included in the category, I won't stand against it, but it should be discussed first. And then we can update it to your code instead, with a categorization bypass for the stray cases. Headbomb {t · c · p · b} 12:52, 23 May 2018 (UTC)
 * Then convert it to a sidebar? I find it much more likely that we'll be able to find/fix "abuse of infobox" if we flag everything that uses it. For example, templates like music of sidebar can then be converted into sidebar usage, and templates that should be named "Infobox foo" but are named "foo infobox" can be fixed. I see only benefits and no detractors. Primefac (talk) 13:12, 23 May 2018 (UTC)
 * Either way, I think template other is more concise than the #ifeq statement being used, if only because it's a bit cleaner. Primefac (talk) 13:16, 23 May 2018 (UTC)
 * Converting one meta template to another isn't something I'm comfortable doing in 4 minutes. It's something that requires thought and time, which I don't have at the moment. Headbomb {t · c · p · b} 15:29, 23 May 2018 (UTC)
 * I guess I'm confused by that statement. Because you don't have the time to modify a particular template, you're going to make it harder for someone else to know that it needs changing? Primefac (talk)


 * I didn't say that. You told me to convert it, and I don't have the time to do that. Doesn't mean someone else can't do it. Headbomb {t · c · p · b} 15:48, 23 May 2018 (UTC)
 * My statement was meant as a general note, and shouldn't invalidate my entire argument for why I feel my change is appropriate. Primefac (talk) 16:03, 23 May 2018 (UTC)

Visible bullets in infobox
See Template talk:Infobox musical artist. -- Red rose64 &#x1f339; (talk) 20:59, 5 July 2018 (UTC)

Spacing with mixed text and lists
Currently, one needs to insert div tags to align data and labels when there is mixed text and lists in a data field. The newlines that are inserted before data are only there to fix lists and wikitables in the input (if I recall correctly). since we are now preprocessing the input, we could probably selectively add the newlines only when necessary, which would probably fix the alignment issue when there is mixed content. anyone else have any ideas or comments? Frietjes (talk) 14:51, 24 July 2018 (UTC)
 * I wonder if we couldn't just fix this with some CSS. --Izno (talk) 15:22, 24 July 2018 (UTC)
 * Izno if you check the HTML, you will see that the backend parser is adding in the first example, so it would seem to be something that we cannot easily address with CSS, unless you are going to change the function of  with CSS. Frietjes (talk) 16:43, 24 July 2018 (UTC)
 * I put some possible code in the sandbox, you can see the result in the mixed text and lists test case. Frietjes (talk) 16:43, 24 July 2018 (UTC)
 * Yes, I took you at your word when you said p was being inserted. ;) My thought was that you can just take .infobox p and set the margin/padding to 0 (and similarly for the lists?). --Izno (talk) 01:30, 26 July 2018 (UTC)
 * That said, I might have missed something; the live and the /sandbox2 page render without the div as the problem you describe; the /sandbox does not. --Izno (talk) 01:33, 26 July 2018 (UTC)
 * Izno, using CSS to modify the p tag style could work, but I don't know if there are other legitimate uses of the p tag for spacing inside an infobox. the first example in mixed text and lists test case should show that the problem is fixed in the /sandbox, but not fixed in the live and /sandbox2.  this is because I put a possible fix in the /sandbox for review ([//en.wikipedia.org/w/index.php?title=Module%3AInfobox%2Fsandbox&type=revision&diff=851777362&oldid=849418996 see here]).  Frietjes (talk) 12:23, 26 July 2018 (UTC)

TemplateStyles in meta templates
Followers of this page may be interested in WT:TemplateStyles. Please take a moment to comment there. --Izno (talk) 01:40, 27 July 2018 (UTC)

Width?
inter alia: Something has bugged me for a while. Why isn't the Template:Infobox width the same, at least per default, as Template:Sidebar (or, less preferably, the other way around, depending on which one is actually the largest and thus most suitable as default)? Chicbyaccident (talk) 11:51, 3 August 2018 (UTC)
 * Chicbyaccident, they both have the same default width of 22em. the width can change if (a) someone overrides the default with inline css, or (b) something inside the box stretches it (e.g., an image or nowrap text). Frietjes (talk) 12:21, 3 August 2018 (UTC)
 * Thanks. However, am I only the only one who sees vast amount of diversions for the default width? Perhaps something could be done to tighten up how width seems to be able to be stretched? Chicbyaccident (talk) 12:22, 3 August 2018 (UTC)
 * Chicbyaccident, if you see a difference in the width in the example I posted here, then the problem is with (a) your eyes, (b) your personal css, or (c) your browser. if you are not seeing a difference here, but are seeing a difference elsewhere, then you need to provide more information. Frietjes (talk) 12:45, 3 August 2018 (UTC)
 * Please see infobox and sidebar stacking with varying widths at for instance Catholic Church, Oriental Orthodoxy, Maronite Church, Assyrian Church of the East, etc. Chicbyaccident (talk) 12:49, 3 August 2018 (UTC)
 * Chicbyaccident, if you open Template:Infobox Christian denomination in edit mode, you will see .  this is why the box is 2em wider.  note that the font-size and text-align overrides are probably doing nothing (88% is the default). perhaps this could be fixed during the merger with "Infobox Christian church body". Frietjes (talk) 12:56, 3 August 2018 (UTC)
 * Right. Seems like some programming would be at hand, but not something that would be the right person to try. Chicbyaccident (talk) 13:35, 3 August 2018 (UTC)
 * Chicbyaccident, sounds like you should start a discussion at Template talk:Infobox Christian denomination since the problem isn't here. the width of that template was increased [//en.wikipedia.org/w/index.php?title=Template%3AInfobox_Christian_denomination&type=revision&diff=403762277&oldid=403761263 with this edit] as part of this discussion. Frietjes (talk) 14:25, 3 August 2018 (UTC)
 * OK. Thanks. Chicbyaccident (talk) 08:17, 5 August 2018 (UTC)

Using template styles to reduce technical debt inside mobile skin
I'd like to propose some changes to Template:Infobox that would move several inline styles into TemplateStyles. Essentially it would mean removing the width: 22em inline style definition and creating a new class 'infobox-sub' with a new class definition inside Template:Infobox/styles.css.

I've experimented with this in the sandbox) and I don't forsee any problems.

The benefit of doing this is, is I can remove some !important styles from the Minerva skin and it would aid all Wikipedia skins when viewed on a mobile device. Any concerns with me doing this? Jdlrobson (talk) 17:56, 15 August 2018 (UTC)
 * since it's a new class, I don't see any potential problems. however, it could be useful to do something with Subinfobox bodystyle as well. Frietjes (talk) 18:00, 15 August 2018 (UTC)
 * If it doesn't dramatically change anything visually in Vector it should be fine, although there are a few infoboxes that use Module:String to inject CSS into the infobox table that might be affected by this. Jc86035 (talk) 18:02, 15 August 2018 (UTC)
 * your [//en.wikipedia.org/w/index.php?title=Template%3AInfobox&type=revision&diff=855063393&oldid=844984935 recent changes] have caused any table using the infobox class to have width 22em, even when the table isn't using the module/template. before, if you would use the infobox class outside of this module/template, the width would effectively be "auto".  now the default width is 22em, which looks really strange for the key in [//en.wikipedia.org/w/index.php?title=2011–12_First_League_of_the_Federation_of_Bosnia_and_Herzegovina&oldid=844323678#Clubs_season-progress this section].  this is why I said there wasn't a problem if it's a new class. Frietjes (talk) 18:31, 15 August 2018 (UTC)
 * That could be problematic (screenshot of page linked above). I've reverted the change to the template for now. Primefac (talk) 18:34, 15 August 2018 (UTC)
 * eek. Thanks for catching that and the revert. I'll have another go in the sandbox and ping you when i hopefully have a better informed solution. Jdlrobson (talk) 19:32, 15 August 2018 (UTC)

Decat by default when child=yes?
A discussion at Category_talk:Articles_which_use_infobox_templates_with_no_data_rows has demonstrated that when an infobox is a child, it can still trigger the "no data rows" category switch. Would it make sense to by-default add yes (or the module equivalent) when yes? There are (at this particular point in time) about 53k pages in the category, and the four templates I just decatted are likely only a tiny fraction of the total number of templates that are providing false positives in that category. Adding the decat param to Extra album cover dropped the number down from 64k overnight. Primefac (talk) 13:12, 24 August 2018 (UTC)
 * Rather than decat by default, better to have it not populate that specific category when yes. One other category is done by Module:Infobox and that is specifically for child infoboxes Galobtter (pingó mió) 13:20, 24 August 2018 (UTC)
 * Well, yes, I suppose my point was that if a template is being used as a child, it shouldn't make the page show up in the main tracking cat purely because it doesn't have any params. The idea of having a tracking cat for children-without-params is a good one. Primefac (talk) 13:22, 24 August 2018 (UTC)
 * What I'm saying is that Module:Infobox has two tracking categories, and essentially what you're asking for is to disable one (Category:Articles_which_use_infobox_templates_with_no_data_rows), not disable all tracking categories. Which is just a pedantic point, anyhow. I've coded this here
 * The idea seems reasonable since I don't think child infoboxes without data rows are really meant to populate that (I assume the point is to track misuses of infoboxes in article space?) Galobtter (pingó mió) 13:42, 24 August 2018 (UTC)
 * You're exactly correct, and you're right in that putting decat would remove all tracking. My apologies. Primefac (talk) 16:19, 24 August 2018 (UTC)
 * I've implemented the change. Primefac (talk) 15:50, 26 August 2018 (UTC)

raises the question of what counts as "misuse" of infoboxes. I was also drawn into the discussion at Category talk:Articles which use infobox templates with no data rows and have been adding (or requesting the addition) of {{para|decat|yes) in circumstances where the infobox is being used solely to display an image or solely for prev/next navigation. If these are to be considered misuses, we have a lot of work to do to (tens of thousands of articles, it looks like).

Relating to the {{para|child}} question brought up by {{u|Primefac}} is the use of something like {{tl|infobox sailor}} or {{tl|infobox architect}} where none of the fields specific to that particular subclass of infobox have been populated. When these are incorporated unconditionally into the parent infobox with child or module, they also appear to trigger categorization. Is this a misuse? I guess we need to wait for the job queue to finish incorporating Primefac's recent change to see if there is something else remaining to be done.  — jmcgnh {{sup| (talk)   (contribs)  }} 18:21, 26 August 2018 (UTC)
 * Looking at {{tl|Infobox American championship car race report}} causes me to wonder if {{para|subbox|yes}} needs to be treated in a similar way to the yes case with respect to {{para|decat}}.  — jmcgnh {{sup| (talk)   (contribs)  }} 07:12, 29 August 2018 (UTC)

Deprecated Image Syntax
In the example section of https://en.wikipedia.org/wiki/Template:Infobox page, for the field image, isn't the word File a deprecated one? I think the word 'File' followed by colon needs to be removed from the example section. Please verify from https://en.wikipedia.org/wiki/Category:Pages_using_deprecated_image_syntax section. Adithyak1997 (talk) 17:48, 29 August 2018 (UTC)
 * Adithyak1997, no, that particular syntax is deprecated when passed through Module:InfoboxImage, but not deprecated here. this is a meta-template which is used by other templates (e.g., infobox person) and it's the other templates (e.g., infobox person) which pass images through Module:InfoboxImage.  hence, the syntax is correct here, since this meta-template does not use Module:InfoboxImage.  you can confirm this fact by reading the top of Category:Pages using deprecated image syntax which makes no mention of this template. Frietjes (talk) 19:30, 29 August 2018 (UTC)

mergedrow and mergedbottomrow
I have looked in the documentation in various places, and I don't know if I'm looking in the wrong place or what but I cannot for the life of me determine what purpose mergedrow and mergedbottomrow do in templates like infobox country. Other templates I've worked heavily on (such as infobox rugby biography) don't seem to use it, so what purpose is it serving? The only thing I can think of is that it keeps line breaks from showing between items, but then why do the line breaks show up in IB country but not IB rugby bio? Primefac (talk) 15:03, 1 September 2018 (UTC)
 * , geography infoboxes have quite a bit of styling in MediaWiki:Common.css. Causes the line-breaks and also defines what  etc do. Galobtter (pingó mió) 15:08, 1 September 2018 (UTC)
 * Ah, yes, didn't see the vcard difference. Primefac (talk) 15:49, 1 September 2018 (UTC)

Correct name check
I recently implemented a check on another template that looked to make sure that the param matched the name of the template. When it didn't the template was placed in a tracking category. (Category:Articles using sidebar games events without correct name). Was curious if it might be beneficial to implement something similar here? I'm happy to do it, but wanted to check for feedback first. -- Zackmann08 (Talk to me/What I been doing) 22:28, 13 September 2018 (UTC)
 * User:Zackmann08, I believe the name is not used that frequently in this template (especially compared to sidebar). the method we are currently using for finding broken navbar links is Database reports/Invalid Navbar links, which includes infobox. Frietjes (talk) 22:34, 13 September 2018 (UTC)
 * good to know. Thanks! -- Zackmann08 (Talk to me/What I been doing) 03:35, 14 September 2018 (UTC)

Maps need to be localized
As visible on articles like Bridge to Nowhere (San Gabriel Mountains) and Pan-Pacific Auditorium, the location of a small place within a general map of the whole state is not as useful as would be a location within a metropolitan area map. Since the state map images are called by some simple syntax in the template there is a natural unease at the prospect of creating a large amount of metropolitan images, but this is necessary because the current state is of inferior form. -Inowen (nlfte) 07:03, 21 September 2018 (UTC)
 * Inowen, do you see where it says USA California in Bridge to Nowhere (San Gabriel Mountains) and California in Pan-Pacific Auditorium? you can change this to something else.  you can find a fairly complete list at Template:Location map/List. Frietjes (talk) 12:47, 21 September 2018 (UTC)

subheaderstyle
On line 191 of the module, shouldn't the code be replaced with the following?

From this:

To this: This would allow an individual subheader to overwrite the general subheader styling. $\color{blue}\chi$chi (talk) 21:31, 16 September 2018 (UTC)
 * User:Χ, how about


 * which would use both if they are both available. it looks like datastyle is added before rowcellstyle on lines 134–5 so any value in the individual style would effectively override the general style? Frietjes (talk) 12:55, 21 September 2018 (UTC)
 * now implemented. Frietjes (talk) 23:10, 22 October 2018 (UTC)

Tracking for header / label or header / data collision
[//en.wikipedia.org/w/index.php?title=Template%3AInfobox_sportsperson&type=revision&diff=865274958&oldid=860130185 this edit] by reminded me of the possible numbering collision problem. would it be useful to add tracking to find these cases? Frietjes (talk) 23:17, 22 October 2018 (UTC)


 * I think it would be useful. In the instance you mention, Infobox sportsperson was not displaying the "native_name" parameter for 53 days. With tracking this might have been corrected sooner. If there was also a notice displayed in preview mode (similar to what would be shown if "header1" was defined twice), the error might have been caught before it was added. -- Zyxw (talk) 01:44, 23 October 2018 (UTC)

Non bold labels
The template to the right is produced by geobox. What is the best way to achieve a similar effect with infobox? In particular the non bolding of location, elevation and coordinates. &mdash; Martin (MSGJ · talk) 20:58, 5 November 2018 (UTC)
 * Non-bold is done by . Galobtter (pingó mió) 21:04, 5 November 2018 (UTC)
 * Which parameter can I use to define that? Will rowstylen work? Okay I see, I will just wrap in a span tag. &mdash; Martin (MSGJ · talk) 21:20, 5 November 2018 (UTC)

Spacing with mixed text and lists redux
per this thread, I have put [//en.wikipedia.org/w/index.php?title=Module%3AInfobox%2Fsandbox&type=revision&diff=865286974&oldid=865286709 this fix] in the sandbox. notice the spurious without the fix. another option would be to change when it is used inside an of an infobox, possibly through templatestyles. but, since we are already string processing the data fields, it doesn't seem like that much extra effort to eliminate the directly. comments? suggestions? Frietjes (talk) 23:32, 22 October 2018 (UTC)
 * I've always wondered why that extra spacing appeared in infoboxes, but it never bothered me enough to ask. This looks like a good fix. Thanks! – Jonesey95 (talk) 04:35, 23 October 2018 (UTC)
 * Looks good to me. Thanks for fixing this! Plastikspork ―Œ (talk) 12:38, 23 October 2018 (UTC)
 * okay, now implemented. Frietjes (talk) 22:48, 5 November 2018 (UTC)

Add navigation style fields ("previous"/"next") to the module
Is there a way to add the navigation style field ("previous"/"next") a lot of infoboxes have into this module so that the actual code of creating a navigation won't be needed to be duplicated for each infobox and instead the invoking infobox will just need to pass the values of the previous and next parameters? See Template:Infobox television episode data31 as an example. --Gonnym (talk) 11:59, 25 November 2018 (UTC)
 * Does do what you are after? -- Red rose64 &#x1f339; (talk) 16:59, 25 November 2018 (UTC)
 * No (unless I missed something) as that is still the code in the template itself and not in this module. I am asking if there is an option to add this to the module itself (such as a "renderNavigation" function) which will remove the need for specialized code (which is basically people copy/pasting the code without understanding it) and handle it how label# and data# handle row parameters. From looking at the module code I believe there is, but I'm not too familiar with how to construct an infobox like that to test it. --Gonnym (talk) 17:05, 25 November 2018 (UTC)
 * Gonnym, there is succession links. Frietjes (talk) 18:13, 25 November 2018 (UTC)
 * That's, I guess, as closest to what I asked for, but better than nothing. Thanks Frietjes! --Gonnym (talk) 00:49, 26 November 2018 (UTC)

ClassN field values and what they do
Is there a list somewhere of all the values a the classN field accepts and what they represent? Two that I ran into for example are "attendee" and "category" --Gonnym (talk) 13:10, 17 December 2018 (UTC)
 * Gonnym, see here for person infoboxes, and here for geo, and Category:Microformat (uF) message templates for more. Frietjes (talk) 13:31, 17 December 2018 (UTC)
 * Thanks Frietjes! --Gonnym (talk) 13:36, 17 December 2018 (UTC)
 * Also possibly helpful. – Jonesey95 (talk) 13:40, 17 December 2018 (UTC)

Template-protected edit request on 10 January 2019
Charles S. Cohen has 4 children; however, the info box states that he has 3. 68.195.8.17 (talk) 03:26, 10 January 2019 (UTC)
 * Red information icon with gradient background.svg Not done: this is the talk page for discussing improvements to the template . Please make your request at the talk page for the article concerned. —&thinsp;JJMC89&thinsp; (T·C) 03:55, 10 January 2019 (UTC)

colour param deprecated?
Re: and Infobox character

Is now deprecated in favour of ? Are we deprecating such things generally now? (and what happened to WP:ENGVAR?) Andy Dingley (talk) 23:44, 22 January 2019 (UTC)

Standardisation of heading?
Some infoboxes keep the headings (subject title) outside the top of the infobox, some of them inside. Standardisation, anyone? I guess I'd prefer inside. PPEMES (talk) 21:59, 16 January 2019 (UTC)
 * Infoboxes are tables, there are no headings (there are headers, but that is a different concept). The text produced using the title parameter is in the form of a HTML  element, which must appear "outside" the box; whereas the text produced using the above parameter is in the form of a HTML  element - a header cell, which must appear inside the box. As regards semantics, a caption is better for accessibility than a header. This is not to say that above must not be used - but it should be in addition to title, not instead of it. -- Red rose64 &#x1f339; (talk) 23:01, 16 January 2019 (UTC)
 * If we were to integrate TemplateStyles here (being a squeaky wheel) we could make the caption element look like the table header element by default. --Izno (talk) 23:15, 16 January 2019 (UTC)
 * The only problem I can foresee is that some projects (for reasons that I've never clearly understood) prefer to have gaudily coloured "headers", the colour of which would need to be set via a parameter, and I've yet to find a way to pass a parameter with an arbitrary number of values to TemplateStyles. It could be set by an inline style, but that feels like a betrayal of the principles of using Template Styles in the first place. --RexxS (talk) 23:29, 16 January 2019 (UTC)
 * I personally like the "above" appearance better than the "title" one, but would also prefer a consistent appearance across articles of different subjects. If Izno's option could work that would be the best outcome. --Gonnym (talk) 10:40, 17 January 2019 (UTC)
 * I prefer the above appearance too. Galobtter (pingó mió) 10:48, 17 January 2019 (UTC)
 * The second demo uses a caption styled to mimic a "header" cell with the usual skittlepedia styling. All but the background colour would be better set in the ".templatestyles-class" which could be defined in TemplateStyles. Problems include the difference in padding and that some less compliant browsers have been known to leave 1 pixel gaps in the title/caption border. --RexxS (talk) 22:42, 17 January 2019 (UTC)
 * Some other issues are that it doesn't use the background from the infobox class and it doesn't work well with the mobile skin. – Brandon XLF   (t@lk)  03:29, 23 January 2019 (UTC)
 * I also prefer the "above" section style title. – Brandon XLF   (t@lk)  03:30, 23 January 2019 (UTC)

I've create 3 other options.  – Brandon XLF   (t@lk)  02:22, 24 January 2019 (UTC)
 * Actually what I meant was about the very heading subject article title, as shown in the infobox. Sometimes this one is shown above the infobox, separate from the infobox. But often it is shown inside. I just reacted on that inconcistency. But I gather there is more standardisation to do? PPEMES (talk) 09:39, 24 January 2019 (UTC)
 * That's because people use above for the title sometimes, which shows inside the infobox. This can be bad for accessibility sometimes. But many people think having the title on the outside is ugly. If we were to move the caption inside, more people would use it, making it easier to standardize this without making people upset. – Brandon XLF   (t@lk)  13:18, 24 January 2019 (UTC)
 * Thanks. Comparing your comment with the infoboxes demonstrated right here above, yes, you seem to have understood my concern correctly. Well, shouldn't it be clear to everyone that we could use a standard here? Either the subject article title is to be located above the infobox (in accordance with variable "this is title" as seen in above) or else inside (variable "this is above"), right? PPEMES (talk) 13:32, 24 January 2019 (UTC)
 * Not really. The accessibility concerns are not a question of whether a piece of text is inside or outside the infobox. Under most circumstances, using a caption with a table is a benefit for anyone using a screen reader, and the current implementation of tables in MediaWiki software renders captions outside the table. So the question becomes "either we use a caption or we don't". The guidance from the World Wide Web Consortium can be found at https://www.w3.org/TR/WCAG20-TECHS/H39.html and that is quite clear on the issue: The only argument in favour of not using a caption is that somebody doesn't like how it looks. And we have CSS to solve that. --RexxS (talk) 17:42, 24 January 2019 (UTC)
 * Quite; regarding the current implementation of tables in MediaWiki software, it doesn't set all of the styling, but leaves some of it to the browser.
 * Those of you who wish to test for themselves how captions look without any outside influence: if you know how to set up a HTML document on your own machine, and can point your browser to it, try including this HTML table: View it in your browser: that is a basic unstyled table. Now alter the first tag from  to, save and view it. You should find that a border is drawn around the outside of the table, but not between the table rows and columns. In most browsers, you should also find that the caption text "Demonstration of a table's default styling" is outside the top border (although it may wrap to more than one line). Now alter that attribute from   to   and you should find that when the table is right-aligned, the caption remains attached to it. This shows that although it appears to be outside the table, it is in fact part of the table. -- Red rose64 &#x1f339; (talk) 21:55, 24 January 2019 (UTC)

Support the full options of Module:Italic title
The module currently renders the title in italics in the following function:

However, the actual italic title template offers the string parameter which italics the specific text entered, which the module is currently not supporting. Also, instead of accessing the template, the module can access Module:Italic title directly via the function p._main(args). Thoughts/comments? --Gonnym (talk) 20:03, 31 January 2019 (UTC)
 * I'm not sure if there's any great advantage in directly accessing Module:Italic title over going through Template:Italic title, but if you're going to re-write the function, you might as well go directly. As Module:Infobox has its arguments available in the variable, which has module-wide scope, you could simply assume new parameters for Template:Infobox called " " and " ", or whatever. It would be then quite straightforward to sanitise those and then pass them to the _main function for Module:Italic title, which expects a table as its argument containing the keys   and  . Something like:
 * You could even implement the 'noerror' parameter from Template:Italic title similarly (use a named parameter in infobox and set  to it). --RexxS (talk) 22:10, 31 January 2019 (UTC)
 * You could also just keep italic title as the only parameter and allow it to be set to different values.
 * – Brandon XLF   (t@lk)  00:02, 1 February 2019 (UTC)
 * Is there any preference for people on how this should be done? Unique parameters (RexxS example) or using the existing one (BrandonXLF example)? --Gonnym (talk) 08:10, 8 February 2019 (UTC)
 * – Brandon XLF   (t@lk)  00:02, 1 February 2019 (UTC)
 * Is there any preference for people on how this should be done? Unique parameters (RexxS example) or using the existing one (BrandonXLF example)? --Gonnym (talk) 08:10, 8 February 2019 (UTC)
 * Is there any preference for people on how this should be done? Unique parameters (RexxS example) or using the existing one (BrandonXLF example)? --Gonnym (talk) 08:10, 8 February 2019 (UTC)

Template-protected edit request on 8 February 2019
Per Help_desk, request to link the label "Alma mater" in fully protected infoboxes Person, Writer, Scientist, Artist, Philosopher and Officeholder Bhunacat10  (talk),  10:19, 8 February 2019 (UTC)


 * That can't be done here; please raise the request on the talk page of each affected template - without the edit template-protected template - to check that there is consensus in each case. Andy Mabbett ( Pigsonthewing ); Talk to Andy; Andy's edits 10:22, 8 February 2019 (UTC)

Making the title centered on mobile browser
Have you ever thought of making the title centered while you see it on your phone? I've got the solution for this. In the mobile skin, the title is covered by &lt;caption&gt; element, which has a rule to make the content always aligned to the left, however it makes inconsistency comparing to Vector skin. So I implemented a CSS rule to make the title aligned to the center in mobile browsers, the source code is available at c:Template:Wikidata Infobox/styles.css, and you can see the effect here. If you want to approve it, you can copy it to mobile.css, or just create a TemplateStyles for this. Great Brightstar (talk) 15:55, 6 December 2018 (UTC)
 * Previous discussion that did not result in any changes (due to lack of interest combined with ability, it looks like). – Jonesey95 (talk) 16:47, 6 December 2018 (UTC)
 * I think this should be done as well as making the title bigger, as it's seams way too small on mobile. – BrandonXLF   (t@lk)  04:43, 7 December 2018 (UTC)
 * Please sandbox the change for testing, once tests are complete you can reactivate the edit request for review. — xaosflux  Talk 14:58, 7 December 2018 (UTC)
 * I'm reopening this request as this seams like the best place to put this. You can see the current template here and the new template here, they have to be on different pages because template data applies to the entire page. All what has to be done is the code at Template:X2/styles.css needs to be moved to MediaWiki:Mobile.css, that's it. The code makes the title the same as the above (just like in normal infoboxes). –  BrandonXLF   (t@lk)  05:54, 8 December 2018 (UTC)
 * the prior documentation for mobile.css (the target of this ER) is to: DO NOT style infobox's here. That should be taken care of in the associated templates via template styles. Styles here will lead to flash of unstyled content on mobile. Is there a reason this can not be placed at the appropriate template style page? —  xaosflux  Talk 16:00, 10 December 2018 (UTC)
 * Template styles have not been implemented for the big metatemplates at this time (and I have had it in the back of my mind but we need to think about how to do it). It is appropriate to put it in the mobile.css page for now. --Izno (talk) 20:21, 10 December 2018 (UTC)
 * it looks like just removed .infobox with that direction from mobile.css just a month ago. —  xaosflux  Talk 20:24, 10 December 2018 (UTC)
 * We could also put the code into the module and remove the code from MediaWiki:Common.css. This is already done for the above section. This achieves the same effect. See current and with title CSS in module – BrandonXLF   (t@lk)  20:46, 10 December 2018 (UTC)
 * The request to use template styles is entirely separate to the removal of the rule that occurred at the time and he did not provide any overriding rationale to putting a new style there for the time being given that we've had no Lua authors step forward to move the meta templates's styles to the meta templates. The CSS should be handled in a style sheet in this case. --Izno (talk) 00:11, 11 December 2018 (UTC)
 * I'd like to give an opportunity to chime in here. —  xaosflux  Talk 00:15, 11 December 2018 (UTC)
 * Sent a second request to Jon, will assume silence is no issue if no reply by 2018-12-19. — xaosflux  Talk 15:27, 15 December 2018 (UTC)
 * , FYI, this inconsistency is there for a reason. It's because tables (which infoboxes still are), can be wider than the screen. And if you center align a caption in such a table, then often they are simply not visible or cut off within the viewport. Since Infobox never explicitly defined the alignment of the caption element, instead relying on browser and/or skin defaults, you see a difference here. I see no reason not to fix that. Moving everything to TemplateStyles is however a much bigger project which will require a lot more testing. Maybe just start by adding this to a templatstyles element and work from there ? —Th e DJ (talk • contribs) 09:32, 17 December 2018 (UTC)
 * OK, I was already made the implementation at Template:Infobox/sandbox, that is a very simple rule so it's really not very hard to do.--Great Brightstar (talk) 12:37, 17 December 2018 (UTC)

Hey there and sorry for being late to the discussion. Mobile.css loads via Javascript so a css change to infobox there would result in a visible flash of style content and a performance degradation. It is thus super important that template styles is adopted for this file. Many ambox templates have adopted stylesheets for this reason. See also T168861. This change can also be made in Minerva code in the interim. What is the worry about using template styles on Infobox? Simply because of how many pages it is used on? Jdlrobson (talk) 15:51, 15 December 2018 (UTC)
 * I suspect has an opinion, but for me it's more just a "no one has implemented it in the module yet" and "we don't have a sensible path forward with respect to deploying template styles for the big meta templates generally" (see now-archived Template_talk:Infobox/Archive_15). --Izno (talk) 15:56, 15 December 2018 (UTC)
 * I mean, while converting all the inline styles to template styles would be quite a bit of work, just loading Template:Infobox/styles.css (and adding that styling to it) would be quite easy and is all that would be necessary here right? Galobtter (pingó mió) 16:06, 15 December 2018 (UTC)
 * A point that TheDJ brought up elsewhere is that people have used e.g. infobox classes outside of uses of infobox. That's one cleanup area. The second is that we shouldn't load it via a second template but instead by adding it with the module. That's the actual work that should be done here (with associated Module:Infobox/styles.css). Third is indeed to clean up all the various and sundry styling out in the wild and some approach there hasn't had any discussion whatsoever (and I would expect it to be common with module:sidebar and module:navbox). There's an issue specific to Navbox where that template doesn't allow us to inject a class into the currently-surrounding div. So... it's not just as simple as "add template:infobox/styles.css to template:infobox". --Izno (talk) 16:26, 15 December 2018 (UTC)
 * Those are reasonable points; just noting, that I'm definitely talking about loading it through Module:Infobox and not Template:Infobox. Galobtter (pingó mió) 16:32, 15 December 2018 (UTC)
 * has summarised my biggest concerns with moving this indeed. It's not impossible, you just have to expect to have to revert a couple of times and/or do some cleanup. There is also a slight concern with the amount of possible styling options that infobox has, specifically the geography set of classes, which probably should be in their own stylesheet, only conditionally loaded. —Th e DJ (talk • contribs) 09:36, 17 December 2018 (UTC)
 * (deactivating the edit notice) - discussion on how to move forward is still ongoing, once a consensus for change is established feel free to reactivate the edit request. — xaosflux  Talk 17:32, 18 December 2018 (UTC)

Continued: Add CSS to module
I'm now proposing that rather then putting title CSS in a style-sheet, we just put it into the module. This is already done with the "above" row. – Brandon XLF   (t@lk)  02:22, 23 January 2019 (UTC)


 * Red information icon with gradient background.svg Not done: please make your requested changes to the template's sandbox first; see WP:TESTCASES. -- / Alex /21  02:32, 23 January 2019 (UTC)
 * I did at Module:Infobox, I'll update the request. – Brandon XLF   (t@lk)  02:39, 23 January 2019 (UTC)
 * Red information icon with gradient background.svg Not done: please establish a consensus for this alteration before using the template. Izno (talk) 04:31, 23 January 2019 (UTC)
 * Oppose the rationales for having style sheets still apply to infoboxes. Modern(!) design separates presentation from content for good reason: CSS belongs in a style sheet, not hard-coded inline into code, in order to simplify updating, re-use and maintenance. Not to mention that trying to override inline CSS in a user's personal stylesheet breaches the natural order of cascading, which is a recipe for accessibility problems. WP:TemplateStyles --RexxS (talk) 23:53, 22 February 2019 (UTC)

Talkpage title in italics?
Why does this talkpage title uses italics? It now shows as "Template talk:Infobox". -DePiep (talk) 18:01, 28 April 2019 (UTC)
 * Infobox magazine was in use in a discussion above, which (by default) turns the page title italic. I've switched that off. Primefac (talk) 18:21, 28 April 2019 (UTC)
 * OK. done. -DePiep (talk) 19:35, 28 April 2019 (UTC)

Infobox tabs
Is there a way to add tabs to the top of an infobox, each tab displaying different information? - ZLEA  T \ C 23:41, 3 May 2019 (UTC)
 * Why do you think this is necessary? A general principle is that we should avoid hiding information from people (WP:MOSCOLLAPSE), which tabs would require. --Izno (talk) 01:01, 4 May 2019 (UTC)
 * That aside, there are some Wikias (such as Type-Moon Fandom) where they have infoboxes with "tabs". --Izno (talk) 01:04, 4 May 2019 (UTC)
 * I mainly want to do this for articles like Los Angeles XXIII Olympiad commemorative coins. Most modern United States coins are issued in a series, generally featuring half dollar, dollar, and half eagle ($5) coins.  Having separate infoboxes for each of the coins makes for a rather long article that can be hard to navigate on mobile.  A more extreme example would be an article for the Centennial Olympics commemorative coins of 1995 and 1996.  This series contained 4 half dollars, 8 dollars, and 4 half eagles.  Even if I only have infoboxes for each denomination, that is still three infoboxes. -  ZLEA  T \ C 12:56, 4 May 2019 (UTC)
 * For your example of Los Angeles XXIII Olympiad commemorative coins I believe that Infobox coin is not the correct way to handle this. Instead this should be shown in a gallery with the caption of each image having the information of design, designer and date. The article can then use an infobox, either Infobox coin or some kind of Infobox coin set which has information about the set itself. This presents all information in a much more space-efficient way without hiding information in tabs. --Gonnym (talk) 13:19, 4 May 2019 (UTC)
 * I'm not really sure why Los Angeles XXIII Olympiad commemorative coins needs to have all those in the infobox - it would be much cleaner/easier to see if they were in a table (I was thinking image gallery but there's a fair amount of other info).
 * That being said, I agree with Izno in that it's not really ideal to be hiding/collapsing information like that in an infobox. Primefac (talk) 13:21, 4 May 2019 (UTC)