Difference between revisions of "Template:Infobox NCAA basketball rankings"

From blackwiki
Jump to navigation Jump to search
imported>Hoof Hearted
(Remove duplicate link to NCAA Tournament - this is already listed in data2 piped under the year)
imported>Swimmer33
(- moved location of division 1 to prevent redirect links in 2019-2020)
 
Line 8: Line 8:
 
| data1 = [[{{{year|{{CURRENTYEAR}}}}}&ndash;{{two digit year|{{#expr:{{{year|{{CURRENTYEAR}}}}}+1}}}} NCAA {{#ifexpr:{{{year|{{CURRENTYEAR}}}}}<1973|{{#ifexpr:{{{year|{{CURRENTYEAR}}}}}<1956||University Division}}|Division I}} {{#switch:{{lc:{{{gender|}}}}}|w|women|women's=women's|#default=men's}} basketball season|{{{year|{{CURRENTYEAR}}}}}&ndash;{{two digit year|{{#expr:{{{year|{{CURRENTYEAR}}}}}+1}}}}]]
 
| data1 = [[{{{year|{{CURRENTYEAR}}}}}&ndash;{{two digit year|{{#expr:{{{year|{{CURRENTYEAR}}}}}+1}}}} NCAA {{#ifexpr:{{{year|{{CURRENTYEAR}}}}}<1973|{{#ifexpr:{{{year|{{CURRENTYEAR}}}}}<1956||University Division}}|Division I}} {{#switch:{{lc:{{{gender|}}}}}|w|women|women's=women's|#default=men's}} basketball season|{{{year|{{CURRENTYEAR}}}}}&ndash;{{two digit year|{{#expr:{{{year|{{CURRENTYEAR}}}}}+1}}}}]]
 
| label2 = NCAA Tournament
 
| label2 = NCAA Tournament
| data2 = [[{{#expr:{{{year|{{CURRENTYEAR}}}}}+1}} NCAA {{#switch:{{lc:{{{gender|}}}}}|w|women|women's=Women's|#default=Men's}} Division I Basketball Tournament|{{#expr:{{{year|{{CURRENTYEAR}}}}}+1}}]]
+
| data2 = [[{{#expr:{{{year|{{CURRENTYEAR}}}}}+1}} NCAA Division I {{#switch:{{lc:{{{gender|}}}}}|w|women|women's=Women's|#default=Men's}} Basketball Tournament|{{#expr:{{{year|{{CURRENTYEAR}}}}}+1}}]]
 
| label3 = Preseason #1
 
| label3 = Preseason #1
 
| data3 = {{#if:{{{preseason_number_1|}}}| <div class="nowrap">{{{preseason_number_1}}}</div> }}
 
| data3 = {{#if:{{{preseason_number_1|}}}| <div class="nowrap">{{{preseason_number_1}}}</div> }}

Latest revision as of 17:36, 9 March 2020

[[Category:Infobox templates|Template:Remove first word]]

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

Usage

{{Infobox NCAA basketball rankings
| year =
| gender =  
| image = 
| image_caption = 
| preseason_number_1 = 
| ncaa_champions = 
}}

Parameters

* denotes a required field

Parameter Explanation Example
year* The year of the start of the season. For instance, for the 2007–08 season, you would enter 2007. 2007
gender Default is men's
image An image for the rankings in that season if there is one. Follow Wikipedia guidelines. [[File:Bad Title Example.png|200px]]
image_caption A caption for the image, if provided Image of the 2007–08 season final AP Poll.
preseason_number_1 The team ranked #1 in the pre-season AP Poll. [[2007-08 North Carolina Tar Heels men's basketball team|North Carolina]]
ncaa_champions The name of the team that won the NCAA Championship (the last game in the NCAA Tournament) for that season. [[2007-08 Kansas Jayhawks men's basketball team|Kansas]]

Example 1

[[Category:Infobox templates|Template:Remove first word]]
{{Infobox NCAA basketball rankings
| year = 2007
| image = [[File:Bad Title Example.png|200px]]
| image_caption = Image of the 2007–08 season final AP Poll.
| preseason_number_1 = [[North Carolina Tar Heels men's basketball|North Carolina]]
| ncaa_champions = [[2007-08 Kansas Jayhawks men's basketball team|Kansas]]
}}

Example 2

[[Category:Infobox templates|Template:Remove first word]]
{{Infobox NCAA basketball rankings
| year = 2009
| gender = women's
| image = [[File:Bad Title Example.png|200px]]
| image_caption = Image of the 2009–10 season final AP Poll.
| preseason_number_1 = [[2009–10 Connecticut Huskies women's basketball team|Connecticut]]
| ncaa_champions = [[2009–10 Connecticut Huskies women's basketball team|Connecticut]]
}}