Difference between revisions of "Template:Infobox college sports team season/link"

From blackwiki
Jump to navigation Jump to search
imported>Plastikspork
m (Protected Template:Infobox NCAA team season/link: Highly visible template ([Edit=Allow only autoconfirmed users] (indefinite) [Move=Allow only autoconfirmed users] (indefinite)))
imported>Frietjes
 
(8 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{#if:{{#if:{{{noredlink|}}}|{{#ifexist:{{#if:{{{year|}}}|{{{year}}} {{{team}}}|{{{team}}}}} {{#switch:{{lc:{{{sport}}} }}
+
{{#if:{{#if:{{{noredlink|}}}|{{#ifexist:{{Infobox college sports team season/team|year={{{year|}}}|team={{{team_link|{{{team|}}}}}}|sport={{{sport|}}}|sex={{{sex|}}}}}|1}}|1}}
  |basketball={{{sex|men}}}'s basketball
+
|{{#switch:{{{text|}}}
  |men's basketball = men's basketball
+
   |={{{pre|}}}{{#ifeq:{{{team_link|{{{team|}}}}}}|{{{team|}}}
  |women's basketball = women's basketball
+
    |[[{{Infobox college sports team season/team|year={{{year|}}}|team={{{team|}}}|sport={{{sport|}}}|sex={{{sex|}}}}}]]
  |ice hockey={{{sex|men}}}'s ice hockey
+
    |[[{{Infobox college sports team season/team|year={{{year|}}}|team={{{team_link|{{{team|}}}}}}|sport={{{sport|}}}|sex={{{sex|}}}}}|{{Infobox college sports team season/team|year={{{year|}}}|team={{{team|}}}|sport={{{sport|}}}|sex={{{sex|}}}}}]]
   |men's ice hockey = men's ice hockey
+
    }}{{{post|}}}
  |women's ice hockey = women's ice hockey
+
   |year={{{pre|}}}[[{{Infobox college sports team season/team|year={{{year|}}}|team={{{team_link|{{{team|}}}}}}|sport={{{sport|}}}|sex={{{sex|}}}}}|{{{year}}}]]{{{post|}}}
  |football=football
+
  |#default={{{pre|}}}[[{{Infobox college sports team season/team|year={{{year|}}}|team={{{team_link|{{{team|}}}}}}|sport={{{sport|}}}|sex={{{sex|}}}}}|{{{text}}}]]{{{post|}}}
  |baseball=baseball
 
  |softball=softball
 
  |soccer={{{sex|men}}}'s soccer
 
  |men's soccer=men's soccer
 
  |women's soccer=women's soccer
 
  |tennis={{{sex|men}}}'s tennis
 
  |men's tennis=men's tennis
 
  |women's tennis=women's tennis
 
  |#default={{{sport}}}
 
  }} {{#if:{{{year|}}}|team}}|1}}|1}}
 
|{{#if:{{{text|}}}
 
  |{{{pre|}}}[[{{#if:{{{year|}}}|{{{year}}} {{{team}}}|{{{team}}}}} {{#switch:{{lc:{{{sport}}} }}
 
    |basketball={{{sex|men}}}'s basketball
 
    |men's basketball = men's basketball
 
    |women's basketball = women's basketball
 
    |ice hockey={{{sex|men}}}'s ice hockey
 
    |men's ice hockey = men's ice hockey
 
    |women's ice hockey = women's ice hockey
 
    |football=football
 
    |baseball=baseball
 
    |softball=softball
 
    |soccer={{{sex|men}}}'s soccer
 
    |men's soccer=men's soccer
 
    |women's soccer=women's soccer
 
    |tennis={{{sex|men}}}'s tennis
 
    |men's tennis=men's tennis
 
    |women's tennis=women's tennis
 
    |#default={{{sport}}}
 
    }} {{#if:{{{year|}}}|team}}|{{{text}}}]]{{{post|}}}
 
   |{{{pre|}}}[[{{#if:{{{year|}}}|{{{year}}} {{{team}}}|{{{team}}}}} {{#switch:{{lc:{{{sport}}} }}
 
    |basketball={{{sex|men}}}'s basketball
 
    |men's basketball = men's basketball
 
    |women's basketball = women's basketball
 
    |ice hockey={{{sex|men}}}'s ice hockey
 
    |men's ice hockey = men's ice hockey
 
    |women's ice hockey = women's ice hockey
 
    |football=football
 
    |baseball=baseball
 
    |softball=softball
 
    |soccer={{{sex|men}}}'s soccer
 
    |men's soccer=men's soccer
 
    |women's soccer=women's soccer
 
    |tennis={{{sex|men}}}'s tennis
 
    |men's tennis=men's tennis
 
    |women's tennis=women's tennis
 
    |#default={{{sport}}}
 
    }} {{#if:{{{year|}}}|team}}]]{{{post|}}}
 
 
   }}
 
   }}
|{{{pre|}}}{{{text|}}}{{{post|}}}
+
|{{{pre|}}}{{#ifeq:{{{text|}}}|year|{{{year|}}}|{{{text|}}}}}{{{post|}}}
 
}}<noinclude>
 
}}<noinclude>
 
{{documentation|content=
 
{{documentation|content=
This subtemplate is used to generate team and season article links for {{tl|Infobox NCAA team season}}.  It should not be used directly.
+
This subtemplate is used to generate team and season article links for {{tl|Infobox college sports team season}}.  It should not be used directly.
  
 
== Usage ==
 
== Usage ==
 
<pre>
 
<pre>
{{Infobox NCAA team season/link
+
{{Infobox college sports team season/link
 
| pre =  
 
| pre =  
 
| year =  
 
| year =  

Latest revision as of 14:04, 8 September 2020

[[Template:MultiReplace]]

Template documentation

This subtemplate is used to generate team and season article links for {{Infobox college sports team season}}. It should not be used directly.

Usage

{{Infobox college sports team season/link
| pre = 
| year = 
| team = 
| sex = 
| sport =
| post =
| noredlink =
}}