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

From blackwiki
Jump to navigation Jump to search
imported>Frietjes
imported>Frietjes
(try to make this more readible by splitting it)
Line 1: Line 1:
{{#Invoke:String|replace|{{#Invoke:String|replace|{{#Invoke:String|replace|{{#if:{{{year|}}}|{{{year}}} {{{team}}}|{{{team}}}}} {{#switch:{{lc:{{{sport}}} }}
+
{{Infobox NCAA team season/name
 +
|name={{#if:{{{year|}}}|{{{year}}} {{{team}}}|{{{team}}}}} {{#switch:{{lc:{{{sport}}} }}
 
     |basketball={{#if:{{{sex|}}}|{{{sex}}}|men}}'s basketball
 
     |basketball={{#if:{{{sex|}}}|{{{sex}}}|men}}'s basketball
 
     |men's basketball = men's basketball
 
     |men's basketball = men's basketball
Line 16: Line 17:
 
     |women's tennis=women's tennis
 
     |women's tennis=women's tennis
 
     |#default={{{sport}}}
 
     |#default={{{sport}}}
     }} {{#if:{{{year|}}}|team}}|(.* Lady)(.*) women's|%1%2|plain=false}}|(.* Cowgirl)(.*) women's|%1%2|plain=false}}|(.* T–Birds)(.*) women's|%1%2|plain=false}}<noinclude>
+
     }} {{#if:{{{year|}}}|team}}
 +
}}<noinclude>
 
{{documentation|content=
 
{{documentation|content=
This subtemplate is used to remove redundant "women's team" text from team and season article links for {{tl|Infobox NCAA team season}}. It should not be used directly.
+
This subtemplate is used to generate the full season team name and season name for team and season article links in {{tl|Infobox NCAA team season}}. This subtemplate uses {{tl|Infobox NCAA team season/name}} to remove redundant "women's team" text in some team names (e.g., Lady or Cowgirl). It should not be used directly.
  
 
== Usage ==
 
== Usage ==

Revision as of 15:27, 13 October 2013

Template:MultiReplace

Template documentation

This subtemplate is used to generate the full season team name and season name for team and season article links in {{Infobox NCAA team season}}. This subtemplate uses {{Infobox NCAA team season/name}} to remove redundant "women's team" text in some team names (e.g., Lady or Cowgirl). It should not be used directly.

Usage

{{Infobox NCAA team season/team
| year = 
| team = 
| sex = 
| sport =
}}

Examples

  • {{Infobox NCAA team season/team|year=1992–93|team=Texas Tech Lady Raiders|sport=women's basketball}}
    Template:MultiReplace
  • {{Infobox NCAA team season/team|year=1992–93|team=Texas Tech Lady Raiders|sport=basketball|sex=women}}
    Template:MultiReplace
  • {{Infobox NCAA team season/team|year=2009–10|team=Wyoming Cowgirls|sport=women's basketball}}
    Template:MultiReplace
  • {{Infobox NCAA team season/team|year=2009–10|team=Wyoming Cowgirls|sport=basketball|sex=women}}
    Template:MultiReplace
  • {{Infobox NCAA team season/team|year=1992–93|team=Texas Tech Raiders|sport=basketball}}
    Template:MultiReplace
  • {{Infobox NCAA team season/team|year=2009–10|team=Wyoming Cowboys|sport=basketball}}
    Template:MultiReplace
  • {{Infobox NCAA team season/team|year=2013–14|team=Southern Utah T–Birds|sport=women's basketball}}
    Template:MultiReplace