Template:Cbb link
| This template employs intricate features of template syntax.
You are encouraged to familiarise yourself with its setup and parser functions before editing the template. If your edit causes unexpected problems, please undo it quickly, as this template may appear on a large number of pages. You can conduct experiments, and should test all major changes, in either this template's sandbox, the general template sandbox, or your user space before changing anything here. |
| Due to a server limit of 100 calls to the parser function #ifexist per page, this template will only work properly for the first 33 uses on a single page. Try to use it sparingly |
This template will allow you to link to a college basketball team page that may not yet exist. It will display the best available link.
For example, if I want to link to the article about the 2010–11 Richmond Spiders men's basketball team that may or may not exist, I would make this call:
{{cbb link|2010|sex=men|team=Richmond Spiders|school=University of Richmond|title=Richmond}}
This would yield: Richmond
Important - whitespace cannot be included or it will be added to the wiki link and it will not function properly. Also, please use an en dash as the year separator.
Parameters
| parameter | meaning |
|---|---|
| year or 1= (optional) | Supply a year if you want to link to the yearly page, eg, 2006 for the 2006–07 Virginia Tech Hokies men's basketball team article; use the year the season began as the template will calculate the ending year. (The form 2009–10 is still supported for legacy purposes, but the template only reads the first four digits.)
|
| sex | men or women - defaults to men |
| team | The athletics program article for this school, eg, Virginia Tech Hokies, Wake Forest Demon Deacons, Miami Hurricanes, etc |
| school | The main article for this school, eg, Florida State University, University of Virginia, etc |
| title | The display name for this link. Usually, this will be the common name for the school (without "university"), like Duke, Florida State, Virginia Tech, etc. |
Examples
| {{cbb link|2006|sex=men|team=Virginia Tech Hokies|school=Virginia Polytechnic Institute and State University|title=Virginia Tech}} | Virginia Tech |
| {{cbb link|2006|team=Virginia Tech Hokies|sex=women|school=Virginia Polytechnic Institute and State University|title=Virginia Tech}} | Virginia Tech |
| {{cbb link|team=Florida State Seminoles|sex=men|school=Florida State University|title=FSU}} | FSU |
When the template should not be used
To help limit the calls to #ifexist, it is strongly recommended that a direct link be used for specific team season articles instead of this template. Thus,
{{cbb link|2007|team=Kansas Jayhawks|school=University of Kansas|title=Kansas}}
should be changed to
[[2007–08 Kansas Jayhawks men's basketball team|Kansas]]
once that page is written. Templates used in cases such as this are listed at Category:Excessive uses of cbb link and should be changed as described.
See also
- {{alternate links}}
- {{cfb link}}