Difference between revisions of "Template:CBSB link/doc"

From blackwiki
Jump to navigation Jump to search
imported>Billcasey905
imported>Billcasey905
Line 25: Line 25:
 
In order for this template to work, articles MUST be named correctly.  The baseball naming convention is:
 
In order for this template to work, articles MUST be named correctly.  The baseball naming convention is:
  
* Season articles: Season SchoolShortName TeamName baseball team, eg, [[2007 Virginia Tech Hokies baseball team]] or [[2004 Auburn Tigers baseball team]]
+
* Season articles: Season SchoolShortName TeamName baseball team, eg, [[2010 LSU Tigers baseball team]] or [[2008 UCLA Bruins baseball team]]
* Football team articles: SchoolShortName TeamName football, eg, [[Virginia Tech Hokies baseball]], [[Florida State Seminoles baseball]]
+
* Football team articles: SchoolShortName TeamName football, eg, [[Michigan Wolverines baseball]], [[Arkansas Razorbacks baseball]]
 
* Athletics department articles: SchoolShortName TeamName, eg, [[North Carolina Tar Heels]], [[Virginia Cavaliers]]
 
* Athletics department articles: SchoolShortName TeamName, eg, [[North Carolina Tar Heels]], [[Virginia Cavaliers]]
  

Revision as of 22:50, 22 January 2012

Template:User sandbox

{{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:

Parameters

parameter meaning
year (optional) Supply a year if you want to link to the yearly page, eg, 2007 Virginia Tech Hokies baseball team
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 (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}} [[{{{school}}}]]

See also