![]() | This is an archive of past discussions. Do not edit the contents of this page. If you wish to start a new discussion or revive an old one, please do so on the current talk page. |
Archive 1 | Archive 2 | Archive 3 | Archive 4 | Archive 5 |
In one of his edit summaries, Netoholic stated that this was "Infobox 101" and that conditionals are therefore not appropriate for inclusion here. Well, if that's the case, how about "Infobox 201"? How about if I make Template:Infobox Conditionals, which includes current best practice for empty field hiding, and then include a HTML comment in Template:Infobox stating where to look for information on this? I would just go ahead and do it, but someone protected the page again. Crotalus horridus (TALK • CONTRIBS) 18:19, 4 February 2006 (UTC)
Not sure if this is on-topic but I tried to use Template:Infobox on another wiki and it doesn't work at all. I copied over some of the supporting templates as well. Could I trouble anybody to tell me what I've done wrong? See it here... Takipedia:Template:Infobox. Thanks, The Crow 17:11, 18 February 2006 (UTC)
I tried pasting the code into my own wiki here, but the borders and background aren't showing up right. I dug into the page here and found that it was calling the infobox style class, which mysteriously is not in the commonPrint.css stylesheet. Anyway, I found the style definitions on Mediawiki and pasted them into the commonPrint.css stylesheet on my own site, but it's still not working. The only difference I'm noticing is that the wikipedia pages are calling commonPrint.css?11, while mine is calling commonPrint.css?9. Is this the problem? If so, how do I change that? If not...? thanks, matt
Okay, I tried using these on mine too, but Template:Qif is pretty much not used anymore, so I'm even more lost. And I can't seem to swipe the css pages without being labeled a link spammer for some reason. Sana Jisushi 05:25, 15 January 2007 (UTC)
I have protected this page until an actual compromise can be reached so the edit warring can stop. Please talk nicely among yourselves to work something out. JtkieferT | C | @ ---- 08:29, 19 February 2006 (UTC)
As stated well above, the compromise was to move the complex code to Template:Infobox Conditionals. I see absolutely no reason for us to abandon that. -- Netoholic @ 08:37, 19 February 2006 (UTC)
Editors of Saint Louis, Missouri would like to use Template:Quotebox to place directly under Template:Infobox City, and I've tried several ways to accomplish this, to no avail. How is it done (if it is possible)? Alternatively, it could be placed inside city infobox, but I'm not sure that is possible or desirable, or how to do it, if it is. Evolauxia 09:30, 26 February 2006 (UTC)
If there are no objections I will unprotect this page so that it may be converted to the new 'built in' m:ParserFunctions method of performing conditionals. I think at that point we can also delete Template:Infobox Conditionals as redundant. --CBDunkerson 22:19, 17 April 2006 (UTC)
Template:Infobox Conditionals has been nominated for deletion. You are invited to comment on the discussion at the template's entry on the Templates for Deletion page. Thank you. --Marknew 08:53, 21 April 2006 (UTC)
I restored protection on the page because there is apparently still a dispute about what it should contain. Let's see what the general consensus of opinions is. --CBDunkerson 20:24, 21 April 2006 (UTC)
Please state your preference:
#if
at a minimum, otherwise we'll end up with stuff like the Mtnbox series of templates (see WP:MFD/QIF). —Locke Cole • t • c 21:42, 21 April 2006 (UTC)I want to add an "alt text" parameter for infobox images, but I'm not sure of the syntax. Is
{{{image|[[Image:IIH.png|200px|{{#if: {{{alt text|}}} | {{{alt text}}} | {{#if: {{{caption|}}} | {{{caption}}} | {{PAGENAME}} }} }}]]}}}
going to do it? I want it to use the "alt text" if specified, failing that the "caption", failing that the article name. (In most cases, there is no reason for the image to have a caption, or any alt text beyond the article name.)
I hope this is the right place to put this. I have a wiki and I tried to add the infbox, but this is what happens when I try? http://www.akussapedia.com/index.php?title=Template:Infobox Could someone please tell me what I'm doing wrong? Thanx a bunch!
There have been many issues with the generic format of a title outside the actual infobox, both in terms of styling and, more importantly, readability. Many browsers (including mine) have a tendency to allow the infobox to overlap the title, in particular when the title wraps onto a second line or is in a larger font. Due to the relatively widespread nature of this issue, many individual infoboxes have made a simple change to the script so that the title is incorporated within the infobox itself. There are hundreds of examples, but {{infobox Country}}, {{Infobox City}}, {{Infobox band}} spring to mind. When incorporated into the infobox as in these examples, the wrap/overlap issue ceases to be a problem.
To cut a long story short, I would like to suggest implementing this minor edit in this, the root infobox template, so that there can be a standard that definitely renders correctly for all Wikipedia users. Bearing in mind, of course, that this is not actually changing anything of substance, but using a simple solution to solve a fairly widespread problem.
Basically, in standardisation with the above and tonnes of other infobox templates (that have reliable viewing properties!), I'd suggest the following opening lines of script, to produce the below:
{| class="infobox bordered" style="width: 25em; text-align: left; font-size: 90%;" |- | colspan="2" style="text-align:center; font-size: larger;" | <big>'''{{{name}}}'''</big> |- | colspan="2" style="text-align:center;" | [[Image:{{{image}}}|300px| ]]<br>{{{caption}}} |- ! Data 1: | {{{data1}}} |- ...
{{{name}}} | |
[[Image:{{{image}}}|300px| ]] {{{caption}}} | |
Data 1: | {{{data1}}} |
---|---|
Data 2: | this text displayed if data2 not defined |
Data 3 (data hidden if data3 empty or not defined): | |
Given its implementation in many templates, it already has some degree of support, but in order to tackle this issue properly it should really be tackled from the top downward. DJR (T) 00:08, 24 September 2006 (UTC)
The infoboxes aren't showing up correctly in opera, since a couple of hours ago. Maybe it's just my computer, but if someone could check this out, I'd appreciate it. - Peregrinefisher 22:39, 19 October 2006 (UTC)
So the second or third info box up there shows Data 1: in a huge collumn and the smaller Data1 in a small collumn. Is there anyway to get each the collumns at 50%? Danielfolsom 03:02, 2 January 2007 (UTC)
{{editprotected}} Dear administrator, please add the following interwiki:
[[ia:Patrono:Infobox]]
Thank you in advance, Julian Mendez 08:48, 10 January 2007 (UTC)
Also this one,
[[zh-yue:Template:明細]]
Thanks a lot. — HenryLi (Talk) 16:23, 9 February 2007 (UTC)
As used in this edit, this template has the necessary decimal values for longitude and latitude, with a negative number for the Westing, as required by the Geo microformat. How could the relevant mark-up (which I'd be happy to describe) be added? Andy Mabbett 18:20, 15 March 2007 (UTC)
{{editprotected}} Could an admin fix this? The example code in the Template:Infobox#Usage section does not incorporate the changes as described in the titling section of this discussion above. Threephi 12:57, 26 March 2007 (UTC)
The purpose is ease-of-use. This being the root example of 'infobox' and not necessarily intended for direct use in a page, many will visit this template seeking example code on which to base their own original infobox. The full source includes many non-code elements. Therefore having the useful code readily accessible and accurate in a Usage section is a critical part of the purpose of this template. I would think that 'nightmare' is a bit of an exaggeration; all that is needed is a bit of maintenance when the code itself changes, which as the page history shows, isn't that frequently. --Threephi 19:08, 29 March 2007 (UTC)
Agreed, it's not that difficult, but this template might very well be one of the first if not the very first that a new editor tries to copy. If I take your meaning right, you are arguing for 1) removal of the usage section entirely, or 2) deletion of this template. Both are valid subjects for discussion although I disagree on both counts. --Threephi 02:36, 30 March 2007 (UTC)
if we are running our own wikimedia wiki, can we use the code for the the infobox on our wiki? —The preceding unsigned comment was added by 59.101.224.204 (talk) 08:49, 2 April 2007 (UTC).
Could we add a top margin in the style, in order to keep infoboxes from interfering with disambig notices and other templates? Such as in Ottawa. I've tried a trial implementation in Template:Infobox comic strip; which has fixed the look of articles like Garfield. - RoyBoy 800 02:47, 2 May 2007 (UTC)
Does anyone know if there is movement anywhere in the Wikimedia world to move to Tableless web design?Vagary 02:20, 24 May 2007 (UTC)
How would an infobox be used on another wikimedia? I tryed just using this, but it isn't formatted correctly. I think it probably has to do with the part about "class="infobox bordered"" --209.159.98.1 19:43, 5 June 2007 (UTC)
I'll second this! Trying to use this on my new mediawiki site as well, and the formatting isn't correct. Do I need to include the "infobox" class somehow? Can someone point me in the right direction? Thanks! -- 216.99.65.63 13:52, 18 June 2007 (UTC)
See MediaWiki:Common.css. You will have a similar CSS on your own wiki. You can copy and paste parts (or all) of that to yours. That should make your infoboxes pop up as you want. Be sure to shift+refresh your pages after updating that CSS (otherwise your browser will use its cached version). --TedPavlic 15:11, 9 August 2007 (UTC)
So what exactly do you have to do? I've installed MediaWiki:Common.css and installed the ParserFunctions extension and it still doesn't work.. any other extensions? —Preceding unsigned comment added by 124.170.201.212 (talk) 07:19, 6 October 2007 (UTC)
I have suggested adding vertical padding to Template:Infobox Person. Please comment at Template talk:Infobox Person, as this may later be extended to other infoboxes. Superm401 - Talk 05:55, 24 December 2007 (UTC)
Please respond at Template talk:Infobox Indian Political Party. --Soman (talk) 16:14, 1 January 2008 (UTC)
There's been some discussion on the enwiki mailing list about creating a standardized meta-template for infobox creation, in the same general manner as is done with navboxes by {{navbox}}. This template title would seem to be the perfect one to use, and I note that this template is not currently used for much - the few places that do transclude it appear to be transcluding it in error. So, I've whipped up a basic meta-template to replace it with that can be found here: User:Bryan Derksen/Template sandbox. If there are no objections I'll clean up the erroneous transclusions of this template, archive the talk page, and move over the new code for use and further development. Bryan Derksen (talk) 22:33, 22 January 2008 (UTC)
There. I've only put in a maximum of 20 rows at the moment, but since infoboxes often have more rows than that I'll add more later. I just figured I should start out small to make it easier to fine-tune the formatting and styling and such. I'm field-testing the template at Template:Infobox crater data. Bryan Derksen (talk) 20:15, 23 January 2008 (UTC)
I've seen view/talk/edit navbars a million times on other templates, and I understand that they mean v/t/e the template, but my expectation on seeing the new {{Infobox software license}}atBSD licenses was that clicking on "edit" would open up the article's infobox for editting, just like clicking on a section's "[edit]" link. In fact, I pressed it to make a change and was surprised when the source for {{Infobox software license}} appeared! I think the difference from other v/t/e templates is that in the case of an infobox, the "content" is in the article, not in the template. I know we can't make the v/t/e links open up the infobox as defined in the article, so I think the navbar should be removed. RossPatterson (talk) 14:43, 8 March 2008 (UTC)
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. | |
|
Okay, I've made the tnavbar optional. Simply omit the "name" parameter and it won't be displayed. That means all the existing infoboxes will still have it, since the name parameter was mandatory until this point, but if you've got an infobox you want to take it off of just remove the parameter. Bryan Derksen (talk) 20:00, 16 March 2008 (UTC)
{{editprotected}}
This template looks like a boon. Nice work! Just one request, though. The "labels" on virtually all the already-existing infoboxes I've seen so far appear to use background:transparent rather than {{Infobox}}'s current default background:#ddf, so it would seem to make sense to set that default to background:transparent as well. Sardanaphalus (talk) 11:06, 19 March 2008 (UTC)
I've put out a request for more input at Template talk:Navbox, Wikipedia talk:WikiProject Infoboxes and Wikipedia talk:Manual of Style (infoboxes). I tried to make my requests non-biased-sounding, and if anyone knows of good hangouts for template-editors and infobox-editors who might be interested in participating by all means invite more in. Bryan Derksen (talk) 16:58, 1 April 2008 (UTC)
{{editprotected}}
Another request: Please add itemstyle and itemN as alternatives to labelstyle and labelN as I reckon they can be thought of as either. Thanks. Sardanaphalus (talk) 22:52, 20 March 2008 (UTC)
{{editprotected}}
Would it be sufficiently straightforward/worthwhile to amend the template to accommodate a coloration scheme such as here? (Reminds me of the Navbox oddstyle and evenstyle.) Sardanaphalus (talk) 03:22, 21 March 2008 (UTC)
:D
) unless you can say exactly what needs to be changed! Happy‑melon 22:23, 22 March 2008 (UTC)
{{editprotected}}
Hi. I've converted a template to {{Infobox}} but it has (wait for it) 55 possible label-data entries, so would someone with access to the code please increase the number of available of label-data entries from 40 to (say) 60. Thanks. Sardanaphalus (talk) 00:50, 26 March 2008 (UTC)
I spoke too soon. I'm now working a merged version of two templates (Template:Infobox Airliner accident and Template:Infobox Mid-air accident) that is going to need at least 67 label-data entries. Would pushing the number implemented here to 75 or 80 be too high? Sardanaphalus (talk) 12:25, 26 March 2008 (UTC)
{{editprotected}}
Tidied the whitespace up a bit and dropped some excessive styles (such as some hard-coded italic). This code is basically the same as is used in {{infobox Game}}, {{infobox computer}} and most other infoboxen I've worked on.
This drops the hard-coded blue fields and some other unnecessary styling.
Copied here for a quick visual. The code is available at User:Thumperward/infobox.
<table class="infobox {{{bodyclass|}}}" cellspacing="5" style="width:21em; text-align: left; font-size: 90%; {{{bodystyle|}}}"> <!-- Caption--> {{#if:{{{title|}}}| <caption class="{{{titleclass|}}}" style="font-size: 130%; font-weight: bold; {{{titlestyle|}}}">{{{title}}}</caption>}} <!-- Header--> {{#if:{{{above|}}}| <tr><td colspan="2" class="{{{aboveclass|}}}" style="text-align:center; font-size: 130%; font-weight: bold; {{{abovestyle|}}}"> {{{above}}} </td></tr> }} <!-- Image--> {{#if:{{{image|}}}| <tr><td colspan="2" style="text-align:center; {{{imagestyle|}}}"> {{{image}}} {{#if:{{{caption|}}}|<br /> <span style="{{{captionstyle|}}}">{{{caption}}} }}</span> </td></tr> }} <!-- Row 1--> {{#if:{{{header1|}}}| <tr><th colspan="2" style="text-align:center; {{{headerstyle|}}}">{{{header1|}}}</th></tr> | {{#if:{{{label1|}}}|{{#if:{{{data1|}}}| <tr> <th style="{{{labelstyle|}}}">{{{label1|}}}</th> <td class="{{{class1|}}}" style="{{{datastyle|}}}">{{{data1|}}}</td> </tr> }} | {{#if:{{{data1|}}}| <tr><td colspan="2" class="{{{class1|}}}" style="text-align:center; {{{datastyle|}}}">{{{data1|}}}</td></tr> }} }} }}
Repeat the code under Row 1 for another eighty or so rows...
<!-- Row 80--> {{#if:{{{header80|}}}| <tr><th colspan="2" style="text-align:center; {{{headerstyle|}}}">{{{header80|}}}</th></tr> | {{#if:{{{label80|}}}|{{#if:{{{data80|}}}| <tr> <th style="{{{labelstyle|}}}">{{{label80|}}}</th> <td class="{{{class80|}}}" style="{{{datastyle|}}}">{{{data80|}}}</td> </tr> }}| {{#if:{{{data80|}}}| <tr><td colspan="2" class="{{{class80|}}}" style="text-align:center; {{{datastyle|}}}">{{{data80|}}}</td></tr> }} }} }} {{#if:{{{below|}}}| <tr><td colspan="2" style="text-align:center; font-size:small; {{{belowstyle|}}}">{{{below|}}}</td></tr> }} <!-- Tnavbar--> {{#if:{{{name|}}}| <tr><td style="text-align:right;" colspan="2">{{Tnavbar|{{{name}}}}}</td></tr> }} </table><noinclude>{{documentation}}<!-- Add categories and interwikis to the /doc subpage, not here! --></noinclude>
There are no semantic changes to the old code, just some style tweaks and addition of whitespace to make it easier to read. Chris Cunningham (not at work) - talk 21:17, 31 March 2008 (UTC)
background:#ccf
from every single row. If individual projects want to add a colour (like WikiProject Comics) then they need only add one attribute to their own templates (and indeed have already done so). Meanwhile, it means that projects which don't want the colour don't need to go overriding it. As for consistency, I'd argue that infoboxen have, over time, been moving to using less colour and that lots of high-profile ones have already phased it out. Chris Cunningham (not at work) - talk 00:15, 1 April 2008 (UTC)I just took a close look at this new meta-template. I was surprised when the docs said: "When a header is defined on the same row as a data cell the header takes precedence." From what I see in the current code that means that if a header is input for a row then the label and data is not shown. I find that counter intuitive. I was expecting to be able to specify header1, label1 and data1 at the same time, and thus see header1 above label1+data1.
All we have to do to make that happen is to disconnect the #if statement for the header. That is, put the label and data stuff after it, instead of inside it. Like this:
{{#if:{{{header1|}}} | <tr><th colspan="2" style="text-align:center; {{{headerstyle|}}}">{{{header1|}}}</th></tr> }}{{#if:{{{label1|}}} | {{#if:{{{data1|}}} | <tr><th style="{{{labelstyle|}}}">{{{label1|}}}</th><td class="{{{class1|}}}" style="{{{datastyle|}}}">{{{data1|}}}</td></tr> }} | {{#if:{{{data1|}}} | <tr><td colspan="2" class="{{{class1|}}}" style="text-align:center; {{{datastyle|}}}">{{{data1|}}}</td></tr> }} }}
--David Göthberg (talk) 01:02, 3 April 2008 (UTC)
So, what does everyone else think? There are starting to be a fair number of people who are using this template, so if the current arrangement is unintuitive by all means toss in your !vote. I'm probably too close to the design myself to be certain about what "makes sense" in general usage so I welcome third-party input like this (plus, I'm not the template's guardian monster so I shouldn't say "third-party" there :). I just inadvertently hid a data row with a header myself while doing an infobox conversion so I'm open to being swayed. Bryan Derksen (talk) 19:17, 9 April 2008 (UTC)
Someone please point out why the caption in the Infobox-based template below isn't wrapping. I'm guessing it's something I'm overlooking, but can't see what.
[defunct link removed]
Thanks. Sardanaphalus (talk) 22:36, 4 April 2008 (UTC)
bodystyle
parameter had some trailing syntax cruft, presumably from your copy-paste. I've fixed it in your sandboxed template. For what it's worth, you'd have a much easier time if you weren't micro-managing the template style by overriding things everywhere. The simpler the markup, the easier it is to debug (and work on in the future), and the more consistent infoboxen are across Wikipedia. Ditto with the unnecessary font size overrides. Chris Cunningham (not at work) - talk 22:56, 4 April 2008 (UTC)I just noticed that the font-size set for the .infobox class has discrepancies between at least IE and Firefox. See the screenshots to the right. The cause is that the font-size has been set to 90% in common.css; a value that dangles between two rendition the two browssers, who obviously have a slightly different base font-size. I want to get rid of this dicrepancy by adjusting it to a value that produces the same font-size. However, I would need to know what the intended font-size was to begin with; the small (Firefox) or the bigger (IE) rendition.
For comparison, .navbox has a base font-size of 88%, which renders the small font on both IE and Firefox. And for reference, see User:Edokter/fonttest to see how the different sizes render in your browser (play with your browser's font-size). — Edokter • Talk • 14:35, 12 April 2008 (UTC)
Hi again. In the opposite, how do I (1) prevent the gap between "{{Infobox}} 1" and the start of Infobox 2, (2) remove the padding/margin to the left of Infobox 2?
{{Infobox}} 1 | |||
|
|data1 = {{Infobox}} 1 |data2 = {{Infobox |bodystyle = font-size:100%; |data1 = {{Infobox}} 2 }} }}
Thanks. Sardanaphalus (talk) 14:33, 17 April 2008 (UTC)
margin:0;
to the 2nd infobox's bodystyle.{{Infobox}} 1 | |||
|
|data1 = {{Infobox}} 1 |data2 = {{Infobox |bodystyle = font-size:100%; margin:0; |data1 = {{Infobox}} 2 }} }}
system provides uniformity and makes infobox creation easier, but is it necessary for all infoboxes, and does it make the big picture overly-complex? !! time= 23:38, 19 April 2008 (UTC) }} Regarding this conversion to use Template:infobox, and the over all purpose of this template, I don't see the point. Doesn't this make it harder to edit the infobox, with out any real benefit? It would be far easier to just use normal wikitable syntax and follow some kind of guideline for helping to standardize the template. And if anyone is wondering, I feel the same way about {{Navbox}}, though I think the argument is stronger for infoboxes. -- Ned Scott 05:48, 18 April 2008 (UTC)
{{!}}s, {{!}}-s, {{#if:}}s, etc
are gone. Ditto {{Navbox}} (and variants) with navboxes. So, more a case of {{Infobox}} (and {{Navbox}}es) MakingISS. Sardanaphalus (talk) 07:04, 19 April 2008 (UTC)Ned, I've noticed that you've been going around and reverting templates away from using {{infobox}} without any explanation in either talk pages or edit summaries, and for no readily apparent reasons. I count 28 of these on April 19 alone. This strikes me as being just as disruptive as trying to force {{infobox}} on a template that it can't handle in the first place, something I've avoided doing. Could you at least raise specific objections when you do something like that? I see no reason not to simply roll back such unexplained reversions. Bryan Derksen (talk) 18:58, 20 April 2008 (UTC)
This is an interesting idea, but of course not one that should be rolled out over all infobox templates. Many infobox templates are quite simple in terms of layout, containing a simple 2-column table and maybe an image (eg. Infobox Film) so I can see no problem there, but for more complicated ones that are under constant development (eg. {{Infobox Settlement}}) I would be against such a change since its content is far more complex than this setup can allow in a manageable way. 52 Pickup (deal) 11:48, 23 April 2008 (UTC)
I think the very simple ones should be left alone (no parsers, etc), but we should definitely strive for some visual consistency. I guess it does make sense for templates like the Film one to be converted, because they're far from simple, but at the same time they're protected. I guess I can't say I have a strong opinion on those ones like I did before, having thought more about it (being, ones that are complex, but protected). This does seem to be a very nice tool for making and maintaining infoboxes, and there probably won't be much of an issue. -- Ned Scott 06:10, 24 April 2008 (UTC)
{{editprotected}}
So{{infobox software}} has both the logo and screenshot attributes. Can we get image1/caption1 etc. to accommodate this? Cheers. Chris Cunningham (not at work) - talk 17:51, 22 April 2008 (UTC)
-->{{#if:{{{image|}}}|<tr><td colspan="2" style="text-align:center; {{{imagestyle|}}}"> {{{image}}} {{#if:{{{caption|}}}|<br> <span style="{{{captionstyle|}}}">{{{caption}}} }}</span></td></tr>}}<!--
-->{{#if:{{{image1|}}}|<tr><td colspan="2" style="text-align:center; {{{imagestyle|}}}"> {{{image1}}} {{#if:{{{caption1|}}}|<br> <span style="{{{captionstyle|}}}">{{{caption1}}} }}</span></td></tr>}}<!-- -->{{#if:{{{image2|}}}|<tr><td colspan="2" style="text-align:center; {{{imagestyle|}}}"> {{{image2}}} {{#if:{{{caption2|}}}|<br> <span style="{{{captionstyle|}}}">{{{caption2}}} }}</span></td></tr>}}<!--
image = [[Image:]]<br>[[Image:]]
, especially if you don't need the extra captions. That could be done in the templates to be convereted, so I don't really see the need to add extra parameters in this template when it isn't used that often. — Edokter • Talk • 22:04, 22 April 2008 (UTC)data1= [[Image:blah.jpg]]<br>Caption text
to add another centered image. Bryan Derksen (talk) 18:12, 2 May 2008 (UTC)The current infobox template does not pass on image caption to the image tags themselves. Meaning that if you put your mouse over the image of Albert Einstein in his article, instead of display the caption from the TITLE field of the image, it says the filename. More seriously, as a result of this, the ALT tag of the images displayed through this template is blank—both incorrect by web standards as well as rendering the image inaccessible and invisible to those who rely on ALT tags.
I don't know enough about template syntax to dare mess with it myself, but surely there is a way to take the caption parameter and pass it into the bit that creates the framed image, without forcing anyone to change how they use the infoboxes? I think it's something that should definitely be done ASAP. --Fastfission (talk) 00:34, 9 May 2008 (UTC)
You could use something like this code snippet:
|image= [[Image:{{{filename}}}|{{{caption}}}]] |caption= {{{caption}}}
{{infobox |title= My Infobox |image= [[Image:{{{image}}}|{{{caption}}}]] |caption= {{{caption}}} |label1= Content 'n' Stuff |data1={{{contentnstuff}}} }}
I think there has been some kind of misunderstanding of web standards. That code in Infobox Scientist means that someone with visual impairment using a screen reader hears the same caption twice. I guess there must be a better approach. --Hroðulf (or Hrothulf) (Talk) 13:04, 9 July 2008 (UTC)
Hello, I'm using this template in Japanese Wikipedia, thanks! (though the two templates differ in very detail) When I use data-only row (data cell without label), often feel another style parameter for data-only rows would be great. For exmaple, when you try to apply this template to Template:Probability distribution, you would probably use data-only rows for image cells and have to code like:
|datastyle = text-align:left<!-- for normal data cell --> |data1 = <div style="text-align:center">...
Such cases occur quite often because data-only rows and normal data cells usually have different "text-align" style. Can we have a special style parameter for data-only row? --125.201.158.128 (talk) 08:55, 15 May 2008 (UTC)
Label1 | Data1 (left aligned) |
---|---|
Data2 (centered) |
datastyle = text-align:left
, which overrides the default.<!-- Row 1 -->{{#if:{{{header1|}}}|<tr><th colspan="2" style="text-align:center; {{{headerstyle|}}}">{{{header1|}}}</th></tr>| {{#if:{{{label1|}}}|{{#if:{{{data1|}}}|<tr><th style="{{{labelstyle|}}}">{{{label1|}}}</th><td class="{{{class1|}}}" style="{{{datastyle|}}}">{{{data1|}}}</td></tr>}}| {{#if:{{{data1|}}}|<tr><td colspan="2" class="{{{class1|}}}" style="text-align:center; {{{datastyle|}}};{{{specialdatastyle}}}">{{{data1|}}}</td></tr>}} }} }}
specialdatastyle
(the name is just an example) is the new parameter. --125.201.3.209 (talk) 17:39, 7 June 2008 (UTC)So I'm stuck here. The issue is with {{infobox VG character}}, which allows for a sub-template in the inuniverse parameter. This sub-template isn't a full table though: just a set of extra rows. This works fine with a hand-crafted table style infobox, but not with {{infobox}}. I can see why it doesn't work as-is (the extra data rows are being applied to the wrong template), but can't see that there's a way of fixing this which doesn't require editing every article which uses the feature. Any suggestions? Chris Cunningham (not at work) - talk 09:31, 4 July 2008 (UTC)
This currently does not set up image_size a parameter used in many infoboxes. Taking {{Infobox Film}} as an example, it currently awkwardly codes for a default as:
|- {{#if:{{{image|}}}| {{!}} style="font-size: 95%; line-height:1.5em; text-align: center;" colspan="2" {{!}} [[Image:{{{image}}}|{{#if:{{{image_size|}}}|<!--then:-->{{px|{{{image_size}}} }}|<!--else:-->200px}}|]] {{#if:{{{caption|}}}|<br />{{{caption}}}}} }}
Yet there is a simpler coding using {{px}} which allows for default values (and corrects for image_size parameter being set values in articles with or without a "px" suffix - i.e. "|image_size=250" and "|image_size=250px"). Minor point, break tag should have no space. Hence a neater coding is:
|- {{#if:{{{image|}}}| {{!}} style="font-size: 95%; line-height:1.5em; text-align: center;" colspan="2" {{!}} [[Image:{{{image}}}|{{px|{{{image_size|}}}|200px}}|]] {{#if:{{{caption|}}}|<br/>{{{caption}}}}} }}
Davidruben (talk) 03:06, 11 July 2008
When I copy the code from the edit page and paste it into the new template page on my own wiki, I do not yield a working template. I am presented with a page full of "Ifs" and lines, and amidst these is also the infobox.
Any ideas on why this could be? Thanks! 66.174.92.167 (talk) 19:36, 19 July 2008 (UTC)
Could some one help me with this??? I created it so that I could tinker around and not have to worry about disrupting this one. I was thinking about adding different things and seeing what people thought and also learning the syntax better, however I have run into a problem with one of my random thoughts. You see, I wanted to make it collapsible, however I don't know the syntax well enough. If anyone could help that would be great, and if you want to leave me a message please do so on my talk page. Thanks, CrashUnderride 22:03, 25 July 2008 (UTC)
This would be really handy. I'm not sure where it's going wrong just now, just that it's definitely going wrong. Chris Cunningham (not at work) - talk 15:31, 4 August 2008 (UTC)
I am trying to import some data from wikipedia into my own mediawiki. This data contains the infobox: settlement which doesn't appear correctly. It shows the raw html for everthing in the infobox after the table tag and before the ending table tag, so from
<td colspan="2" align="center"
to the GNIS number
<td>0829911[2]</td> </tr>
I have a hunch that I am missing a template, but when I go to see which templates the page uses, I have them all. I think it could a nested template that I'm missing but I'm not sure which Thanks 68.96.138.80 (talk) 20:12, 5 August 2008 (UTC)
{{editprotected}}
Hi. Please replace the current first line of the code,
<table class="infobox {{{bodyclass|}}}" cellspacing="5" style="width: 22em; text-align: left; font-size: 88%; line-height: 1.5em; {{{bodystyle|}}}"><!--
with the following, which permits the cellspacing entry to be varied:
<table class="infobox {{{bodyclass|}}}" cellspacing="{{{cellspacing|5}}}" style="width:22em; text-align:left; font-size:88%; line-height:1.5em; {{{bodystyle|}}}"><!--
Sardanaphalus (talk) 07:55, 9 August 2008 (UTC)
|bodystyle=cellspacing:8;
, it will override the first value. Happy‑melon 11:39, 9 August 2008 (UTC){{infobox/sandbox}}
. Why don't you have a play and tell me if that works? If not, we'll have to add the bespoke parameter, but I'd really rather not do that. Happy‑melon 20:36, 12 August 2008 (UTC)Can anyone here help me figure out why Windmill Theatre has so much white space at the top? I assume it's a template problem but I can't figure out what, and the only template on the page is {{Infobox Theatre}}. Any thoughts? Thanks. Chick Bowen 02:31, 12 August 2008 (UTC)
{{editprotected}}
This came up during a recent conversion discussion. The difference between 88% and 90% for the default size does make a noticeable difference to the legibility of the labels at default zoom levels. Could this be bumped to 90% in the first line of code, please? Chris Cunningham (not at work) - talk 17:42, 13 August 2008 (UTC)
Unresolved
Now that this template had been changed to allow the easy addition of microformat classes (for which, thank you), how can the following be achieved?
<span class="adr"><span class="region">data</span></span>
<tr class="note"><td>Colour: </td><td>red
</td></tr>
'''data'''
, the relevant class is inside the emboldening: <b><span class="foo">[data]</span></b>
or<b class="foo">data</b>
but not <span class="foo"><b>data</b></span>
<span class="fn org">{{{name|}}}</span>
inabove={{{name|}}}{{#if:{{{type|}}}|<br /><span align="center" style="font-size: x-small; font-style: normal; font-weight: normal;">{{{type|}}}</span>}}
Myquestion about the use of TBODY, asked elsewhere, is particularly relevant to Infoboxes. Andy Mabbett | Talk to Andy Mabbett 11:06, 24 August 2008 (UTC)
Please see my request for help with Template Airport codes. Thank you. Andy Mabbett | Talk to Andy Mabbett 11:27, 24 August 2008 (UTC)
Resolved
Does anyone know anything about {{Make Infobox}}? It's used by {{Infobox UKproperty}} and {{Infobox Pub}}, and possibly others. It would seem to duplicate this one, and should perhaps be merged, though it looks like doing so might be complicated. Andy Mabbett | Talk to Andy Mabbett 21:30, 24 August 2008 (UTC)
It seems that entering titleclass = fn org
(as sometimes required for the hCard microformat) does not work; it renders a class of "fn" (see [4]). Andy Mabbett | Talk to Andy Mabbett 12:59, 1 September 2008 (UTC)
<caption class="fn org" style="font-size: 125%; font-weight: bold;">Infobox Stadium</caption>
That is the correct output. Chris Cunningham (not at work) - talk 16:12, 1 September 2008 (UTC)I've just created a new generic infobox called {{Infobox Sportsperson}}. Is it possible to create a collapsible section using {{Infobox}}, such as the "Medal record" section that appears at the bottom of {{Infobox Swimmer}}? I would very much like to add this feature to {{Infobox Sportsperson}}. — Cheers, JackLee –talk– 13:36, 10 September 2008 (UTC)
| below = {{#if:{{{medals<includeonly>|</includeonly>}}}| <table style="width:100%; margin:0" class="collapsible"> <tr> <th>Medal record</th> </tr> <tr> <td>{{{medals}}}</td> </tr> </table> }}
Thanks very much. Will add that to the infobox. — Cheers, JackLee –talk– 14:39, 10 September 2008 (UTC)
Can we remove the option to have the title outside of the box? There are reports at Template talk:Infobox Book that it causes wrapping issues with long titles using Konqueror. --MZMcBride (talk) 03:25, 1 October 2008 (UTC)
I've been heavily involved in converting random wikitable arrangements into {{infobox}}es for some time now, and I never knew about the existence of the {{{name}}} parameter until today. Is there really a need for this? It doesn't look as good to me as just sticking a {{tnavbar}} directly in the {{{below}}} attribute, has an unintuitive name and function and doesn't appear to be widely employed. I think this should just be yanked in the name of simplicity, with editors always having the option of manually adding a {{navbar}} if required. Chris Cunningham (not at work) - talk 15:46, 9 October 2008 (UTC)
{{editprotected}}
Not a big issue, but the span in the following section of code is in the wrong place; it needs to be moved inside the if statement for the caption.
[code redacted]
We were getting errors on an external wiki when we imported this due to the lack of Tidy. --Izno (talk) 04:07, 31 October 2008 (UTC)
{{editprotected}}
Some templates, such as {{Infobox character}}, have a subheader to identify the character. {{Infobox animanga character}} and {{Infobox Television episode}} also uses a subheader for similar reasons. So I am requesting that a subheader be added to the infobox.
Below:
<!-- Header -->{{#if:{{{above|}}}|<tr><td colspan="2" class="{{{aboveclass|}}}" style="text-align:center; font-size: 125%; font-weight: bold; {{{abovestyle|}}}">{{{above}}}</td></tr>}}
Add:
<!-- Subheader -->{{#if:{{{subheader|}}}|<tr><td colspan="2" class="{{{subheaderclass|}}}" style="text-align:center; {{{subheaderstyle|}}}">{{{subheader}}}</td></tr>}}
I would also recommend the removal of cellspacing="5" from the table an allow cell spacing to be controlled through CSS via border-spacing instead. --Farix (Talk) 20:11, 9 November 2008 (UTC)
Hey folks,
In searching for a way to hack {{infobox Football biography}} to use an infobox, I ended up having to add new parameters - and thus was born {{infobox3cols}}. This allows for a "data1a" and "data1b" set instead of just "data1" to present two columns of data, so that the club rows in the aforementioned template display properly. This can be rolled into {{infobox}} so we don't have to keep two different designs - any thoughts? Chris Cunningham (not at work) - talk 15:40, 14 November 2008 (UTC)
This infobox has its left column squashed up by the right column of Type (in Firefox), creating needless whitespace. The following CSS code will fix the issue:
.infobox th { min-width: 6.5em; }
Of course, the number will change from infobox to infobox...is it practical, or even possible, to allow inherited templates to specify their own values? --Tom Edwards (talk) 13:18, 16 November 2008 (UTC)
{{{labelstyle}}}
parameter. I've added this to {{infobox Software/sandbox}}; test it by changing the Steam article to use that template, and adding the following line to the code: | labelstyle = white-space: nowrap
. Chris Cunningham (not at work) - talk 16:07, 16 November 2008 (UTC)
Should Infoboxes be used to add articles to categories? i.e. should, say, {{Infobox spaghetti knitter}} automatically add the articles in which it is used to Category:Spaghetti-knitters? Andy Mabbett (User:Pigsonthewing); Andy's talk; Andy's edits 23:43, 16 November 2008 (UTC)
Hi
I'm trying to add a reference to the area figure in the Infobox at Turks and Caicos Islands. When I try the usual syntax, for example,
|area_km2 = 417<ref>any old stuff</ref>
I get a string of gibberish displayed in the infobox, such as
What am I doing wrong? 86.133.242.24 (talk) 23:36, 11 December 2008 (UTC)
I wonder if we should have a separate designation for incumbents and outgoing officials (like George W. Bush). I've set up a debate on the topic superlusertc 2008 December 17, 00:20 (UTC)
Please see discussion at Template talk:Infobox Film#Conversion to use 'infobox' base class Andy Mabbett (User:Pigsonthewing); Andy's talk; Andy's edits 15:24, 29 December 2008 (UTC)
Per MOS:INFOBOX, the suggested standard width of an infobox is 25em, yet this template defaults at 22em. If this meta is to be pushed as the standard (as seems to be the case), can this discrepancy be addressed? PC78 (talk) 18:35, 29 December 2008 (UTC)
This page is an archive of past discussions. Do not edit the contents of this page. If you wish to start a new discussion or revive an old one, please do so on the current talk page. |