Difference between revisions of "Template:Infobox national tournament"

From Wiki - Scioly.org
Jump to navigation Jump to search
(Added logo, lat, long, state)
(Max width on map way too big)
(21 intermediate revisions by 6 users not shown)
Line 1: Line 1:
 
{|align="right" class="infobox"
 
{|align="right" class="infobox"
 
|-
 
|-
! colspan="2" style="font-size: larger; text-align: center;" | '''{{PAGENAME}}'''
+
! colspan="2" style="font-size: larger; text-align: center;" | '''{{#if: {{{namestyle|}}}|{{{namestyle|}}}|{{PAGENAME}}}}'''
 
|-
 
|-
 
{{#if: {{{logo|}}}|
 
{{#if: {{{logo|}}}|
{{!}}[[{{{logo|}}}|250px]]
+
{{!}}colspan="2"{{!}}<center>[[{{{logo|}}}|150px]]</center>
 
{{!}}-
 
{{!}}-
 
}}
 
}}
Line 16: Line 16:
 
|{{#if: {{{state|}}}|{{#if: {{{long|}}}| {{#if: {{{lat|}}}|
 
|{{#if: {{{state|}}}|{{#if: {{{long|}}}| {{#if: {{{lat|}}}|
 
{{!}}'''Map'''
 
{{!}}'''Map'''
{{!}}{{Location map
+
{{!}}{{Location map | {{{state|}}}
| mapname = File:{{{state|}}}.svg
+
| max_width = 200
| width=250
+
| float = none
| p1lat={{{lat|}}}
+
| caption =
| p1long={{{long|}}}
+
| label = {{{Host|}}}
| p1icon=File:Red pog.svg
+
  | coordinates = {{coord|{{{lat|}}}|{{{long|}}}}}
 
}}
 
}}
 
{{!}}-
 
{{!}}-
Line 53: Line 53:
 
{{!}}-
 
{{!}}-
 
}}
 
}}
{{#if: {{{DuPontB|}}}{{{DuPontC|}}}{{{LockheedB|}}}{{{LockheedC|}}}| {{!}}colspan="2" class="infobox-header"{{!}}'''Awards Information'''
+
{{#if: {{{1stBName|}}}{{{1stBPoints|}}}{{{1stCName|}}}{{{1stCPoints|}}}{{{2ndBName|}}}{{{2ndBPoints|}}}{{{2ndCName|}}}{{{2ndCPoints|}}}{{{3rdBName|}}}{{{3rdBPoints|}}}{{{3rdCName|}}}{{{3rdCPoints|}}}| {{!}}colspan="2" class="infobox-header"{{!}}'''Results'''
 +
{{!}}-
 +
{{!}}colspan="2" style="padding: 0;"{{!}}
 +
{{{!}}class="infobox-scoreboard" style="margin: 0; padding: 0; width:100%;"
 +
{{!}}-
 +
{{!}}colspan="3" style="text-align: center;"{{!}}'''Division B'''
 +
{{!}}-
 +
{{!}}- style="background-color: gold;"
 +
{{!}}style="width: 10%; text-align: center;"{{!}}'''1st'''
 +
{{!}}style="width: 80%; padding-left: 5px;"{{!}} '''{{{1stBName|}}}'''
 +
{{!}}style="width: 10%; text-align: center;"{{!}}'''{{{1stBPoints|}}}'''
 +
{{!}}- style="background-color: silver;"
 +
{{!}}style="width: 10%; text-align: center;"{{!}}2nd
 +
{{!}}style="width: 80%; padding-left: 5px;"{{!}}{{{2ndBName|}}}
 +
{{!}}style="width: 10%; text-align: center;"{{!}}{{{2ndBPoints|}}}
 +
{{!}}- style="background-color: #d1965c;"
 +
{{!}}style="width: 10%; text-align: center;"{{!}}3rd
 +
{{!}}style="width: 80%; padding-left: 5px;"{{!}}{{{3rdBName|}}}
 +
{{!}}style="width: 10%; text-align: center;"{{!}}{{{3rdBPoints|}}}
 +
{{!}}-
 +
{{!}}colspan="3" style="text-align: center;"{{!}}'''Division C'''
 +
{{!}}-
 +
{{!}}- style="background-color: gold;"
 +
{{!}}style="width: 10%; text-align: center;"{{!}}'''1st'''
 +
{{!}}style="width: 80%; padding-left: 5px;"{{!}} '''{{{1stCName|}}}'''
 +
{{!}}style="width: 10%; text-align: center;"{{!}}'''{{{1stCPoints|}}}'''
 +
{{!}}- style="background-color: silver;"
 +
{{!}}style="width: 10%; text-align: center;"{{!}}2nd
 +
{{!}}style="width: 80%; padding-left: 5px;"{{!}}{{{2ndCName|}}}
 +
{{!}}style="width: 10%; text-align: center;"{{!}}{{{2ndCPoints|}}}
 +
{{!}}- style="background-color: #d1965c;"
 +
{{!}}style="width: 10%; text-align: center;"{{!}}3rd
 +
{{!}}style="width: 80%; padding-left: 5px;"{{!}}{{{3rdCName|}}}
 +
{{!}}style="width: 10%; text-align: center;"{{!}}{{{3rdCPoints|}}}
 +
{{#if: {{{1stCPoints|}}} |
 +
  {{#ifexpr: {{{1stCPoints|}}} > {{{2ndCPoints|}}} |
 +
  {{!}}-
 +
  {{!}}colspan="3" style="text-align: center;"{{!}}''High scores were used to determine winners at this tournament''
 +
  |
 +
      {{#ifexpr: {{{2ndCPoints|}}} > {{{3rdCPoints|}}} |
 +
        {{!}}-
 +
        {{!}}colspan="3" style="text-align: center;"{{!}}''High scores were used to determine winners at this tournament''
 +
      }}
 +
  }}
 +
|  {{#if: {{{1stBPoints|}}} |
 +
      {{#ifexpr: {{{1stBPoints|}}} > {{{2ndBPoints|}}} |
 +
        {{!}}-
 +
        {{!}}colspan="3" style="text-align: center;"{{!}}''High scores were used to determine winners at this tournament''
 +
      |
 +
        {{#ifexpr: {{{2ndBPoints|}}} > {{{3rdBPoints|}}} |
 +
            {{!}}-
 +
            {{!}}colspan="3" style="text-align: center;"{{!}}''High scores were used to determine winners at this tournament''}}
 +
      }}
 +
  }}
 +
}}
 +
{{!}}-
 +
{{!}}}
 +
{{!}}-
 +
}}
 +
{{#if: {{{DuPontB|}}}{{{DuPontC|}}}{{{LockheedB|}}}{{{LockheedC|}}}{{{CortevaB|}}}{{{CortevaC|}}}| {{!}}colspan="2" class="infobox-header"{{!}}'''Awards Information'''
 
{{!}}-
 
{{!}}-
 
}}
 
}}
Line 64: Line 123:
 
{{!}}'''DuPont Team Enterprise Award (C)'''
 
{{!}}'''DuPont Team Enterprise Award (C)'''
 
{{!}}{{{DuPontC|}}}
 
{{!}}{{{DuPontC|}}}
 +
{{!}}-
 +
}}
 +
{{#if: {{{CortevaB|}}}|
 +
{{!}}'''Corteva Enterprise Award (B)'''
 +
{{!}}{{{CortevaB|}}}
 +
{{!}}-
 +
}}
 +
{{#if: {{{CortevaC|}}}|
 +
{{!}}'''Corteva Enterprise Award (C)'''
 +
{{!}}{{{CortevaC|}}}
 
{{!}}-
 
{{!}}-
 
}}
 
}}
Line 81: Line 150:
 
{{!}}-
 
{{!}}-
 
}}
 
}}
 +
{{#if: {{{Prev|}}}{{{Year|}}}| {{!}}colspan="2" class="infobox-header"{{!}}
 +
{{{!}}style="width: 100%; line-height: 1; padding: 0; margin: 0;"
 +
{{!}}-
 +
{{!}}style="width: 35%;"{{!}}← {{{Prev}}}
 +
{{!}}style="width: 30%;"{{!}}'''[[{{PAGENAME}}|{{{Year}}}]]'''
 +
{{!}}style="width: 35%;"{{!}}{{{Next}}} →
 +
{{!}}-
 +
{{!}}}
 +
 +
{{!}}-
 +
}}
 +
 
|}
 
|}
 
<noinclude>
 
<noinclude>
{{NationalInfoBox/doc}}
+
{{Documentation}}
[[Category:Templates]]
 
[[Category:Organization Templates]]
 
 
</noinclude>
 
</noinclude>

Revision as of 17:59, 18 February 2021

Infobox national tournament
Template documentation[view] [edit] [history] [purge]

The Infobox national tournament template is a template used to generate an infobox for a national tournament.

Parameters

Location

state - the state of the tournament
lat - the latitude of the host of the tournament
long - the longitude of the host of the tournament
map - a custom map showing the tournament location (note: please use state, lat, and long typically, and only use this parameter if needed)

General Information

logo - the file name of the logo of the tournament
Host - the host of the tournament
Total teams - the total number of teams at the tournament
ChampionB - the Division B champion
ChampionC - the Division C champion
Date - the dates on which the competition was held

Results

1stBName - the name of the Division B 1st place winner
2ndBName - the name of the Division B 2nd place winner
3rdBName - the name of the Division B 3rd place winner
1stBPoints - the points earned by the Division B 1st place winner
2ndBPoints - the points earned by the Division B 2nd place winner
3rdBPoints - the points earned by the Division B 3rd place winner
1stCName - the name of the Division C 1st place winner
2ndCName - the name of the Division C 2nd place winner
3rdCName - the name of the Division C 3rd place winner
1stCPoints - the points earned by the Division C 1st place winner
2ndCPoints - the points earned by the Division C 2nd place winner
3rdCPoints - the points earned by the Division C 3rd place winner

Awards

DuPontB - the division B winner of the DuPont Team Enterprise Award (only for tournaments from 2018 and earlier)
DuPontC - the division C winner of the DuPont Team Enterprise Award (only for tournaments from 2018 and earlier)
CortevaB - the division B winner of the Corteva Enterprise Award (only for tournaments from 2019 and later)
CortevaC - the division C winner of the Corteva Enterprise Award (only for tournaments from 2019 and later)
LockheedB - the division B winner of the Lockheed Martin Spirit Award
LockheedC - the division C winner of the Lockheed Martin Spirit Award
Website - the tournament website

Navigation

Prev - the previous tournament's wiki
Next - the next tournament's wiki
Year - the current tournament's year

Usage

The template should be placed at the very top of an article, with no empty line breaks before or after the template

Examples

Code Result
{{Infobox national tournament
|Host=Cornell University}}
Infobox national tournament
General Information
Host Cornell University
{{Infobox national tournament
|Host=Cornell University
|Total teams=120
|ChampionB=Ladue Middle School
|ChampionC=Ladue Horton Watkins High School
|Date=January 1-3, 2020
|Website=http://www.scioly.org}}
Infobox national tournament
General Information
Host Cornell University
Total teams 120
Division B Champion Ladue Middle School
Division C Champion Ladue Horton Watkins High School
Date January 1-3, 2020
Website http://www.scioly.org
{{Infobox national tournament
|Host=Cornell University
|Total teams=120
|ChampionB=Ladue Middle School
|ChampionC=Ladue Horton Watkins High School
|DuPontB=Ladue Middle School
|DuPontC=Ladue Horton Watkins High School
|LockheedB=Ladue Middle School
|LockheedC=Ladue Horton Watkins High School
|Date=January 1-3, 2020
|Website=http://www.scioly.org}}
Infobox national tournament
General Information
Host Cornell University
Total teams 120
Division B Champion Ladue Middle School
Division C Champion Ladue Horton Watkins High School
Date January 1-3, 2020
Awards Information
DuPont Team Enterprise Award (B) Ladue Middle School
DuPont Team Enterprise Award (C) Ladue Horton Watkins High School
Lockheed Martin Spirit Award (B) Ladue Middle School
Lockheed Martin Spirit Award (C) Ladue Horton Watkins High School
Website http://www.scioly.org
{{Infobox national tournament
|Host=Cornell University
|Total teams=120
|ChampionB=Ladue Middle School
|ChampionC=Ladue Horton Watkins High School
|CortevaB=Ladue Middle School
|CortevaC=Ladue Horton Watkins High School
|LockheedB=Ladue Middle School
|LockheedC=Ladue Horton Watkins High School
|Date=January 1-3, 2020
|Website=http://www.scioly.org}}
Infobox national tournament
General Information
Host Cornell University
Total teams 120
Division B Champion Ladue Middle School
Division C Champion Ladue Horton Watkins High School
Date January 1-3, 2020
Awards Information
Corteva Enterprise Award (B) Ladue Middle School
Corteva Enterprise Award (C) Ladue Horton Watkins High School
Lockheed Martin Spirit Award (B) Ladue Middle School
Lockheed Martin Spirit Award (C) Ladue Horton Watkins High School
Website http://www.scioly.org
{{Infobox national tournament
|logo=Image:2019 Nationals logo.jpg
|Host=Cornell University
|1stBName=Kennedy Middle School
|1stBPoints=148
|2ndBName=Solon Middle School
|2ndBPoints=191
|3rdBName=Community Middle School
|3rdBPoints=250
|1stCName=Troy High School
|1stCPoints=231
|2ndCName=Solon High School
|2ndCPoints=276
|3rdCName=Harriton High School
|3rdCPoints=277
|Total teams=120
|ChampionB=Ladue Middle School
|ChampionC=Ladue Horton Watkins High School
|DuPontB=Ladue Middle School
|DuPontC=Ladue Horton Watkins High School
|LockheedB=Ladue Middle School
|LockheedC=Ladue Horton Watkins High School
|Date=January 1-3, 2020
|Website=http://www.scioly.org
|Prev=[[Cornell University 2019|2019]]
|Next=[[Arizona State University 2021|2021]]
|Year=2020}}
Infobox national tournament
2019 Nationals logo.jpg
General Information
Host Cornell University
Total teams 120
Division B Champion Ladue Middle School
Division C Champion Ladue Horton Watkins High School
Date January 1-3, 2020
Results
Division B
1st Kennedy Middle School 148
2nd Solon Middle School 191
3rd Community Middle School 250
Division C
1st Troy High School 231
2nd Solon High School 276
3rd Harriton High School 277
Awards Information
DuPont Team Enterprise Award (B) Ladue Middle School
DuPont Team Enterprise Award (C) Ladue Horton Watkins High School
Lockheed Martin Spirit Award (B) Ladue Middle School
Lockheed Martin Spirit Award (C) Ladue Horton Watkins High School
Website http://www.scioly.org
2019 2020 2021