Difference between revisions of "Template:Ct link"

From blackwiki
Jump to navigation Jump to search
imported>Disavian
(making tennis link template)
 
imported>ConradPino
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
−
<includeonly>{{#ifexist:{{{year}}} {{{team}}} tennis team|[[{{{year}}} {{{team}}} tennis team{{!}}{{{title|}}}]]|<noinclude><!--
+
<includeonly>{{#ifexist:{{{season|{{{year}}}}}} {{{team}}} {{{sex|{{{gender|men}}}}}} tennis team|[[{{{season|{{{year}}}}}} {{{team}}} {{{sex|{{{gender|men}}}}}} tennis team{{!}}{{{title|}}}]]|<noinclude><!--
−
--></noinclude>{{#ifexist:{{{year}}} {{{team}}} football|[[{{{year}}} {{{team}}} tennis{{!}}{{{title|}}}]]|<noinclude><!--
+
--></noinclude>{{#ifexist:{{{season|{{{year}}}}}} {{{team}}} {{{sex|{{{gender|men}}}}}}'s tennis team|[[{{{season|{{{year}}}}}} {{{team}}} {{{sex|{{{gender|men}}}}}}'s tennis team{{!}}{{{title|}}}]]|<noinclude><!--
 +
--></noinclude>{{#ifexist:{{{season|{{{year}}}}}} {{{team}}} {{{sex|{{{gender|men}}}}}}'s tennis|[[{{{season|{{{year}}}}}} {{{team}}} {{{sex|{{{gender|men}}}}}}'s tennis{{!}}{{{title|}}}]]|<noinclude><!--
 +
--></noinclude>{{#ifexist:{{{season|{{{year}}}}}} {{{team}}} {{{sex|{{{gender|men}}}}}} tennis|[[{{{season|{{{year}}}}}} {{{team}}} {{{sex|{{{gender|men}}}}}} tennis{{!}}{{{title|}}}]]|<noinclude><!--
 +
--></noinclude>{{#ifexist:{{{team}}} {{{sex|{{{gender|men}}}}}} tennis team|[[{{{team}}} {{{sex|{{{gender|men's}}}}}} tennis team{{!}}{{{title|}}}]]|<noinclude><!--
 +
--></noinclude>{{#ifexist:{{{team}}} {{{sex|{{{gender|men}}}}}} tennis|[[{{{team}}} {{{sex|{{{gender|men's}}}}}} tennis{{!}}{{{title|}}}]]|<noinclude><!--
 
--></noinclude>{{#ifexist:{{{team}}} tennis team|[[{{{team}}} tennis team{{!}}{{{title|}}}]]|<noinclude><!--
 
--></noinclude>{{#ifexist:{{{team}}} tennis team|[[{{{team}}} tennis team{{!}}{{{title|}}}]]|<noinclude><!--
 
--></noinclude>{{#ifexist:{{{team}}} tennis|[[{{{team}}} tennis{{!}}{{{title|}}}]]|<noinclude><!--
 
--></noinclude>{{#ifexist:{{{team}}} tennis|[[{{{team}}} tennis{{!}}{{{title|}}}]]|<noinclude><!--
Line 6: Line 10:
 
--></noinclude>{{#ifexist:{{{school}}} athletics|[[{{{school}}} athletics{{!}}{{{title|}}}]]|<noinclude><!--
 
--></noinclude>{{#ifexist:{{{school}}} athletics|[[{{{school}}} athletics{{!}}{{{title|}}}]]|<noinclude><!--
 
--></noinclude>[[{{{school}}}{{!}}{{{title|}}}]]<noinclude><!--
 
--></noinclude>[[{{{school}}}{{!}}{{{title|}}}]]<noinclude><!--
−
--></noinclude>}}}}}}}}}}}}</includeonly><noinclude>{{esoteric}}
+
--></noinclude>}}}}}}}}}}}}}}}}}}}}</includeonly><noinclude>{{esoteric}}
−
 
+
{{Documentation}}
−
This template will allow you to link to a [[tennis]] 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:
 
−
 
 
−
<pre><nowiki>{{cfb link|year=2010|team=Richmond Spiders|school=University of Richmond|title=Richmond}}</nowiki></pre>
 
−
 
 
−
This would yield: {{cfb link|year=2010|team=Richmond Spiders|school=University of Richmond|title=Richmond}}
 
−
 
 
−
'''Important''' - whitespace cannot be included or it will be added to the wiki link and it will not function properly.
 
−
 
 
−
==Parameters==
 
−
 
 
−
{| class="wikitable"
 
−
|-
 
−
! 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==
 
−
{| class="wikitable"
 
−
|-
 
−
| <nowiki>{{cfb link|year=2007|team=Virginia Tech Hokies|school=Virginia Polytechnic Institute and State University|title=Virginia Tech}}</nowiki>
 
−
| {{cfb link|year=2007|team=Virginia Tech Hokies|school=Virginia Polytechnic Institute and State University|title=Virginia Tech}}
 
−
|-
 
−
| <nowiki>{{cfb link|year=2006|team=Virginia Tech Hokies|school=Virginia Polytechnic Institute and State University|title=Virginia Tech}}</nowiki>
 
−
| {{cfb link|year=2006|team=Virginia Tech Hokies|school=Virginia Polytechnic Institute and State University|title=Virginia Tech}}
 
−
|-
 
−
| <nowiki>{{cfb link|team=Florida State Seminoles|school=Florida State University|title=FSU}}</nowiki>
 
−
| {{cfb link|team=Florida State Seminoles|school=Florida State University|title=FSU}}
 
−
|}
 
−
 
 
−
==See also==
 
−
* {{tl|alternate links}}
 
−
* {{tl|cbb link}}
 
−
* {{t1|cfb link}}
 
−
 
 
−
[[Category:Internal link templates]]
 
−
[[Category:NCAA individual season templates]]
 
−
[[Category:Tennis templates]]
 
 
</noinclude>
 
</noinclude>

Latest revision as of 06:41, 16 November 2007

50px Template documentation[view] [edit] [history] [purge]


Usage

This template will allow you to link to a tennis 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 men's tennis team that may or may not exist, I would make this call:

{{ct link|season=2011|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.

Parameters

parameter meaning
season (optional) Supply a season if you want to link to the yearly page, e.g., 2006 Virginia Tech Hokies men's tennis team
sex men or women - defaults to men
team The athletics program article for this school, e.g., Virginia Tech Hokies, Wake Forest Demon Deacons, Miami Hurricanes
school The main article for this school, e.g., Florida State University, University of Virginia
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

{{ct link|year=2007|sex=men|team=Virginia Tech Hokies|school=Virginia Polytechnic Institute and State University|title=Virginia Tech}} Virginia Tech
{{ct link|year=2007|team=Virginia Tech Hokies|sex=women|school=Virginia Polytechnic Institute and State University|title=Virginia Tech}} Virginia Tech
{{ct link|team=Florida State Seminoles|sex=men|school=Florida State University|title=FSU}} FSU

See also