Difference between revisions of "Template:RegionalInfoBox"

From Scioly.org
Jump to: navigation, search
(Adding support for multiple locations)
(Fixed LM)
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 = 250
| width=150
+
| float = none
| p1lat={{{lat|}}}
+
| caption =
| p1long={{{long|}}}
+
| label = {{{Host|}}}
| p1icon=File:Red pog.svg
+
  | coordinates = {{coord|{{{lat|}}}|{{{long|}}}}}
 
}}
 
}}
 
{{!}}-
 
{{!}}-

Revision as of 17:33, 3 August 2020

RegionalInfoBox

The RegionalInfoBox template is a template used to generate an infobox for a regional 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 map showing the region's 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
Member since - year since the region has been a part of Science Olympiad
Division - the divisions that the regional serves
Total teams - the total number of teams in the region
ChampionB - the most recent Division B champion
ChampionC - the most recent Division C champion
Date - the date on which the regional competition was most recently held
Location - the location where the regional competition was most recently 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
Website - the region's website

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
{{RegionalInfoBox
|Member since=2006
}}
RegionalInfoBox
Member of SO Since 2006
{{RegionalInfoBox
|Member since=2006
|Total teams=10
|ChampionB=Ladue Middle School
|ChampionC=Ladue Horton Watkins High School
}}
RegionalInfoBox
General Information
Member of SO Since 2006
Total teams 10
Division B Champion Ladue Middle School
Division C Champion Ladue Horton Watkins High School
{{RegionalInfoBox
|logo=Image:Puso.png
|state=New Jersey
|lat=40.34873
|long=-74.65931
|Location=Princeton University
|Member since=2017
|Total Teams=56
|Division=C
|Champion=West Windsor-Plainsboro High School North
|Date=February 8th, 2020
|1stBName=West Windsor-Plainsboro High School North
|1stBPoints=114
|2ndBName=Boca Raton Community High School
|2ndBPoints=137
|3rdBName=Bayard Rustin High School
|3rdBPoints=246
|1stCName=West Windsor-Plainsboro High School North
|1stCPoints=114
|2ndCName=Boca Raton Community High School
|2ndCPoints=137
|3rdCName=Bayard Rustin High School
|3rdCPoints=246
|Website=https://scioly.princeton.edu/
}}
RegionalInfoBox
Puso.png
General Information
Map
RegionalInfoBox is located in New Jersey
RegionalInfoBox
Location Princeton University
State New Jersey
Member of SO Since 2017
Division C
Champion West Windsor-Plainsboro High School North
Date February 8th, 2020
Division B Results
1st West Windsor-Plainsboro High School North 114
2nd Boca Raton Community High School 137
3rd Bayard Rustin High School 246
Division C Results
1st West Windsor-Plainsboro High School North 114
2nd Boca Raton Community High School 137
3rd Bayard Rustin High School 246
Website https://scioly.princeton.edu/