Template talk:Soccerbase
From Wikipedia, the free encyclopedia
This is a template to generate links to Soccerbase.
Contents |
[edit] Instructions
- Go to Soccerbase and search for the person you want
- Click on the correct link to go to the person's page. Be sure you're getting the right person
- The page URL should look like http://www.soccerbase.com/players_details.sd?playerid=#####, where "#####" indicates a number.
- Copy ONLY that number
- Add to the external links section the text:
-
- {{soccerbase|id=#####|name=Name}}
- where "#####" is the number you've copied, and "Name" is the person's name
[edit] Example
- Searching for "David Beckham", you'll reach this page: http://www.soccerbase.com/players_details.sd?playerid=547
- Copy "547" and then write: {{soccerbase|id=547|name=David Beckham}}
The result is David Beckham career stats at Soccerbase
Note that, since this will almost certainly go on the external link section, you should add a * before the template text to include it as a list item.
[edit] Talk
Add any discussion about this template here, as a new section.
[edit] Link text
Might I suggest changing the link text to "Career Stats at Soccerbase" rather than "Player X at Soccerbase" - that way it's clear what's being linked to. ArtVandelay13 10:30, 28 June 2006 (UTC)
- I've had a bit of a think about this... I think you're right. But I'd prefer "Player X career stats at Soccerbase". I'll make the change... if anyone disagrees... let me know! Robwingfield (talk) 15:08, 6 July 2006 (UTC)
- I've added Template:Soccerbase (manager), which I think is useful alongside playing stats for a player-manager (see Craig Brewster for my example). How would you guys feel about changing 'X's career stats' to 'X's playing career stats'? Fedgin 13:32, 8 August 2006 (UTC)
- Personally, I think 'Career Stats' on its own would be assumed to be the playing career, unless otherwise stated, so I don't think there's any need to change. If a player had both links on his page, it'd be pretty clear what was what. ArtVandelay13 09:19, 10 August 2006 (UTC)
- I've added Template:Soccerbase (manager), which I think is useful alongside playing stats for a player-manager (see Craig Brewster for my example). How would you guys feel about changing 'X's career stats' to 'X's playing career stats'? Fedgin 13:32, 8 August 2006 (UTC)
[edit] Removing name parameter
Since this is a big change that would require a bot to edit all current uses of the template I thought I'd talk about it here first. Why do we need to add the player name, can't we use {{{PAGENAME}}} instead? It's not going to be very often that we link from a player's page to somebody else's soccerbase stats. I think we should be able to just use {{sb|123123}}, 123123 being the id of the player at soccerbase.com. Yonatan (contribs/talk) 19:31, 28 February 2007 (UTC)
- That idea works fine where the player name and article name are identical. It falls down however, where the player name has a suffix e.g. John Smith (footballer). Daemonic Kangaroo 19:43, 28 February 2007 (UTC)
- This can probably be taken care of by someone adding code that automatically removes (footballer) (football) (club) (soccer) or whatever other suffix we can think of. Personally I don't know how to do it but I'm sure someone more technically savvy will know how to do it. Is the name parameter optional right now and if it isn't used it automatically reverts to {{{PAGENAME}}}? —The preceding unsigned comment was added by Yonatanh (talk • contribs) 19:55, 28 February 2007 (UTC)
- Daemonic Kangaroo hit the nail on the head with why I included that parameter when I set up the template. It's an optional parameter, so doesn't need to be included, but it's good practise to do so, as a page which doesn't include a disambiguation suffix may be moved in the future to include one. robwingfield «T•C» 22:43, 28 February 2007 (UTC)
- Fair enough, I didn't realize it was optional. Is there some way to make it so if there's just one parameter it automatically treats it as if it's the id parameter? Yonatan (contribs/talk) 00:32, 1 March 2007 (UTC)
- As far as I'm aware, it will do. Applying the parameters positionally, rather than as name/value pairs, means that the ID comes first. So if only one parameter is specified, it will be the first, and therefore the ID. But as I said, it's good practise to provide both parameters, as if the page is ever moved, someone will need to edit the template call and add that second parameter to avoid the likes of the following:
- which is why the name is specified in the use of the template at the Gary Roberts (footballer born 1984) article. So... I'd encourage you NOT to just specify the ID. robwingfield «T•C» 00:02, 4 March 2007 (UTC)
- Fair enough, I didn't realize it was optional. Is there some way to make it so if there's just one parameter it automatically treats it as if it's the id parameter? Yonatan (contribs/talk) 00:32, 1 March 2007 (UTC)
- Daemonic Kangaroo hit the nail on the head with why I included that parameter when I set up the template. It's an optional parameter, so doesn't need to be included, but it's good practise to do so, as a page which doesn't include a disambiguation suffix may be moved in the future to include one. robwingfield «T•C» 22:43, 28 February 2007 (UTC)
- This can probably be taken care of by someone adding code that automatically removes (footballer) (football) (club) (soccer) or whatever other suffix we can think of. Personally I don't know how to do it but I'm sure someone more technically savvy will know how to do it. Is the name parameter optional right now and if it isn't used it automatically reverts to {{{PAGENAME}}}? —The preceding unsigned comment was added by Yonatanh (talk • contribs) 19:55, 28 February 2007 (UTC)