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

From blackwiki
Jump to navigation Jump to search
imported>Pigsonthewing
imported>Frietjes
(add gender switch)
Line 1: Line 1:
{{Tfm/dated|page=Infobox NCAA basketball rankings|otherpage=Infobox NCAA women's basketball rankings|link=Wikipedia:Templates for discussion/Log/2015 March 14#Template:Infobox NCAA basketball rankings|type=sidebar|help=off}}
+
{{Tfm/dated|page=Infobox NCAA basketball rankings|otherpage=Infobox NCAA wo{{#switch:{{lc:{{{gender|}}}}}|w|women|women's=women's|#default=men's}} basketball rankings|link=Wikipedia:Templates for discussion/Log/2015 March 14#Template:Infobox NCAA basketball rankings|type=sidebar|help=off}}
 
{| class="infobox nowraplinks" width="300" cellspacing="0" style="font-size:90%;"
 
{| class="infobox nowraplinks" width="300" cellspacing="0" style="font-size:90%;"
 
|-
 
|-
! colspan="2" style="font-size: medium;" | {{{year|{{CURRENTYEAR}}}}}–{{two digit year|{{#expr:{{{year|{{CURRENTYEAR}}}}}+1}}}} NCAA Division I men's basketball rankings
+
! colspan="2" style="font-size: medium;" | {{{year|{{CURRENTYEAR}}}}}–{{two digit year|{{#expr:{{{year|{{CURRENTYEAR}}}}}+1}}}} NCAA Division I {{#switch:{{lc:{{{gender|}}}}}|w|women|women's=women's|#default=men's}} basketball rankings
 
|-
 
|-
 
{{#if:{{{image|}}}|
 
{{#if:{{{image|}}}|
Line 9: Line 9:
 
{{!}}- }}
 
{{!}}- }}
 
|-
 
|-
| '''Season''' || [[{{{year|{{CURRENTYEAR}}}}}–{{two digit year|{{#expr:{{{year|{{CURRENTYEAR}}}}}+1}}}} NCAA Division I men's basketball season|{{{year|{{CURRENTYEAR}}}}}–{{two digit year|{{#expr:{{{year|{{CURRENTYEAR}}}}}+1}}}}]]
+
| '''Season''' || [[{{{year|{{CURRENTYEAR}}}}}–{{two digit year|{{#expr:{{{year|{{CURRENTYEAR}}}}}+1}}}} NCAA Division I {{#switch:{{lc:{{{gender|}}}}}|w|women|women's=women's|#default=men's}} basketball season|{{{year|{{CURRENTYEAR}}}}}–{{two digit year|{{#expr:{{{year|{{CURRENTYEAR}}}}}+1}}}}]]
 
|-
 
|-
| '''NCAA Tournament''' || [[{{#expr:{{{year|{{CURRENTYEAR}}}}}+1}} NCAA Men's Division I Basketball Tournament|{{#expr:{{{year|{{CURRENTYEAR}}}}}+1}}]]
+
| '''NCAA Tournament''' || [[{{#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}}]]
 
|-
 
|-
 
{{#if:{{{preseason_number_1|}}}|
 
{{#if:{{{preseason_number_1|}}}|
Line 18: Line 18:
 
}}
 
}}
 
{{#if:{{{ncaa_champions|}}}|
 
{{#if:{{{ncaa_champions|}}}|
{{!}} style="vertical-align:middle;" {{!}} '''[[{{#expr:{{{year|{{CURRENTYEAR}}}}}+1}} NCAA Men's Division I Basketball Tournament|NCAA Tournament Champions]]''' {{!}}{{!}} {{{ncaa_champions|}}}
+
{{!}} style="vertical-align:middle;" {{!}} '''[[{{#expr:{{{year|{{CURRENTYEAR}}}}}+1}} NCAA {{#switch:{{lc:{{{gender|}}}}}|w|women|women's=Women's|#default=Men's}} Division I Basketball Tournament|NCAA Tournament Champions]]''' {{!}}{{!}} {{{ncaa_champions|}}}
 
{{!}}-
 
{{!}}-
 
}}
 
}}
 
|- style="background:#eee;"
 
|- style="background:#eee;"
| align="center" colspan="2" | NCAA Division I men's basketball rankings
+
| align="center" colspan="2" | NCAA Division I {{#switch:{{lc:{{{gender|}}}}}|w|women|women's=women's|#default=men's}} basketball rankings
 
{| style="font-size:90%; width:80%; border:1px; border-collapse:collapse; background:#eee; line-height:90%;"
 
{| style="font-size:90%; width:80%; border:1px; border-collapse:collapse; background:#eee; line-height:90%;"
 
|-  
 
|-  
| align="center" width=45% | «[[{{#expr:{{{year|{{CURRENTYEAR}}}}}-1}}–{{two digit year|{{#expr:{{{year|{{CURRENTYEAR}}}}}}}}} NCAA Division I men's basketball rankings|{{#expr:{{{year|{{CURRENTYEAR}}}}}-1}}–{{two digit year|{{{year|{{CURRENTYEAR}}}}}}}]] 
+
| align="center" width=45% | «[[{{#expr:{{{year|{{CURRENTYEAR}}}}}-1}}–{{two digit year|{{#expr:{{{year|{{CURRENTYEAR}}}}}}}}} NCAA Division I {{#switch:{{lc:{{{gender|}}}}}|w|women|women's=women's|#default=men's}} basketball rankings|{{#expr:{{{year|{{CURRENTYEAR}}}}}-1}}–{{two digit year|{{{year|{{CURRENTYEAR}}}}}}}]] 
| align="center" width=45% | [[{{#expr:{{{year|{{CURRENTYEAR}}}}}+1}}–{{two digit year|{{#expr:{{{year|{{CURRENTYEAR}}}}}+2}}}} NCAA Division I men's basketball rankings|{{#expr:{{{year|{{CURRENTYEAR}}}}}+1}}–{{two digit year|{{#expr:{{{year|{{CURRENTYEAR}}}}}+2}}}}]]»
+
| align="center" width=45% | [[{{#expr:{{{year|{{CURRENTYEAR}}}}}+1}}–{{two digit year|{{#expr:{{{year|{{CURRENTYEAR}}}}}+2}}}} NCAA Division I {{#switch:{{lc:{{{gender|}}}}}|w|women|women's=women's|#default=men's}} basketball rankings|{{#expr:{{{year|{{CURRENTYEAR}}}}}+1}}–{{two digit year|{{#expr:{{{year|{{CURRENTYEAR}}}}}+2}}}}]]»
 
|}
 
|}
 
|}<noinclude>{{template doc}}</noinclude>
 
|}<noinclude>{{template doc}}</noinclude>

Revision as of 22:04, 3 April 2015

Template:Tfm/dated

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

Template:Tfm/dated

{{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

Template:Tfm/dated

{{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]]
}}