• Home
  • Random
  • Nearby
  • Log in
  • Settings
Donate Now If Wikipedia is useful to you, please give today.
  • About Wikipedia
  • Disclaimers
Wikipedia

Template:CBSB link

  • Template
  • Talk
  • Language
  • Watch
  • View source
Template documentation[view] [edit] [history] [purge]
WarningThis template is used on approximately 4,100 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them.
Due to a server limit of 500 "expensive parser function" calls (e.g. #ifexist:, PAGESIZE:, and PAGESINCATEGORY:), this template will only work properly if the page using it has not already exceeded the limit. When the limit is exceeded, the page using this template or module is categorised in Category:Pages with too many expensive parser function calls. (further information)

{{CBSB link}} allows linking to a college baseball 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 2020 Alabama Crimson Tide baseball team that may or may not exist, I would make this call:

{{cbsb link|year=2020|team=Alabama Crimson Tide|school=University of Alabama|title=Alabama}}

This would yield: Alabama

Important - whitespace cannot be included or it will be added to the wiki link and it will not function properly.

Use of this template

Due to restrictions on use of #ifexist, it is important to not use this template if it isn't needed. In other words, if the link already exists, just link to it. Category:Excessive uses of cbsb link contains a list of occasions where this template is used and doesn't need to be.

Please do not use this template on disambiguation pages (dab pages) due to requirements for links on dab pages.

Naming conventions

In order for this template to work, articles MUST be named correctly. The baseball naming convention is:

  • Season articles: Season SchoolShortName TeamName baseball team, e.g., 2010 LSU Tigers baseball team or 2008 UCLA Bruins baseball team
  • Baseball team articles: SchoolShortName TeamName baseball, e.g., Michigan Wolverines baseball, Arkansas Razorbacks baseball
  • Athletics department articles: SchoolShortName TeamName, e.g., North Carolina Tar Heels, Virginia Cavaliers

Parameters

parameter meaning
year (optional) Supply a year if you want to link to the yearly page, e.g., 2007 Virginia Tech Hokies baseball team
team The athletics program article for this school, e.g., Virginia Tech Hokies, Wake Forest Demon Deacons, Miami Hurricanes, etc.
school The main article for this school, e.g., Florida State University, University of Virginia, etc.
title (optional) 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. If left blank, the link will be non-piped, i.e., it will display the name of the article linked to.

Examples

{{cbsb link|year=2099|team=Virginia Tech Hokies|school=Virginia Polytechnic Institute and State University|title=Virginia Tech}} Virginia Tech
{{cbsb link|year=2006|team=Virginia Tech Hokies|school=Virginia Polytechnic Institute and State University|title=Virginia Tech}} Virginia Tech
{{cbsb link|team=Florida State Seminoles|school=Florida State University|title=FSU}} FSU
{{cbsb link|year=2008|team=Utah Utes}} Utah Utes baseball

TemplateData

This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:CBSB link in articles based on its TemplateData.

TemplateData for CBSB link

TemplateData

Link to article about a school baseball team, if it exists

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
yearyear

if team article is of the form "YEAR TITLE baseball team", link to it

Numberoptional
teamteam

The article to link to should contain this team name.

Example
Florida State Seminoles
Stringoptional
titletitle

If supplied, the displayed string for the wikilink

Stringoptional
catcat

If "no", suppress tracking category

Stringoptional
schoolschool

The name of the school. If the "TEAM baseball" article does not exist, link to article with this parameter value,

Example
Florida State University
Stringoptional

See also

  • {{alternative links}}
  • {{cfb link}}
  • {{cbb link}}
  • {{College sports team link}}
The above documentation is transcluded from Template:CBSB link/doc. (edit | history)
Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:CBSB_link&oldid=1324146442"