Difference between revisions of "Template:NationalInfoBox"

From Wiki - Scioly.org
Jump to navigation Jump to search
(attempting to fix website label)
(update parameters)
 
(6 intermediate revisions by the same user not shown)
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|}}}|
 
{{!}}'''Host'''
 
{{!}}{{{Host|}}}
 
{{!}}-
 
 
}}
 
}}
{{#if: {{{Total teams|}}}|
+
| label3 = Host
{{!}}'''Total teams'''
+
| data3 = {{{Host|}}}
{{!}}{{{Total teams|}}}
+
| label4 = Date
{{!}}-
+
| data4 = {{{Date|}}}
}}
+
 
{{#if: {{{Date|}}}|
+
| header5 = Tournament Information
{{!}}'''Date'''
+
| label6 = Total teams
{{!}}{{{Date|}}}
+
| data6 = {{{Total teams|}}}
{{!}}-
+
| label7 = Host State
}}
+
| data7 = {{#if:{{{state|}}}|{{flag|{{{state|}}}}}}} {{{state|}}}
{{#if: {{{1stBName|}}}{{{1stBPoints|}}}{{{1stCName|}}}{{{1stCPoints|}}}{{{2ndBName|}}}{{{2ndBPoints|}}}{{{2ndCName|}}}{{{2ndCPoints|}}}{{{3rdBName|}}}{{{3rdBPoints|}}}{{{3rdCName|}}}{{{3rdCPoints|}}}| {{!}}colspan="2" class="infobox-header"{{!}}'''Results'''
+
| label8 = Tournament Director
{{!}}-
+
| data8 = {{{director|}}}
{{!}}colspan="2" style="padding: 0;"{{!}}
+
| label9 = Opening Ceremony
 +
| data9 = {{{opening_ceremony|}}}
 +
| label10 = Awards Ceremony
 +
| data10 = {{{awards_ceremony|}}}
 +
| label11 = Trial Events
 +
| data11 = {{{trial_events|}}}
 +
| label12 = Activities
 +
| data12 = {{{activities|}}}
 +
| label13 = [[Japanese International Team|International Team]]
 +
| data13 = {{{international_team|}}}
 +
 
 +
| header14 = Results
 +
| data15 = {{#if: {{{1stBName|}}}|
 
{{{!}}class="infobox-scoreboard" style="margin: 0; padding: 0; width:100%;"
 
{{{!}}class="infobox-scoreboard" style="margin: 0; padding: 0; width:100%;"
 
{{!}}-
 
{{!}}-
Line 100: Line 96:
 
{{!}}-
 
{{!}}-
 
{{!}}}
 
{{!}}}
{{!}}-
 
 
}}
 
}}
{{#if: {{{DuPontB|}}}{{{DuPontC|}}}{{{LockheedB|}}}{{{LockheedC|}}}{{{CortevaB|}}}{{{CortevaC|}}}| {{!}}colspan="2" class="infobox-header"{{!}}'''Awards Information'''
+
 
{{!}}-
+
| header16 = Awards Information
{{!}}colspan="2" style="padding: 0;"{{!}}
+
| data17 = {{#if: {{{DuPontB|}}}{{{DuPontC|}}}{{{CortevaB|}}}{{{CortevaC|}}}{{{LockheedB|}}}{{{LockheedC|}}}|
 
{{{!}}class="infobox-scoreboard" style="margin: 0; padding: 0; width:100%;"
 
{{{!}}class="infobox-scoreboard" style="margin: 0; padding: 0; width:100%;"
 
{{!}}-
 
{{!}}-
 +
{{#if: {{{DuPontB|}}}{{{DuPontC|}}}|
 
{{!}}colspan="3" style="text-align: center;"{{!}}'''DuPont Team Enterprise Award'''
 
{{!}}colspan="3" style="text-align: center;"{{!}}'''DuPont Team Enterprise Award'''
 
{{!}}-
 
{{!}}-
 
{{!}}- style="background-color: #eeeeee;"
 
{{!}}- style="background-color: #eeeeee;"
{{!}}style="width: 10%; text-align: center;"{{!}}'''B'''
+
{{!}}style="width: 10%; text-align: center;"{{!}}B
{{!}}style="width: 90%; padding-left: 5px;"{{!}}'''{{{DuPontB|}}}'''
+
{{!}}style="width: 90%; padding-left: 5px;"{{!}}{{{DuPontB|}}}
 
{{!}}- style="background-color: #eeeeee;"
 
{{!}}- style="background-color: #eeeeee;"
{{!}}style="width: 10%; text-align: center;"{{!}}'''C'''
+
{{!}}style="width: 10%; text-align: center;"{{!}}C
{{!}}style="width: 90%; padding-left: 5px;"{{!}}'''{{{DuPontC|}}}'''
+
{{!}}style="width: 90%; padding-left: 5px;"{{!}}{{{DuPontC|}}}
 
{{!}}-
 
{{!}}-
 +
}}
 +
{{#if: {{{CortevaB|}}}{{{CortevaC|}}}|
 
{{!}}colspan="3" style="text-align: center;"{{!}}'''Corteva Enterprise Award'''
 
{{!}}colspan="3" style="text-align: center;"{{!}}'''Corteva Enterprise Award'''
 
{{!}}-
 
{{!}}-
 
{{!}}- style="background-color: #eeeeee;"
 
{{!}}- style="background-color: #eeeeee;"
{{!}}style="width: 10%; text-align: center;"{{!}}'''B'''
+
{{!}}style="width: 10%; text-align: center;"{{!}}B
{{!}}style="width: 90%; padding-left: 5px;"{{!}}'''{{{CortevaB|}}}'''
+
{{!}}style="width: 90%; padding-left: 5px;"{{!}}{{{CortevaB|}}}
 
{{!}}- style="background-color: #eeeeee;"
 
{{!}}- style="background-color: #eeeeee;"
{{!}}style="width: 10%; text-align: center;"{{!}}'''C'''
+
{{!}}style="width: 10%; text-align: center;"{{!}}C
{{!}}style="width: 90%; padding-left: 5px;"{{!}}'''{{{CortevaC|}}}'''
+
{{!}}style="width: 90%; padding-left: 5px;"{{!}}{{{CortevaC|}}}
 
{{!}}-
 
{{!}}-
 +
}}
 +
{{#if: {{{LockheedB|}}}{{{LockheedC|}}}|
 
{{!}}colspan="3" style="text-align: center;"{{!}}'''Lockheed Martin Spirit Award'''
 
{{!}}colspan="3" style="text-align: center;"{{!}}'''Lockheed Martin Spirit Award'''
 
{{!}}-
 
{{!}}-
 
{{!}}- style="background-color: #eeeeee;"
 
{{!}}- style="background-color: #eeeeee;"
{{!}}style="width: 10%; text-align: center;"{{!}}'''B'''
+
{{!}}style="width: 10%; text-align: center;"{{!}}B
{{!}}style="width: 90%; padding-left: 5px;"{{!}}'''{{{LockheedB|}}}'''
+
{{!}}style="width: 90%; padding-left: 5px;"{{!}}{{{LockheedB|}}}
 
{{!}}- style="background-color: #eeeeee;"
 
{{!}}- style="background-color: #eeeeee;"
{{!}}style="width: 10%; text-align: center;"{{!}}'''C'''
+
{{!}}style="width: 10%; text-align: center;"{{!}}C
{{!}}style="width: 90%; padding-left: 5px;"{{!}}'''{{{LockheedC|}}}'''
+
{{!}}style="width: 90%; padding-left: 5px;"{{!}}{{{LockheedC|}}}
 
{{!}}-
 
{{!}}-
 +
}}
 
{{!}}}
 
{{!}}}
{{!}}-
 
 
}}
 
}}
{{#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}}} →
 
{{!}}-
 
{{!}}}
 
  
{{!}}-
+
| header18 = Social Media
 +
| label19 = Website
 +
| data19 = {{{Website|}}}
 +
| label20 = Facebook
 +
| data20 = {{{facebook|}}}
 +
| label21 = Twitter
 +
| data21 = {{{twitter|}}}
 +
| label22 = Instagram
 +
| data22 = {{{instagram|}}}
 +
 
 +
| below = {{#if: {{{Prev|}}}|<div style="float: left;">← {{{Prev}}}</div>}}{{#if: {{{Next|}}}|<div style="float: right;">{{{Next}}} →</div>}}
 
}}
 
}}
 
|}
 
 
<noinclude>
 
<noinclude>
 
{{Documentation}}
 
{{Documentation}}
 
</noinclude>
 
</noinclude>

Latest revision as of 13:18, 2 June 2021

NationalInfoBox
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
General Information
HostCornell University
{{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
HostCornell University
DateJanuary 1-3, 2020
Tournament Information
Total teams120
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
HostCornell University
DateJanuary 1-3, 2020
Tournament Information
Total teams120
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
HostCornell University
DateJanuary 1-3, 2020
Tournament Information
Total teams120
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
HostCornell University
DateJanuary 1-3, 2020
Tournament Information
Total teams120
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