Template talk:Infobox/Archive 9

Archive 5Archive 7Archive 8Archive 9Archive 10Archive 11Archive 15

Caption

this is not an image
A caption
A caption
A caption

@Edokter and Redrose64: Is there a safe way to make these examples have the same spacing between the image and the caption? perhaps by using div instead of br for the caption? thank you. Frietjes (talk) 15:10, 2 May 2014 (UTC)

The <br /> can be safely removed. I did so in the sandbox. Please test. Edokter (talk) — 15:54, 2 May 2014 (UTC)
looks like that works, even in the case where the image field is abused to include non-images. thank you. can we sync the live module with the sandbox? Frietjes (talk) 16:26, 2 May 2014 (UTC)
Done! Plastikspork ―Œ(talk) 13:25, 3 May 2014 (UTC)

Capiunto discussion

Note: I've just started a new discussion on the village pump about possible features for Capiunto, the new Lua framework for writing infobox templates. If you're interested, the thread is located at Wikipedia:Village pump (technical)/Archive 127#Four-column infoboxes?Mr. Stradivarius ♪ talk ♪ 11:50, 2 June 2014 (UTC)

Add these to the image perimeter

Hi please could you this to image and image 1 and image 2 and image3

image1style Image2style image3style

So that it can change the background colour for the different images instead of having all the images having background colour. 5.66.153.135 (talk) 13:24, 2 June 2014 (UTC)

Not done: please make your requested changes to the template's sandbox first; see WP:TESTCASES. — {{U|Technical 13}} (etc) 14:03, 2 June 2014 (UTC)

Adding this template to other Wikis

I've been working on adding medical translations to a number of smaller Wikis. I'm not really sure what I've been doing wrong. Is there any simple way to add a large number of templates and modules to a wiki? Examples of articles with non-working infobox templates:

Really grateful for any help I can get, or just any tips on where to find help. -- CFCF (talk · contribs · email) 22:17, 16 June 2014 (UTC)

The normal way of adding multiple pages is by using Special:Import to import an XML file generated with Special:Export. However, you generally need to be an admin to use Special:Import. See mw:Manual:Importing XML dumps for the manual entry. In your first example, the module Module:HtmlBuilder isn't present on the wiki, and the infobox module generates an error when it doesn't find it. You can fix that error by copying the HtmlBuilder module across. For your second example, the wiki is missing the custom CSS that is defined in MediaWiki:Common.css. For now, the fix is to add the relevant CSS to the wiki's MediaWiki:Common.css, but again, this requires admin privileges. In the future individual templates may be able to define their own CSS rules, which will make this kind of thing much simpler, but currently the only choices are inline styling versus Common.css. See mw:Help:Cascading style sheets for general information about CSS in MediaWiki. Hope this helps. — Mr. Stradivarius ♪ talk ♪ 04:28, 17 June 2014 (UTC)
Thanks, that helps a whole lot. For the first one, as you say it present that script error. The problem is that I have imported ti:Module:HtmlBuilder, and I'm still getting the errors. Is there something else wrong? -- CFCF (talk · contribs · email) 07:46, 17 June 2014 (UTC)
Hadn't cleared the cache. -- CFCF (talk · contribs · email) 07:48, 17 June 2014 (UTC)

Add support for IDs

Please, add support for adding ids to rows, headers, labels and data fields. The change is implemented in sandbox (testcase "test_ids"). My particular use case is collapsing of fields using jquery.makeCollapsible as discussed here. — Dmitrij D. Czarkoff (talktrack) 07:32, 14 June 2014 (UTC)

Done. Sorry for the delay. — Mr. Stradivarius ♪ talk ♪ 23:28, 18 June 2014 (UTC)
Thanks! — Dmitrij D. Czarkoff (talktrack) 07:36, 19 June 2014 (UTC)
@Czarkoff: What happens if someone uses two instances of the same infobox on one page? Or the ID matches a section heading? OTOH, why not use parameter names as IDs, for every param? So that if, say, |website= exists, we can (with confidence) link to [[example#website]]? Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 12:32, 19 June 2014 (UTC)
As you may see from jquery.makeCollapsible, my particular problem would not be solved with your scheme for IDs. It is pretty easy to avoid ID collisions in infobox, but adding the checks to the module code will needlessly impact performance. FWIW setting IDs to parameter fields' names would increase the rate of ID collisions.
I never thought of several infoboxes on a page. This is a problem, and I'll work on solution. But I am pretty sure such solution does not belong to this template or lua module behind it.
Dmitrij D. Czarkoff (talktrack) 13:49, 19 June 2014 (UTC)
@Pigsonthewing and Codename Lisa: In Module:Infobox/sandbox I implemented a change that would effectively change IDs from "{{{typeid}}}" to "{{{typeid}}}-{{{name}}}". This means that IDs won't clash if |name= is specified. Does it look like solution to multiple infoboxes' ID clash problem? — Dmitrij D. Czarkoff (talktrack) 22:49, 23 June 2014 (UTC)
I don't know Lua. Just Pascal, Delphi, C#, VisualBasic and a little PowerShell. But your logic is sound.
Best regards,
Codename Lisa (talk) 22:58, 23 June 2014 (UTC)
I pinged you because it was your idea to use |name= for this purpose. — Dmitrij D. Czarkoff (talktrack) 23:06, 23 June 2014 (UTC)
Well, like I said, your logic is good. I'll keep track and will contribute whenever I can.
Best regards, Codename Lisa (talk) 23:47, 23 June 2014 (UTC)

Porting the module to other wikis

Is there an easy way to use this module on other wikis while keeping the localized parameter names and aliases which are already in use? If not, can this be implemented? Helder.wiki 21:43, 4 July 2014 (UTC)

Mr. Stradivarius‎ ^ Helder.wiki 23:02, 12 July 2014 (UTC)

Image margins left & right

When I add an image, it has left and right margins different (~2×2px more white) from other elements like header, label+data and datatable. What is the background for this, and can I undo/prevent that effect? Demo at User:DePiep/sandbox10 (this version). -DePiep (talk) 10:55, 12 July 2014 (UTC)

re you all: thx for checking. Will provide screenshot, but right now I have a slow browser - txt only. I promise a cache clean &tc. (For now, if this helps: the centered picture shows ~4px smaller that the headers. By "white" I meant to say bg-color, or transparent - usually white-ish). -DePiep (talk) 20:24, 12 July 2014 (UTC)
Wait a second: you are talking about margin with background color as elsewhere in infobox (simply difference in margins between image and other content) or padding around image that is of some different color? — Dmitrij D. Czarkoff (talktrack) 20:42, 12 July 2014 (UTC)
@DePiep: A screenshot with markup certainly helps. Best regards, Codename Lisa (talk) 20:44, 12 July 2014 (UTC)
re czarkoff: yes. The picture is smaller than the (colored) header bar, the rest is bg/transparent/white. As said, browser/connection is slow so I cannot provide printscreen now. (Ff atop WP:XP; can't even open Safari). -DePiep (talk) 21:19, 12 July 2014 (UTC)
  • Screenshot. Firefox atop WinXP. Safari atop WinXP shows the same. Did Wikipedia:Bypass your cache by ctrl+F5.
    -DePiep (talk) 22:35, 12 July 2014 (UTC)
Does this change do what you want? — Dmitrij D. Czarkoff (talktrack) 23:11, 12 July 2014 (UTC)
No it did not (did cache clean). And to be honest, this is not the route I'm looking for. I'm more interested in an explanation. Then a solution can follow. -DePiep (talk) 23:18, 12 July 2014 (UTC)
Explanation: the table which is infobox has "width:22em;" in its attribute "style", which is hardcoded in Module:Infobox. As your image is smaller then 22 em in width, it is padded with whitespace. Interestingly, when I set padding of the cell containing image to 0, the CSS values of table and this cell got into conflict, which was resolved by ignoring table width in WebKit and by ignoring padding in Firefox. — Dmitrij D. Czarkoff (talktrack) 23:56, 12 July 2014 (UTC)
Bravo! czarkoff! See User:DePiep/sandbox10 again: the 250px image width ~~ 22em ibox min-width (for me), then image = 350px solves it. Thanks, I'll use this. So: ínfobox has min-width of 22em'. -DePiep (talk) 00:18, 13 July 2014 (UTC)
It's a skin inconsistency. If you view in MonoBook, it lines up; in Vector, it doesn't. Makes no difference whether logged in or out, Firefox or Safari. --Redrose64 (talk) 10:25, 13 July 2014 (UTC)

Caption background

I was just reading Victoria (crater) and noticed that the background for the caption was white, which looks odd. I traced my way through {{MarsGeo-Crater}}, {{Infobox Mars crater}} and {{Infobox crater data}} to here and still can't fathom the problem. Can this be fixed? nagualdesign 18:22, 5 August 2014 (UTC)

@Nagualdesign: This edit should have fixed it. — Mr. Stradivarius ♪ talk ♪ 18:32, 5 August 2014 (UTC)
Well spotted! Thank you. Kind regards, nagualdesign 18:36, 5 August 2014 (UTC)

Italic title with parentheses

How can I pass |all=yes to the automatically transcluded {{Italic title}} template? I thought |italic title=all might work, but it doesn't seem to. This is needed for titles containing parentheses, for instance The Afterman (Live Edition), which is otherwise incorrectly italicised. Cheers,—Ketil Trout (<><!) 21:31, 22 October 2014 (UTC)

Could be a future option. For now, you can do is |italic title=no and pass the title with italics manually. -- [[User:Edokter]] {{talk}} 22:28, 22 October 2014 (UTC)

Articles which use infobox templates with no data rows

An issue came up at Wikipedia:Village pump (technical)/Archive 130#Category:Articles which use infobox templates with no data rows - how does an article get into this category? Many articles do nothing wrong but end up in Category:Articles which use infobox templates with no data rows because they use an infobox template which uses {{Infobox|child=yes|...}} with optional parameters passed on from the article. If the article doesn't use any of those parameters then the category can be added. It may be overly complicated for the infobox templates to check whether any relevant parameter is set before calling {{Infobox|child=yes|...}}, so maybe the category shouldn't be added for child=yes. PrimeHunter (talk) 11:03, 30 September 2014 (UTC)

Since Template:Infobox was Lua-ised, the previous limit of 99 data rows no longer applies. It was that limit which forced several of the more complicated infoboxes to use the "child" technique to gain 98 more rows. Perhaps those templates could be rewritten to use the significantly greater number of rows that are now permitted, so eliminating "child" usage. --Redrose64 (talk) 11:30, 30 September 2014 (UTC)
There is also a problem in that some templates use {{infobox}}, for example, {{external media}} and effectively don't declare themselves as Infoboxes through their name. I found an article that was in Category:Articles which use infobox templates with no data rows which used {{Infobox locomotive}} and {{external media}}, and spent ages trying to work out what was possibly wrong with the {{Infobox locomotive}} (until User:Redrose64 put me on the right track and I had a look at the source for {{external media}}). Robevans123 (talk) 13:51, 30 September 2014 (UTC)
I added a decat to {{external media}} and instead will track those through Category:Pages using the external media template with no first item to reduce some confusion. Frietjes (talk) 23:48, 22 October 2014 (UTC)

Title padding-below

I met two infoboxes that apply style="padding-bottom:0.2em" for the infobox title: {{infobox book}}, {{infobox element}} (this last one uses <sub> texts, see gold). Both mention "almost touching the border-top of the infobox" as argument. If this is a bad thing that is occurring with regular font, shouldn't it be set in the core by default? Or, was this chosen in the infobox-design, and does it say: not true, not needed, you're mistaking? -DePiep (talk) 06:49, 31 October 2014 (UTC)

Inline styles should generally be avoided, unless there are some real layout problems. That said, the infobox table caption has no associated styling, so it may be worth looking into. But having seen these infoboxes, I see no immediate need to include the padding inline; "almost touching the info box" tells me this is just a case of "I don't like it, let me change it to suit my taste." I say they can be safely removed. In the mean time, I'll investigate if table captions should have some default padding, just as table cells. -- [[User:Edokter]] {{talk}} 07:30, 31 October 2014 (UTC)

Protected edit request on 30 October 2014

Could someone replace the cellspacing attribute on the table with an appropriate CSS? The cellspacing attribute is obsolete and generates many errors, see validator and our talk on Village Pump. Rezonansowy (talk | contribs) 09:20, 30 October 2014 (UTC)

DoneMr. Stradivarius ♪ talk ♪ 21:58, 30 October 2014 (UTC)
Thanks! But there're still some obsolete atributes, including cellspacing. See the error list, thank you in advance! --Rezonansowy (talk | contribs) 10:00, 31 October 2014 (UTC)
Some were in Template:Testcases side by side which I've fixed. There's still some cellspacing/padding in Module:Sidebar, which someone should look at. -- WOSlinker (talk) 10:24, 31 October 2014 (UTC)
I made a new request on Module_talk:Sidebar#Template-protected_edit_request_on_31_October_2014. --Rezonansowy (talk | contribs) 21:18, 31 October 2014 (UTC)

subtitle

Can we implement a subtitle? Sometimes subheader would not be enough, especially when it should be a part of title. It would be useful in articles like Animal Farm, where book has a subtitle (which is also present as a subtitle on Wikidata):

Animal Farm
A Fairy Story

--Rezonansowy (talk | contribs) 20:38, 24 October 2014 (UTC)

That would be a question for Template talk:Infobox book, not here. Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 21:44, 24 October 2014 (UTC)
Rather not, because we need a separate metadata for this, keeping this in the same entry has no sense from the technical point, besides not only books have subtitles. --Rezonansowy (talk | contribs) 22:58, 24 October 2014 (UTC)
is there any way to do it without a <br> as the delimiter? Frietjes (talk) 23:56, 24 October 2014 (UTC)
If I'm correct, the question is to add a parameter (data element; full row) in the meta {{infobox}}. Possibly named |subtitle=. That would not require a delimiter. -DePiep (talk) 07:37, 25 October 2014 (UTC)
If {{Infobox book}} used |subheader = {{{subtitle|}}}, or {{Infobox book}} used |label1= Subtitle with {{Infobox book}} used |data1 = {{{subtitle|}}}, we'd have metadata separation without the need to change this parent template. Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 11:47, 25 October 2014 (UTC)
as pointed out, we already have |subheader= for putting a data row at the top, inside the box. there are ways to visually "fake" that this top header is outside the box using css, but it takes quite a bit of css. Frietjes (talk) 14:15, 25 October 2014 (UTC)
Could be useful in see Bagdad (splitting the local language data like that looks very bad to me). Of course, the meta {{infobox settlement}} could do this with |native_name=, (maybe by using <br/><span style="font-weight:normal;">{{{native_name}}}</span> in the title data), but that would introduce different infobox implementations (a diff between say {{infobox settlement}} and {{infobox country}}) for similar semantics 'subtitle'.
Maybe high-up infobox designers could help us out. To me, such an addition seems useful. -DePiep (talk) 07:37, 25 October 2014 (UTC)
We already have |subheading= for this purpose; see code samples, above. {{infobox settlement}} already has |native_name= (and |native_name_lang=), and Baghdad (note spelling) uses that. Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 11:47, 25 October 2014 (UTC)
|subheading= is not (a) |subtitle=. Exactly the Baghdad example shows that the purpose and the semantic is different, and the effect is --consitently-- wrong. (That is, the local name should not be separated by |settlement_type=Capital city). Frietjes already pointed out that we should not need a <br/> to create a subtitle, even requiring css in editors input (not meta). -DePiep (talk) 15:20, 25 October 2014 (UTC)
Nobody has argued that |subheading= is a |subtitle=; but it is a suitable place to put a subtitle. Your "the local name should not be separated" assertion is just that, and merely an opinion. Note that native names are also not subtitles. Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 19:01, 25 October 2014 (UTC)
You write: "but |subheading= is a suitable place to put a subtitle." - Not so, as in: the opposite is true. This way you are abusing their semantics, making them useless and resulting in an haphazard layout between infoboxes. Next, in "the local name should not be separated" you misquote me (any conclusion after that is idle). I wrote that it should not be separated by an unrelated subheader. And that would not be a personal opinion, but a sound requirement for a well designed metatemplate someone might want to create. -DePiep (talk) 20:00, 26 October 2014 (UTC)
"the local name should not be separated" was cut&paste from your post (emphasis added); a post in which the word "unrelated" does not appear. I may be idle [sic], but I'm not dishonest. Also, tone down your hyperbole. Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 17:25, 27 October 2014 (UTC)

Now implemented, as |subtitle= in {{infobox book}}. See Sex and Religion (book), for example. Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 12:03, 25 October 2014 (UTC)

you probably want |subheaderstyle=font-style:italic; or |subheaderstyle=font-style:italic; font-weight:bold; there. Frietjes (talk) 14:17, 25 October 2014 (UTC)

I removed a subheader from my example, subtitle is a small text under the title. --Rezonansowy (talk | contribs) 21:10, 25 October 2014 (UTC)

is there any way to do it without a <br> as the delimiter? Frietjes (talk) 15:02, 26 October 2014 (UTC)
We can use only one <caption> tag for it. If not <br>, we can use to <span> tags to get it done. --Rezonansowy (talk | contribs) 16:25, 26 October 2014 (UTC)
@Frietjes, Pigsonthewing, and DePiep: We should implement |subtitle= as a small text after <br>. Can we do this? --Rezonansowy (talk | contribs) 14:16, 27 October 2014 (UTC)
I don't see a need for it here since you can simply add it to {{Infobox book}} instead. Frietjes (talk) 14:30, 27 October 2014 (UTC)
Well, OK. --Rezonansowy (talk | contribs) 15:40, 27 October 2014 (UTC)
Likewise: there is no need for a |subtitle= here. Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 17:30, 27 October 2014 (UTC)

What a trainwreck this is now. (editconflict)

Animal Farm
AuthorGeorge Orwell
{{Infobox book}} (edit talk history links # /subpages /doc /doc edit /sbox /sbox diff /test) . For the record: in the end, these lines were added:
| subheader = {{{subtitle|}}}
| subheaderstyle = font-style:italic;
First, the edit history does not look like this has been fleshed out, not even by one single editor: [1]. A 32,500 transc'd template should not be edited sandbox-wise. Also, this edit was not an outcome of this thread.
Then, the new |subtitle= is actually fed to the {infobox} parameter |subheader=, while setting the |subheaderstyle= with it. This blocks any development of {i'box book} wrt subheaders (you can use |subheader(n)= in infoboxes). All this confirms my earlier note that the semantics of subtitle and subheader(n) are not the same, and that the meta {infobox} shows that (good, consistently).
Now look how the subtitle of a book is presented in todays infobox: inside the box, separated by the border?! Quite devastating to note: this is not an answer to the original post here by Rezonansowy.
Further, this will only invite editors of individual book pages to construct an ad hoc subtitle (likely in |title=, using <br> and what not).
I will revert those recent changes (for being without consensus, and probably without being a solution at all), and add a new proposal to the sandbox of {{infobox book}}.
Meanwhile, on this talkpage I support the original request as being sensible and to the point. @Frietjes and Pigsonthewing:-DePiep (talk) 15:52, 27 October 2014 (UTC)
This blocks nothing, and AFAICT, you are not in a position to issue decrees as to what should be done wrt sandboxes (at least, not without citing policies). As for your use of "devastating", I suggest a sense of proportion may be useful. You might also like to read WP:DNRNC. Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 17:21, 27 October 2014 (UTC)

Topic 'subtitle' restart

Topic restart after deviation into different page.
  • Topic split and continued for books only at Template talk:Infobox book#Subtitle. -DePiep (talk) 06:36, 31 October 2014 (UTC)
  • For {{Infobox}} in general, I repeat the original post question for {{Infobox}}: "add |subtitle= to {{Infobox}}". It has specific semantics, see also d:Property:P392 (subtitle of a work). Using |subheader= has drawbacks that is might separate title and subtitle (with |above=, with infobox border, by style diversion). Also, given that a subtitle can exist for meta-infoboxes (that use this meta-meta), omission can lead to wrong usage of generic infobox setup, to CSS constructions, or even per-article solutions. -DePiep (talk) 06:36, 31 October 2014 (UTC)
Taking this lead from wikidata, "subtitle" can be applied to "works". This would make the next infoboxes, and more, candidate for using it: {{infobox book}} (32k transc's), {{infobox film}} (92k), {{infobox album}} (128k); together 250+k potential places. None of these has a |subtitle= parameter. It makes one wonder how a subtitle is presented today in there; sure it is a per article solution (omitting, into title, elsewhere in the infobox). I am leaving out more arbitrary "subtitles" like nicknames for buildings or institutes. -DePiep (talk) 08:44, 3 November 2014 (UTC)
Can someone make a style proposal for this parameter? I'd say 1. it uses titlestyle, and maybe 2. it is in small(er) font-size.-DePiep (talk) 08:44, 3 November 2014 (UTC)

detecting parameter collisions

in the spirit of this tracking category, I propose adding a tracking category which will detect if both dataX/headerX are used or both labelX/headerX are used. comments? Frietjes (talk) 18:28, 2 November 2014 (UTC)

Good idea. I saw you fixed this at {{Infobox Seamount}} --- thanks for doing that! —hike395 (talk) 15:34, 3 November 2014 (UTC)

making title appear as if it were inside the box

Title outside
above
data1
Title inside
above
data1

I recall seeing a few difference infoboxes using css trick to make the title appear as if it were inside the infobox (User:RexxS may know where?). in any event, it might be useful to make this trick toggled by a parameter passed here, rather than having to remember to exact css. comments? Frietjes (talk) 18:35, 2 November 2014 (UTC)

You could just (ab)use the |above= parameter instead, as per documentation. -- [[User:Edokter]] {{talk}} 19:56, 2 November 2014 (UTC)
of course, not sure why someone thought the table caption was better (from an accessibility standpoint?). Frietjes (talk) 21:48, 2 November 2014 (UTC)
Yes, use of the table caption is for accessibility reasons - Wikipedia:Manual_of_Style/Accessibility#Tables. -- Netoholic @ 10:12, 3 November 2014 (UTC)
found one: Template:Infobox named horse. Frietjes (talk) 21:51, 2 November 2014 (UTC)
I think we can work this in. -- [[User:Edokter]] {{talk}} 22:50, 2 November 2014 (UTC)
great, what should we call the parameter to turn this on, or will it be a css class? found a couple more Template:Infobox horse breed and Template:Infobox racecourse. Frietjes (talk) 18:01, 3 November 2014 (UTC)
What is the background of this deviation? Why would we support it? -DePiep (talk) 18:44, 3 November 2014 (UTC)
probably something like editor A wants the title to be inside the box, and editor B objects to using |above= since it doesn't use the <caption>...</caption> for the table caption, so they compromise. perhaps there is something in the history of the templates I listed. not really sure. Frietjes (talk) 19:29, 3 November 2014 (UTC)
Probably a param that triggers a style. I never really got why the caption has always been unstyled. I guess it was an oversight. Even when unstyled, a (wikitable) caption should have the same metrics as all other cells. -- [[User:Edokter]] {{talk}} 20:13, 3 November 2014 (UTC)
The second demo provided here shows, to me, no difference between title and above. The above text would need a serious different styling to be dissociated. -DePiep (talk)
Hi. I am afraid I strongly oppose both the CSS hack and the idea to bring the title in. Being one of the top viewed web sites, many Wikipedia apps are developed to serve Wikipedia contents for various devices and environment (software and hardware). Hacks can break things.
As for in or out issue, it is both a matter of optional style and a color of the bike shed issue. Wasting server performance and development efforts on it is unwarranted. I myself prefer the title to be within the borders but upon encountering such issues my philosophy is: Get used to it! You won't know the difference after a while.
Best regards,
Codename Lisa (talk) 18:53, 3 November 2014 (UTC)
I concur. Including the "I don't like the title being outside, but I'll live with it". (Probably the horses-infoboxes editor met the same point, and solved it differently). That's better than introducing two styles. (it's three already: Flemington Racecourse). So far, I disagree with this idea as it introduces style deviations by personal preference only. -DePiep (talk) 21:55, 3 November 2014 (UTC)

Can I make unbolded text in the LH label?

In science, we can use unbolded text in the lefthand label text. For example: in the ammonia infobox (old wikitable style); constructed:

Std molar entropy So298 | 193 J·mol−1·K−1

It may look fine here, because {{Chembox}} is not in Lua module infobox yet there.

My question is: can lua Infobox deiver that option too? IMO, in science at least, it is useful. Infobox now:

Std molar entropy (So298) | 193 J·mol−1·K−1
Requested option:
Std molar entropy (So298) | 193 J·mol−1·K−1

The wikilink is not crucial. -DePiep (talk) 03:01, 29 September 2014 (UTC)

Yes. -- WOSlinker (talk) 15:09, 29 September 2014 (UTC)
Std molar entropy (So298)193 J·mol−1·K−1
Thanks. -DePiep (talk) 16:28, 29 September 2014 (UTC)
I note that the unbold text is small. That may be an undesired effect, especially when writing scientific symbols and detailed sup/sub scripts. -DePiep (talk) 23:03, 29 September 2014 (UTC)
If you don't want it to be small, just use <span></span> instead of <small></small>.--Dudemanfellabra (talk)
Std molar entropy (So298)193 J·mol−1·K−1
OK. (Hadn't even noticed). -DePiep (talk) 16:23, 30 September 2014 (UTC)
Same result but easier & cleaner: just use Template:Nobold. --PanchoS (talk) 17:03, 16 November 2014 (UTC)
Std molar entropy (So298)193 J·mol−1·K−1

Is it a design aim?

I notice that the background for a header is shorter than for a title, by about 3px each end. Is that supposed to be like that? As an aside, I have nested infoboxes with identical headerstyles, yet the inner box header background is a different colour. See Pacijan - the second Geography header has a different colour background. Have I blundered or what? Is it in fact possible to specify headerstyle by row? (Which would obviate the need for an inner box.) The documentation is a bit light on styles and class generally. --Unbuttered parsnip (talk) mytime= Thu 09:37, wikitime= 01:37, 20 November 2014 (UTC)

It's not a design aim to have mis-aligned headers; it's just the best we could do using tables. I plan to overhaul the CSS for infobox sometimes in the future. -- [[User:Edokter]] {{talk}} 08:28, 20 November 2014 (UTC)

Rendering issue

Chrome vs. Firefox Wikipedia rendering

Page-break doesn't work in Chrome. We had a little talk on it. Please consider fixing it. Regards, --Rezonansowy (talk | contribs) 22:16, 20 November 2014 (UTC)

I've been following that VPT thread from the start. I see no clear indication of a solution which will not break other uses. Therefore, Not done: please establish a consensus for this alteration before using the {{edit protected}} template. --Redrose64 (talk) 22:43, 20 November 2014 (UTC)
@Rezonansowy: You can follow up the village pump discussion. It is showing some huge progress. Fleet Command (talk) 04:13, 30 November 2014 (UTC)

Protected edit request on 5 December 2014

199.7.157.113 (talk) 15:06, 5 December 2014 (UTC)

The first few lines erroneously describe Hoffman as a " antisemite and a holocaust denier" and "conspiracy theorist"...these are subjective terms misapplied and are attributed to Jewish Zionist/Orthodox publications and authors whose credibility is very limited. So it would be correct to say "some say Hoffman is antisemitic"etc....the attribution of 'antisemitism' is wholly by Jewish organizations which is not a credible, subjective source for quite obvious reasons. But then, Wikipedia isn't considered so either by reputable academics in all areas...is that how Wiki wants to be seen? As a partisan for Jewish extremism? IF so, then by all means, carry on...but I will say this: its not in Jewish or anyone elses interest to be seen as extremist, criminal partisans..

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. --Redrose64 (talk) 15:16, 5 December 2014 (UTC)

Protected edit request on 12 January 2015

So this is for the module invoked by the template, not the template itself. The module's talk page redirects here though. It's also not the biggest deal...

The white space in the module still uses the old convention of 4 spaces per indent instead of tabs. Trimming it down to the current convention would save ~2kb and make future editing easier. In case someone is lazy, the entire source trimmed down to tabs is at https://en.wikipedia.org/w/index.php?title=Module:Infobox/sandbox&oldid=642187600 moluɐɯ 18:35, 12 January 2015 (UTC)

Not done: It wouldn't save a single byte. The previous version would still be on the servers, so the space occupied by this module would increase by the size of Special:Permalink/642187600, which is 11,234 bytes. --Redrose64 (talk) 19:40, 12 January 2015 (UTC)
The entire history of the module isn't loaded by pages, only the current revision... moluɐɯ 19:58, 12 January 2015 (UTC)
If you're thinking of the page that is served to your browser, that doesn't get any of the module - it's parsed right through to HTML before being served. --Redrose64 (talk) 20:07, 12 January 2015 (UTC)
Not what I meant. Only the current code of the module needs to be run, not the entire history. moluɐɯ 20:19, 12 January 2015 (UTC)
Yes, but the module is parsed on the servers, and converted to HTML there, so the use of tabs instead of spaces will not make any difference to the HTML that is served to the client browser. --Redrose64 (talk) 21:01, 12 January 2015 (UTC)

Protected edit request on 30 October 2014 (2)

The change made by Mr. Stradivarius to upgrade to mw.html is great, but it broke a hack that has been used to get individual rowstyles by overloading the rowclass parameter. luckily, these hacks have been tracked since they use the {{rowstyle}} template. to fix the issue, please make this change. note that the sandbox also has cellspacing=3 removed, which answers the edit request above as well. thank you. Frietjes (talk) 16:14, 30 October 2014 (UTC)

update, I have now switched all the uses of the now broken {{rowstyle}} to use a slightly less elegant method with zero-padding and divs. the complete list of templates which were using this hack, and could benefit from rowstyles: Template:Infobox baseball biography, Template:Infobox MLB player, Template:Infobox nerve, Template:Infobox bone, Template:Infobox anatomy,Template:Infobox vein, Template:Infobox ligament, Template:Infobox artery, Template:Infobox muscle, and Template:Ordination. other templates which are not using {{infobox}} due to the lack of rowstyles include: Template:Infobox artist discography and Template:Infobox musician awards. Frietjes (talk) 17:15, 30 October 2014 (UTC)
DoneMr. Stradivarius ♪ talk ♪ 21:59, 30 October 2014 (UTC)
thank you Mr. Stradivarius. could you add one more here (see this test case). Frietjes (talk) 22:02, 31 October 2014 (UTC)
Ok, Done. — Mr. Stradivarius ♪ talk ♪ 01:33, 1 November 2014 (UTC)
@Frietjes: I notice that the rowstyle(n) parameter is not yet documented. Is it being used in any of the templates listed above yet? Have labelstyle(n) and datastyle(n) parameters been considered? — Martin (MSGJ · talk) 22:05, 21 January 2015 (UTC)

Whitespace on top

To my eye, this seems a bit odd. See the top of page samarium with its infobox. The whitespace diff above the lede text vs. above the infobox title do not seem to be the same. The top lines are invisible, but it looks as thought they are different. I'd expect the same top-line-of-whatever. -DePiep (talk) 22:46, 6 February 2015 (UTC)

DePiep, was caused by this change by User:Edokter. I believe the intent was to increase the spacing at the bottom of the title. if so, this could be addressed by changing the 'padding:0.2em' to 'padding-bottom:0.2em' in common.css. Frietjes (talk) 16:01, 7 February 2015 (UTC)
Not just the bottom; the intent was to make the table caption metric-compatible with all other table cells. I notice the infobox has a top margin which could be decreased or removed. -- [[User:Edokter]] {{talk}} 16:27, 7 February 2015 (UTC)
That would be an "and also change margin-top", then? Since the box does not have a visible border-top, the title is in "open" article-body space. To the eye, it is outside of the box. Then text-handling design should have the lead in this (not infobox-rectangles), especially vertical whitespace in typography (still did not find the right Category:Typography word for this. Top-of-X-line?). -DePiep (talk) 21:06, 7 February 2015 (UTC)
Just relized not every infobox has a caption, and without a top-margin, the infobox will stick to amboxes. Since the the 0.2em added padding usually results in 1 or 2 pixels of space, is this really an issue? -- [[User:Edokter]] {{talk}} 11:54, 9 February 2015 (UTC)
The issue is typographic: the eye sees the 'just 1 or 2px' step (stairs) that appears between LH lede and RH infobox title (eg. in the 'top of X line'). Of course we don't want glued boxes. DePiep (talk) 20:26, 10 February 2015 (UTC)

Protected edit request on 7 February 2015

either change

        if args.child == 'yes' and args.title then

to

        if args.child == 'yes' and mw.title.getCurrentTitle().namespace == 0 and args.title then

or change

        root:wikitext('[[Category:Articles which use embedded infobox templates with the title parameter]]')

to

        root:wikitext('[[Category:Pages which use embedded infobox templates with the title parameter]]')

in other words, either restrict the tracking to articles only, or change the name of the category to indicate its more than just articles. Frietjes (talk) 15:55, 7 February 2015 (UTC)

That's Category:Articles which use embedded infobox templates with the title parameter (0 C, 28 P)
or Category:Pages which use embedded infobox templates with the title parameter (redlink)
then.
I support the change, for catname=consistency logic. And "mainspace only" is the general rule, unless explicitly rejected (not here). -DePiep (talk)
I'd rather see the second change made, Jackmcbarn (talk) 04:27, 8 February 2015 (UTC)
Done I've made the second change. — Mr. Stradivarius ♪ talk ♪ 00:07, 12 February 2015 (UTC)

Embedding

I wasted time following the instructions in the "Embedding" section only to discover later that Template:Infobox NRHP has its own "embed" field that does a much better job at what I was trying to do. How widespread is the "embed" field? Would it make sense to mention in the "Embedding" doc that some templates know how to embed themselves, and to check the embedded template doc first? Kendall-K1 (talk) 13:19, 21 March 2015 (UTC)

Protected edit request on 6 April 2015

The info box should be updated to include information that the Museum is temporarily closed. "The Museum galleries are temporarily closed due to ongoing construction. They will reopen in July 2015." http://museumoffloridahistory.com/renovations.cfm Seanpet (talk) 12:45, 6 April 2015 (UTC)

@Seanpet: it looks like you want a specific article's infobox updated. This talk page is for the infobox meta-template used by {{infobox museum}}. You should direct your request to the talk page of the article, Talk:Museum of Florida History, assuming that you are unable to edit that article directly. Imzadi 1979  13:06, 6 April 2015 (UTC)

I've made some changes in the sandbox, so that the navbar is called directly from the module rather than via the template (as per the method used by Module:Navbox). See the diff for details. Does anyone have any comments? If not then I'll deploy the change to live. -- WOSlinker (talk) 11:59, 15 April 2015 (UTC)

Sounds like a very good idea. You also reminded me that I rewrote the module so that we didn't need the preprocessArgs hacks, so I merged your changes with mine in the sandbox. My changes are a lot more extensive than yours, though, so they could probably do with some review. I changed the args table so that when you index it, rather than getting the expanded argument straight away, you get a callback function. This means that we can wait until the very last minute to expand the argument; and in turn, that means that we can generate the rows by running a loop in which we run the row-generating code, find out whether we generated any content, and stop looping if we didn't. In practice there are sometimes gaps between numbered rows, so I set the module to stop looping when 10 sequential rows don't generate any content. (And I set it to 2 sequential rows for subheaders, and 3 for images.) — Mr. Stradivarius ♪ talk ♪ 12:41, 15 April 2015 (UTC)
Oh yes, and I added a config module at Module:Infobox/config so it's easier to translate the categories, etc. — Mr. Stradivarius ♪ talk ♪ 12:44, 15 April 2015 (UTC)
@Mr. Stradivarius: The sandbox version is not working when there is a big gap in the data values but there isn't in the label values. An example below. -- WOSlinker (talk) 12:52, 15 April 2015 (UTC)
Test
Born
Test
Test (sandbox)
Born
Test
Hmm, good point. Let's shelve my changes for the moment, then. To get the loop right we'd need to expand the label parameters, but the whole point of delaying argument expansion is so that we don't expand label parameters when the data parameters don't contain any content. Perhaps we could differentiate between blank data parameters and missing data parameters, but that will require some more thought. Let's make the easier change first. — Mr. Stradivarius ♪ talk ♪ 13:05, 15 April 2015 (UTC)