Difference between revisions of "Template:Cfb link"

From blackwiki
Jump to navigation Jump to search
imported>B
(Adding tracking code to find uses of cfb link that shouldn't be there - this is related to the server problem of overuse of parser functions)
imported>B
(None of these exist ... removing them ... we need to get rid of "athletics" links too ... adding documentation for proper naming convention so it won't be a mystery)
Line 1: Line 1:
 
<includeonly>{{#ifexist:{{{year}}} {{{team}}} football team|[[Category:Excessive uses of cfb link]][[{{{year}}} {{{team}}} football team{{!}}{{{title|}}}]]|<noinclude><!--
 
<includeonly>{{#ifexist:{{{year}}} {{{team}}} football team|[[Category:Excessive uses of cfb link]][[{{{year}}} {{{team}}} football team{{!}}{{{title|}}}]]|<noinclude><!--
--></noinclude>{{#ifexist:{{{year}}} {{{team}}} football|[[Category:Uses of cfb link linking to incorrectly named articles]][[{{{year}}} {{{team}}} football{{!}}{{{title|}}}]]|<noinclude><!--
 
 
--></noinclude>{{#ifexist:{{{team}}} football|[[{{{team}}} football{{!}}{{{title|}}}]]|<noinclude><!--
 
--></noinclude>{{#ifexist:{{{team}}} football|[[{{{team}}} football{{!}}{{{title|}}}]]|<noinclude><!--
--></noinclude>{{#ifexist:{{{team}}} football team|[[Category:Uses of cfb link linking to incorrectly named articles]][[{{{team}}} football team{{!}}{{{title|}}}]]|<noinclude><!--
 
 
--></noinclude>{{#ifexist:{{{team}}}|[[{{{team}}}{{!}}{{{title|}}}]]|<noinclude><!--
 
--></noinclude>{{#ifexist:{{{team}}}|[[{{{team}}}{{!}}{{{title|}}}]]|<noinclude><!--
--></noinclude>{{#ifexist:{{{school}}} athletics|[[{{{school}}} athletics{{!}}{{{title|}}}]]|<noinclude><!--
+
--></noinclude>{{#ifexist:{{{school}}} athletics|[[Category:Uses of cfb link linking to incorrectly named articles]][[{{{school}}} athletics{{!}}{{{title|}}}]]|<noinclude><!--
 
--></noinclude>[[{{{school}}}{{!}}{{{title|}}}]]<noinclude><!--
 
--></noinclude>[[{{{school}}}{{!}}{{{title|}}}]]<noinclude><!--
 
--></noinclude>}}}}}}}}}}}}</includeonly><noinclude>{{esoteric}}
 
--></noinclude>}}}}}}}}}}}}</includeonly><noinclude>{{esoteric}}
Line 17: Line 15:
  
 
'''Important''' - whitespace cannot be included or it will be added to the wiki link and it will not function properly.
 
'''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 article you really want to link to already exists, just link to it.  [[:Category:Excessive uses of cfb link]] contains a list of occasions where this template is used and doesn't need to be.
 +
 +
==Naming conventions==
 +
 +
In order for this template to work, articles MUST be named correctly.  The football naming convention is:
 +
 +
* Season articles: Season SchoolShortName TeamName football team, eg, [[2007 Virginia Tech Hokies football team]] or [[2004 Auburn Tigers football team]]
 +
* Football team articles: SchoolShortName TeamName football, eg, [[Virginia Tech Hokies football]], [[Florida State Seminoles football]]
 +
* Athletics department articles: SchoolShortName TeamName, eg, [[North Carolina Tarheels]], [[Virginia Cavaliers]]
  
 
==Parameters==
 
==Parameters==

Revision as of 23:58, 4 December 2007

This template will allow you to link to a college football 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 Richmond Spiders football team that may or may not exist, I would make this call:

{{cfb link|year=2010|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.

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 article you really want to link to already exists, just link to it. Category:Excessive uses of cfb link contains a list of occasions where this template is used and doesn't need to be.

Naming conventions

In order for this template to work, articles MUST be named correctly. The football 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 football 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 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

{{cfb link|year=2007|team=Virginia Tech Hokies|school=Virginia Polytechnic Institute and State University|title=Virginia Tech}} Virginia Tech}}}}
{{cfb link|year=2006|team=Virginia Tech Hokies|school=Virginia Polytechnic Institute and State University|title=Virginia Tech}} Virginia Tech}}}}
{{cfb link|team=Florida State Seminoles|school=Florida State University|title=FSU}} FSU}}}}

See also