Difference between revisions of "Template:NationalInfoBox"

From Wiki - Scioly.org
Jump to navigation Jump to search
(removing bold from all awards)
(testing new style)
Line 1: Line 1:
{|align="right" class="infobox"
+
{{Infobox
|-
+
| above = {{#if: {{{namestyle|}}}|{{{namestyle|}}}|{{PAGENAME}}}}
! colspan="2" style="font-size: larger; text-align: center;" | '''{{#if: {{{namestyle|}}}|{{{namestyle|}}}|{{PAGENAME}}}}'''
+
 
|-
+
| image = {{#if: {{{logo|}}}|[[{{{logo|}}}|150px]]}}
{{#if: {{{logo|}}}|
+
| autoheaders = y
{{!}}colspan="2"{{!}}<center>[[{{{logo|}}}|150px]]</center>
+
| headerstyle = background-color: lavender;
{{!}}-
+
 
}}
+
| header1 = General Information
{{#if: {{{map|}}}{{{Host|}}}{{{Total teams|}}}{{{ChampionsB|}}}{{{ChampionsC|}}}{{{Date|}}}{{{Website|}}}| {{!}}colspan="2" class="infobox-header"{{!}}'''General Information'''
+
| label2 = Map
{{!}}-
+
| data2 = {{#if: {{{state|}}}|
}}
+
{{Location map | {{{state|}}}
{{#if: {{{map|}}}|
 
{{!}}'''Map'''
 
{{!}}{{{map|}}}
 
{{!}}-
 
|{{#if: {{{state|}}}|{{#if: {{{long|}}}| {{#if: {{{lat|}}}|
 
{{!}}'''Map'''
 
{{!}}{{Location map | {{{state|}}}
 
 
| max_width = 200
 
| max_width = 200
 
| float = none
 
| float = none
Line 23: Line 16:
 
   | coordinates = {{coord|{{{lat|}}}|{{{long|}}}}}
 
   | coordinates = {{coord|{{{lat|}}}|{{{long|}}}}}
 
}}
 
}}
{{!}}-
 
|}}
 
|}}
 
|}}
 
 
}}
 
}}
{{#if: {{{Host|}}}|
+
| label3 = Host
{{!}}'''Host'''
+
| data3 = {{{host|}}}
{{!}}{{{Host|}}}
+
| label4 = Total teams
{{!}}-
+
| data4 = {{{Total teams|}}}
}}
+
| label5 = Date
{{#if: {{{Total teams|}}}|
+
| data5 = {{{Date|}}}
{{!}}'''Total teams'''
+
 
{{!}}{{{Total teams|}}}
+
| header6 = Results
{{!}}-
+
| data7 = {{{!}}class="infobox-scoreboard" style="margin: 0; padding: 0; width:100%;"
}}
 
{{#if: {{{Date|}}}|
 
{{!}}'''Date'''
 
{{!}}{{{Date|}}}
 
{{!}}-
 
}}
 
{{#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'''
 
{{!}}colspan="3" style="text-align: center;"{{!}}'''Division B'''
Line 100: Line 79:
 
{{!}}-
 
{{!}}-
 
{{!}}}
 
{{!}}}
{{!}}-
+
 
}}
+
| header8 = Awards Information
{{#if: {{{DuPontB|}}}{{{DuPontC|}}}{{{LockheedB|}}}{{{LockheedC|}}}{{{CortevaB|}}}{{{CortevaC|}}}| {{!}}colspan="2" class="infobox-header"{{!}}'''Awards Information'''
+
| data9 = {{{!}}class="infobox-scoreboard" style="margin: 0; padding: 0; width:100%;"
{{!}}-
 
{{!}}colspan="2" style="padding: 0;"{{!}}
 
{{{!}}class="infobox-scoreboard" style="margin: 0; padding: 0; width:100%;"
 
 
{{!}}-
 
{{!}}-
 
{{#if: {{{DuPontB|}}}{{{DuPontC|}}}|
 
{{#if: {{{DuPontB|}}}{{{DuPontC|}}}|
Line 141: Line 117:
 
}}
 
}}
 
{{!}}}
 
{{!}}}
{{!}}-
 
}}
 
{{#if: {{{Website|}}}|
 
{{!}}'''Website'''
 
{{!}}{{{Website|}}}
 
{{!}}-
 
}}
 
{{#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}}} →
 
{{!}}-
 
{{!}}}
 
  
{{!}}-
+
| header10 = Social Media
 +
| label11 = Website
 +
| data11 = {{{Website|}}}
 +
 
 +
| below = {{#if: {{{Prev|}}}|<div style="float: left;">← {{{Prev}}}</div>}}{{#if: {{{Next|}}}|<div style="float: left;">{{{Next}}} →</div>}}
 
}}
 
}}
 
|}
 
 
<noinclude>
 
<noinclude>
 
{{Documentation}}
 
{{Documentation}}
 
</noinclude>
 
</noinclude>

Revision as of 01:27, 2 June 2021

NationalInfoBox
Results
Division B
1st ' '
2nd
3rd
Division C
1st ' '
2nd
3rd
Awards Information
Template documentation[view] [edit] [history] [purge]

The NationalInfoBox 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
{{NationalInfoBox
|Host=Cornell University
}}
NationalInfoBox
Results
Division B
1st ' '
2nd
3rd
Division C
1st ' '
2nd
3rd
Awards Information
{{NationalInfoBox
|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
}}
NationalInfoBox
General Information
Total teams120
DateJanuary 1-3, 2020
Results
Division B
1st ' '
2nd
3rd
Division C
1st ' '
2nd
3rd
Awards Information
Social Media
Websitehttp://www.scioly.org
{{NationalInfoBox
|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
}}
NationalInfoBox
General Information
Total teams120
DateJanuary 1-3, 2020
Results
Division B
1st ' '
2nd
3rd
Division C
1st ' '
2nd
3rd
Awards Information
DuPont Team Enterprise Award
B Ladue Middle School
C Ladue Horton Watkins High School
Lockheed Martin Spirit Award
B Ladue Middle School
C Ladue Horton Watkins High School
Social Media
Websitehttp://www.scioly.org
{{NationalInfoBox
|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
}}
NationalInfoBox
General Information
Total teams120
DateJanuary 1-3, 2020
Results
Division B
1st ' '
2nd
3rd
Division C
1st ' '
2nd
3rd
Awards Information
Corteva Enterprise Award
B Ladue Middle School
C Ladue Horton Watkins High School
Lockheed Martin Spirit Award
B Ladue Middle School
C Ladue Horton Watkins High School
Social Media
Websitehttp://www.scioly.org
{{NationalInfoBox
|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
}}
NationalInfoBox
2019 Nationals logo.jpg
General Information
Total teams120
DateJanuary 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
C Ladue Horton Watkins High School
Lockheed Martin Spirit Award
B Ladue Middle School
C Ladue Horton Watkins High School
Social Media
Websitehttp://www.scioly.org
2019
2021