Difference between revisions of "Template:Infobox college tennis team"
Jump to navigation
Jump to search
imported>WOSlinker (tidy style for better HTML5 compatibility) |
imported>Colonies Chris m (→top: minor fixes, replaced: Washington (U.S. state)| → Washington (state)|) |
||
(5 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
− | {| | + | {{infobox |
− | + | | bodyclass = vcard | |
− | | | + | |
− | | | + | | aboveclass = fn org |
− | {{#if:{{{ | + | | above = {{{name|<includeonly>{{PAGENAMEBASE}}</includeonly>}}} |
− | + | ||
− | + | | headerstyle = {{#if:{{{bgcolor|}}}{{{hex1|}}} | |
− | + | |{{#if:{{{bgcolor|}}}|background-color:{{{bgcolor}}}|background-color:#{{{hex1|}}}}};color:{{Greater color contrast ratio|{{#if:{{{bgcolor|}}}|{{{bgcolor}}}|{{{hex1|}}}}}}}; | |
− | | | + | |{{#invoke:college color|header1|{{{athletics_name|{{{name|{{PAGENAMEBASE}}}}}}}}}} |
− | | | + | }} |
− | + | | image = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|{{{logo|}}}}}}|size={{{image_size|{{{logo_size|}}}}}}|sizedefault=frameless|title={{{caption|}}}}} | |
− | + | | caption = {{{caption|{{{logo_caption|}}}}}} | |
− | | | + | |
− | + | | label1 = Founded | |
− | | | + | | data1 = {{{founded|}}} |
− | | | + | |
− | + | | label2 = University | |
− | | | + | | data2 = {{#if:{{{university|}}}|[[{{{university}}}]]}} |
− | | | + | |
− | + | | label3 = Athletic director | |
− | + | | data3 = {{{athletic_director|}}} | |
− | + | ||
− | + | | label4 = Head coach | |
− | + | | data4 = {{#if:{{{coach|}}}|<span class="agent">{{{coach}}}</span> {{#if:{{{tenure|}}}|({{{tenure}}} season)}}}} | |
− | | | + | |
− | + | | label5 = Conference | |
− | + | | data5 = {{#if:{{{conference|}}}|[[{{{conference}}}|{{{conference_short|{{{conf_short}}}}}}]] {{#if:{{{division|}}}|<br /> {{{division}}} Division}}}} | |
− | + | ||
− | + | | label6 = Location | |
− | + | | class6 = label | |
− | {{ | + | | data6 = {{#if:{{{location|}}} |
− | + | |{{{location}}} | |
− | {{#if:{{{ | + | |{{#if:{{{city|}}}|[[{{{city}}}, {{{stateabb}}}|{{{city}}}]], <span class="region">{{#if:{{{stateabb|}}} |
− | {{ | + | |{{#switch:{{{state}}} |
− | {{ | + | | Georgia = [[Georgia (U.S. state)|{{{stateabb}}}]] |
− | + | | Washington = [[Washington (state)|{{{stateabb}}}]] | |
− | {{ | + | | #default =[[{{{state}}}|{{{stateabb}}}]] |
− | }} | + | }} |
− | {{#if:{{{ | + | |{{{state|}}} |
− | {{ | + | }}</span>}} |
− | {{ | + | }} |
− | {{ | + | |
− | {{ | + | | label7 = Home Court |
− | }} | + | | data7 = {{#if:{{{stadium|}}}|{{{stadium}}} {{#if:{{{capacity|}}}|<br />(Capacity: {{{capacity}}})}}}} |
− | {{ | + | |
− | + | | label8 = Nickname | |
− | {{ | + | | class8 = nickname |
− | + | | data8 = {{{nickname|}}} | |
− | + | ||
− | + | | label9 = Colors | |
− | {{#if:{{{ | + | | data9 = {{College color list |
− | {{ | + | | color1 = {{{color1|}}} |
− | {{ | + | | color2 = {{{color2|}}} |
− | {{ | + | | color3 = {{{color3|}}} |
− | + | | color4 = {{{color4|}}} | |
− | + | | cite = {{{colorfootnotes|{{{color_footnotes|}}}}}} | |
− | {{#if:{{{NCAAroundof16 | + | | hex1 = {{{hex1|}}} |
− | {{ | + | | hex2 = {{{hex2|}}} |
− | {{ | + | | hex3 = {{{hex3|}}} |
− | {{ | + | | hex4 = {{{hex4|}}} |
− | {{ | + | | team = {{{athletics_name|{{{name|{{PAGENAMEBASE}}}}}}}} |
− | }} | + | }} |
− | {{#if:{{{ | + | |
− | + | | header10 = {{#if:{{{NCAAchampion|}}}|NCAA Tournament championships}} | |
− | {{ | + | | data11 = {{#if:{{{NCAAchampion|}}}|'''{{{NCAAchampion|N/A}}}'''}} |
− | { | + | |
− | + | | header12 = {{#if:{{{NCAArunnerup|}}}|NCAA Tournament runner-up}} | |
− | }} | + | | data13 = {{#if:{{{NCAArunnerup|}}}|'''{{{NCAArunnerup|N/A}}}'''}} |
− | {{# | + | |
− | {{ | + | | header14 = {{#if:{{{NCAAsemifinals|}}}|NCAA Tournament Semifinals}} |
− | + | | data15 = {{#if:{{{NCAAsemifinals|}}}|'''{{{NCAAsemifinals|N/A}}}'''}} | |
− | + | ||
− | + | | header16 = {{#if:{{{NCAAquarterfinals|}}}|NCAA Tournament Quarterfinals}} | |
− | + | | data17 = {{#if:{{{NCAAquarterfinals|}}}|'''{{{NCAAquarterfinals|N/A}}}'''}} | |
− | + | ||
− | + | | header18 = {{#if:{{{NCAAroundof16|}}}|NCAA Tournament Round of 16}} | |
− | + | | data19 = {{#if:{{{NCAAroundof16|}}}|'''{{{NCAAroundof16|N/A}}}'''}} | |
− | + | ||
− | + | | header20 = {{#if:{{{NCAAroundof32|}}}|NCAA Tournament Round of 32}} | |
− | + | | data21 = {{#if:{{{NCAAroundof32|}}}|'''{{{NCAAroundof32|N/A}}}'''}} | |
− | + | ||
− | + | | header22 = {{#if:{{{NCAAtourneys|}}}|NCAA Tournament appearances}} | |
− | + | | data23 = {{#if:{{{NCAAtourneys|}}}|'''{{{NCAAtourneys|N/A}}}'''}} | |
− | + | ||
− | + | | header24 = {{#if:{{{conference_tournament|}}}|Conference Tournament championships}} | |
− | + | | data25 = {{#if:{{{conference_tournament|}}}|'''{{{conference_tournament|N/A}}}'''}} | |
+ | |||
+ | | header26 = {{#if:{{{conference_season|}}}|Conference regular season champions}} | ||
+ | | data27 = {{#if:{{{conference_season|}}}|'''{{{conference_season|N/A}}}'''}} | ||
+ | |||
+ | }}{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox college sports team with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox college tennis team]] with unknown parameter "_VALUE_"|ignoreblank=y| athletics_name | bgcolor | capacity | caption | city | athletic_director | coach | color_footnotes | color1 | color2 | color3 | color4 | colorfootnotes | conf_short | conference | conference_season | conference_short | conference_tournament | division | founded | hex1 | hex2 | hex3 | hex4 | image | image_size | location | logo | logo_caption | logo_size | name | NCAAchampion | NCAAquarterfinals | NCAAroundof16 | NCAAroundof32 | NCAArunnerup | NCAAsemifinals | NCAAtourneys | nickname | stadium | state | stateabb | tenure | university }}<noinclude> | ||
{{documentation}} | {{documentation}} | ||
[[Category:College tennis teams in the United States|*]] | [[Category:College tennis teams in the United States|*]] | ||
[[Category:American college sports infobox templates|Tennis teams]] | [[Category:American college sports infobox templates|Tennis teams]] | ||
</noinclude> | </noinclude> |
Latest revision as of 12:24, 15 May 2020
[[Category:Infobox templates|Template:Remove first word]]
![]() | This template uses Lua: |
Contents
Usage
Template:Parameter names example
{{Infobox college tennis team | name = | logo = | logo_size = | founded = | university = | athletic_director = | coach = | tenure = | conference = | conference_short = | division = | location = | city = | state = | stateabb = | stadium = | nickname = | color1 = | color2 = | color3 = | color4 = | colorfootnotes = | hex1 = | hex2 = | hex3 = | hex4 = | NCAAchampion = | NCAArunnerup = | NCAAsemifinals = | NCAAquarterfinals = | NCAAroundof16 = | NCAAroundof32 = | NCAAtourneys = | conference_tournament = | conference_season = }}
Parameters
Required parameters
- logo
- The team's logo (e.g., Image.jpg)
- university
- conference
- city
- state
- stateabb
- coach
- tenure
- stadium
- nickname
- color1
- color2
- hex1
- hex2
Optional parameters
- name
- Team name (defaults to full page name)
- logo_size
- The size in pixels at which the logo should be displayed (defaults to 100x150)
- founded
- conference_short
- division
- location
- Alternative to using city/state/stateabb
- color3
- color4
- colorfootnotes
- hex3
- hex4
- NCAAchampion
- List years of NCAA championships
- NCAArunnerup
- List years of NCAA Championship Runner Ups
- NCAAsemifinals
- List years of NCAA Championship Semifinals
- NCAAquarterfinals
- List years of NCAA Championship Quarterfinals
- NCAAroundof16
- List years of NCAA Championship Round of 16
- NCAAroundof32
- List years of NCAA Championship Round of 32
- NCAAtourneys
- List years of NCAA Tournament Appearances
- conference_tournament
- List years in which team won conference tournament
- conference_season
- List years in which team won conference regular season championship
Tracking category
Supporting template
The above documentation is transcluded from Template:Infobox college tennis team/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |