Template talk:Infobox cricketer biography
From Wikipedia, the free encyclopedia
[edit] Clubs
To make it easier, under the club information you could implement {{{currentclub}}}, {{{clubnumber}}} as you do the city/country of birth, perhaps with {{{currentsince}}} e.g.(1993) (to display (1993-present) in the years column, then use the {{{years}}} {{{clubs}}} for the other clubs if needed.
That way for historic players, the currentclub etc can be dispensed with, without losing the header using the if command as at present.
Make sense? Any use? –MDCollins (talk) 23:07, 12 August 2007 (UTC)
Loud and clear, I'll work on it Joe p15 23:10, 12 August 2007 (UTC)
Is it really such a good idea to speak of "first class clubs". They may be clubs in some countries, but the template should be generic. JPD (talk) 20:05, 19 August 2007 (UTC)
- Would team be better? Would you be ok with amending the header to "(Main) First-class team information", or are you proposing changing the "club1", "club2" parameters to "team1", "team2"?
- –MDCollins (talk) 20:38, 19 August 2007 (UTC)
- How about just "First-class information"? Joe p15 20:41, 19 August 2007 (UTC)
- The parameter names are not important, as they do not appear. I would be easiest to replace "club" with "team", with the heading "First-class team information", but that possibly loses the distinction made by the word "club" between national teams and lower level teams. "First-class information" does this even more. There doesn't seem to be an obvious perfect solution. JPD (talk) 09:10, 20 August 2007 (UTC)
- How about just "First-class information"? Joe p15 20:41, 19 August 2007 (UTC)
[edit] Women
Another switch needs to be added so that the International link in the International information header goes to the women's team where appropriate. Andrew nixon 17:59, 16 August 2007 (UTC)
-
- Sorted this now, thanks Joe p15 20:35, 16 August 2007 (UTC)
[edit] Blank space
We appear to have an extra blank line at the top of the articles, stemming from the infobox somewhere. Can anyone find it? –MDCollins (talk) 09:35, 18 August 2007 (UTC)
- Yea, I've noticed that, I couldn't find it, I'll revisit it later if its still unsolved! Joe p15 10:06, 18 August 2007 (UTC)
Copied from his talk page:
-
-
- Well, I know what it is, but not exactly why. There's an extra html break inserted at the end of the category listing when the template is there. This break is not inserted when the template is not there. It's coming from the career statistics portion of the template (the switch with the raw table HTML). I do know that the table preprocessor has some funky quirks and mixing HTML and non HTML table markup can cause problems like this. I'd suggest converting the entire template to raw HTML (user:David Kernow converted template:infobox country to exclusively use HTML table syntax a while ago, for this sort of reason). I think it's essentially a bug in the table preprocessor. -- Rick Block (talk) 17:42, 18 August 2007 (UTC)
- There were some stray breaks in the switch box which I've removed, problem solved (probably!) Joe p15 10:25, 19 August 2007 (UTC)
- Well, I know what it is, but not exactly why. There's an extra html break inserted at the end of the category listing when the template is there. This break is not inserted when the template is not there. It's coming from the career statistics portion of the template (the switch with the raw table HTML). I do know that the table preprocessor has some funky quirks and mixing HTML and non HTML table markup can cause problems like this. I'd suggest converting the entire template to raw HTML (user:David Kernow converted template:infobox country to exclusively use HTML table syntax a while ago, for this sort of reason). I think it's essentially a bug in the table preprocessor. -- Rick Block (talk) 17:42, 18 August 2007 (UTC)
-
[edit] Born/Died
Hi,
Made a small change to the date of birth/place of birth//death description (column1) just to say 'Born' and 'Died' similar to some other boxes. I'm off for a week, so just revert it if you preferred the old way. –MDCollins (talk) 22:51, 25 August 2007 (UTC)
[edit] Edit: Template now not displaying born if no birth date given
I've edited the template so that, if no birth date is supplied, it won't show the born and died columns (so that one doesn't get strange error messages) and that "domestic information" won't show if no club name is supplied.) Hope that's ok. Sam Vimes | Address me 21:54, 31 August 2007 (UTC)
[edit] Players with only partial dates known?
I've filled in this infobox for Arthur W. Robinson, but have had to comment it out because it doesn't seem to like being fed only partial dates. Robinson's year of birth is known, but not the date; while his death is a complete mystery. If preview the article with the infobox uncommented, you'll see what I mean. Simply writing "unknown" in the Dateofbirth and Monthofbirth fields doesn't work because of the automatic date formatting. Help? Loganberry (Talk) 00:13, 7 October 2007 (UTC)
- I'll have a play - see what I can come up with. –MDCollins (talk) 14:17, 7 October 2007 (UTC)
- Thanks. Leaving out his dates from the Infobox entirely would solve the problem, but I'm not particularly comfortable with that. I may end up using an older Infobox, as I think that would be better than not having one at all. Loganberry (Talk) 22:51, 7 October 2007 (UTC)
- Still get a line break for each 'unknown'. However, if no information is known, all birth/death fields can be omitted (c.f. Morshed Hossain.–MDCollins (talk) 11:29, 29 October 2007 (UTC)
[edit] Umpires
Just some information that I've updated this infobox to match {{Infobox cricket umpire}}, so that this can encompass all of the umpires properly as well. The stats columns can be set to 0 now, which may be useful when full stats breakdowns are unknown as well.
[edit] image size
Someone has to fix the image size on this. Look at Rahul Dravid, the picture's far too tiny for the box. Also Sachin Tendulkar, where someone's actually tried to increase the size manually. Relata refero (talk) 12:45, 23 November 2007 (UTC)
- Not to worry. I am a man of infinite resourcefulness. Relata refero (talk) 12:58, 23 November 2007 (UTC)
-
- Sorry, I've reverted your changes for a moment - I've just added the box to Arthur Morris and the picture was absolutely huge. If necessary, the image size can be changed by adding .jpg|200px or whatever to the image line, not by adding an image_size field. In the case of Dravid - its the picture that's at fault, as it isn't a very good one (but free, I know).–MDCollins (talk) 16:53, 24 November 2007 (UTC)
- No, it doesn't quite work like that, surely? The image_size field itself isn't the problem, that works. I increased the default image size to 225 as well. That shouldn't by and large create huge pictures; the standard across most infoboxes seems to be 220. I'm reverting to my version, but with 190 px default for now. Will see how it looks in your test case. Relata refero (talk) 22:15, 24 November 2007 (UTC)
- Sid Barnes was massive too, so have changed to 154px (the same as the infobox I was replacing. Having to manually set the image size for every picture is a bit of a bind...–MDCollins (talk) 00:10, 29 November 2007 (UTC)
- No, it doesn't quite work like that, surely? The image_size field itself isn't the problem, that works. I increased the default image size to 225 as well. That shouldn't by and large create huge pictures; the standard across most infoboxes seems to be 220. I'm reverting to my version, but with 190 px default for now. Will see how it looks in your test case. Relata refero (talk) 22:15, 24 November 2007 (UTC)
- Sorry, I've reverted your changes for a moment - I've just added the box to Arthur Morris and the picture was absolutely huge. If necessary, the image size can be changed by adding .jpg|200px or whatever to the image line, not by adding an image_size field. In the case of Dravid - its the picture that's at fault, as it isn't a very good one (but free, I know).–MDCollins (talk) 16:53, 24 November 2007 (UTC)
[edit] Only played one match
Is it possible to have the template display "Only first-class match" (or List A, etc) in the event that a player has only played one such match? Andrew nixon (talk) 23:50, 5 January 2008 (UTC)
- Do you mean in the domestic/international debut type section? Should be doable, yeah. –MDCollins (talk) 14:59, 6 January 2008 (UTC)
- Done it, just use "onetest = true", "oneodi = true",(for international)l "onetype1 = true", or "onetype2 = true" (for domestic).–MDCollins (talk) 10:54, 11 January 2008 (UTC)
[edit] Possible Improvements
This looks like a very good template, well done!! Some possible improvements that could be done are:
Instead of writing 'true' or 'false', it could use 'yes' or 'no'. If possible, if some of the fields haven't been filled in, it would be nice if they could disappear.
Also, I've seen that there's some red text on the template page.
These are just suggestions, and it's still great as it at the moment.
Thanks, Drum guy (talk) 16:31, 6 January 2008 (UTC)
- Hi, thanks for your comments. We chose 'true' and 'false' as it seemed a standard across other templates. I think that one is a bit hard to change without changing all of the transclusions. You are free to delete fields that aren't in use, I don't think templates can be set to automatically remove them. As far as I know, if the field isn't set (i.e. left as "placeofbirth = ") nothing should display when viewing the 'box. If there is a specific example, let me know.
- Also the red 'expression error' is being shown as it is trying to calculate ages without any figures, only the "{{{dateofbirth}}}" expressions, and the formula doesn't like the {}'s. Don't think there is any way around this, in any case it works fine with real records.
- –MDCollins (talk) 10:11, 11 January 2008 (UTC)
[edit] Club limit
Great template. However when updating Waqar Younis's article with this infobox I hit a problem with the club limit being too small. Currently a maximum of 8 domestic teams are possible, however Waqar, and possibly other players too, has played for more than 8 teams (11 to be precise [1]). Perhaps the limit should be increased to around 15? Muzher (talk • contribs) 03:36, 11 January 2008 (UTC)
- Yeah, sure, that can be easily done. However, if some of the clubs are not 'major', be wary of making the 'box go on for ever. In Waqar's case he has played for some more than once, so the dates can be entered as '1999/00–2000/01, 2004' for example. –MDCollins (talk) 10:14, 11 January 2008 (UTC)
- Comment- actually you can't put more than one date alongside each other as I suggested, as it wraps funnily. Forget that for now! –MDCollins (talk) 11:52, 11 January 2008 (UTC)
- Thanks for the help. I shall add the clubs now. Muzher (talk • contribs) 04:10, 12 January 2008 (UTC)
[edit] Isn't the flag a bit large?
50 pixels seems a bit large, it dominates the infobox in articles without a photo (came across one with random page, thought I'd mention it). —Random832 20:10, 1 February 2008 (UTC)
[edit] International Information section
I removed the small typeset from the International Information section because I saw it as being redundant, given that text using the normal size seems to fit over one line. I recall that when this infobox was first introduced that many more of the sections used small font as well, but these have all but gone since then. If anybody notices debut and last match information running over more than one line, post a message here so we can attempt to resolve the issue. Thanks all, mdmanser (talk) 11:14, 2 February 2008 (UTC)
- The example (Darren Gough) in the Template Doc has broken! The 'Test Debut (cap xyz) now wraps, causing problems... Feel free to keep playing with it. –MDCollins (talk) 23:04, 2 February 2008 (UTC)
-
- Ah sorry about that. It looks a lot better, I think, with the rest of the line being full size at least. I had a look over your revision and I thought you may have missed one of the cap number lines out, so I had a go finishing it off. It may be wrong, so feel free to revert that if I made a mistake. Cheers, mdmanser (talk) 10:28, 3 February 2008 (UTC)
[edit] Link to national team
I've noticed the name of the country they are from links to the national team for the country - even when the player isn't an international player. Is this by design or an oversight? -- Chuq (talk) 10:58, 26 February 2008 (UTC)
- Hi, I think this was by design (certainly taken from all the superceding templates). It should link to the country of birth in the personal info section, and at the moment links to x national cricket team under the flag doesn't it - that at least give a link to cricket in that country. If this warrants further discussion, I suggest it gets brought up at the wikiproject. –MDCollins (talk) 23:34, 27 February 2008 (UTC)
[edit] Image caption
I'd do it myself, but I'm not confident enough to do it without screwing up the template syntax, but could someone add an optional caption for any image used.Andrew nixon (talk) 15:06, 4 May 2008 (UTC)