Difference between revisions of "Template:Infobox regional tournament"

From Wiki - Scioly.org
Jump to navigation Jump to search
(lets try this)
m (Pepperonipi moved page Template:RegionalInfoBox to Template:Infobox regional tournament without leaving a redirect: Standardizing infobox templates.)
 
(23 intermediate revisions by 6 users not shown)
Line 1: Line 1:
{|class="floatright" align="right" style="float: right; width: 400px; text-align: left; font-size: 80%;" class="wikitable"
+
{|align="right" class="infobox"
 
|-
 
|-
! colspan="2" style="font-size: larger;" | '''{{PAGENAME}}'''
+
! colspan="2" style="font-size: larger; text-align: center;" | '''{{PAGENAME}}'''
 
|-
 
|-
| width="100" | '''State''' || {{{State|}}}
+
{{#if: {{{logo|}}}|
|-
+
{{!}}colspan="2"{{!}}<center>[[{{{logo|}}}|150px]]</center>
| '''Location''' || {{{Location|}}}
+
{{!}}-
|-
+
}}
{{#if: {{{YearStarted|}}}| {{!}}'''Year Started''' {{!}}{{!}} {{{YearStarted|}}}
+
{{#if: {{{map|}}}{{{Host|}}}{{{Total teams|}}}{{{ChampionsB|}}}{{{ChampionsC|}}}{{{Date|}}}{{{Website|}}}| {{!}}colspan="2" class="infobox-header"{{!}}'''General Information'''
 +
{{!}}-
 +
}}
 +
{{#if: {{{map|}}}|
 +
{{!}}'''Map'''
 +
{{!}}{{{map|}}}
 +
{{!}}-
 +
|{{#if: {{{state|}}}|{{#if: {{{long|}}}| {{#if: {{{lat|}}}|
 +
{{!}}'''Map'''
 +
{{!}}{{Location map | {{{state|}}}
 +
| max_width = 250
 +
| float = none
 +
| caption =
 +
| label = {{{Host|}}}
 +
  | coordinates = {{coord|{{{lat|}}}|{{{long|}}}}}
 +
}}
 +
{{coord|{{{lat|}}}|{{{long|}}}|display = title}}
 +
{{!}}-
 +
|}}
 +
|{{#if: {{{long1|}}}|
 +
{{!}}'''Map'''
 +
{{!}}{{Location map many | {{{state|}}}
 +
| max_width=200
 +
| float = none
 +
| caption =
 +
| label = {{{label1|}}}
 +
  | coordinates = {{coord|{{{lat1|}}}|{{{long1|}}}}}
 +
| label2 = {{{label2|}}}
 +
  | coordinates2 = {{coord|{{{lat2|}}}|{{{long2|}}}}}
 +
| label3 = {{{label3|}}}
 +
  | coordinates3 = {{#if: {{{lat3|}}}|{{coord|{{{lat3|}}}|{{{long3|}}}}}}}
 +
| label4 = {{{label4|}}}
 +
  | coordinates4 = {{#if: {{{lat4|}}}|{{coord|{{{lat4|}}}|{{{long4|}}}}}}}
 +
| label5 = {{{label5|}}}
 +
  | coordinates5 = {{#if: {{{lat5|}}}|{{coord|{{{lat5|}}}|{{{long5|}}}}}}}
 +
| label6 = {{{label6|}}}
 +
  | coordinates6 = {{#if: {{{lat6|}}}|{{coord|{{{lat6|}}}|{{{long6|}}}}}}}
 +
| label7 = {{{label7|}}}
 +
  | coordinates7 = {{#if: {{{lat7|}}}|{{coord|{{{lat7|}}}|{{{long7|}}}}}}}
 +
| label8 = {{{label8|}}}
 +
  | coordinates8 = {{#if: {{{lat8|}}}|{{coord|{{{lat8|}}}|{{{long8|}}}}}}}
 +
| label9 = {{{label9|}}}
 +
  | coordinates9 = {{#if: {{{lat9|}}}|{{coord|{{{lat9|}}}|{{{long9|}}}}}}}
 +
| label10 = {{{label10|}}}
 +
  | coordinates10 = {{#if: {{{lat10|}}}|{{coord|{{{lat10|}}}|{{{long10|}}}}}}}
 +
}}
 
{{!}}-}}
 
{{!}}-}}
| '''Date''' || {{{Date|}}}
+
}}
|-
+
|}}
| '''[[Division B|B]] Champion''' || {{{ChampionB|N/A}}}
+
}}
|-
+
{{#if: {{{Location|}}}|
| '''[[Division C|C]] Champion''' || {{{ChampionC|N/A}}}
+
{{!}}'''Location'''
|-
+
{{!}}{{{Location|}}}
| '''Website''' || {{{Website|}}}
+
{{!}}-
|}
+
}}
 
+
{{#if: {{{state|}}}|
<noinclude>
+
{{!}}'''State'''
[[Category:Templates]]
+
{{!}}{{flag|{{{state|}}}}} [[{{{state|state}}}]]
[[Category:Organization Templates]]
+
{{!}}-
</noinclude>
+
}}
 
+
{{#if: {{{Member since|}}}|
 
+
{{!}}'''Member of SO Since'''
 
+
{{!}}{{{Member since|}}}
 
+
{{!}}-
 
+
}}
 
+
{{#if: {{{Total teams|}}}|
 
+
{{!}}'''Total teams'''
 
+
{{!}}{{{Total teams|}}}
 
+
{{!}}-
 +
}}
 +
{{#if: {{{Division|}}}|
 +
{{!}}'''Division'''
 +
{{!}}{{{Division|}}}
 +
{{!}}-
 +
}}
 +
{{#if: {{{ChampionB|}}}|
 +
{{!}}'''[[Division B]] Champion'''
 +
{{!}}{{{ChampionB|}}}
 +
{{!}}-
 +
}}
 +
{{#if: {{{ChampionC|}}}|
 +
{{!}}'''[[Division C]] Champion'''
 +
{{!}}{{{ChampionC|}}}
 +
{{!}}-
 +
}}
 +
{{#if: {{{Champion|}}}|
 +
{{!}}'''Champion'''
 +
{{!}}{{{Champion|}}}
 +
{{!}}-
 +
}}
 +
{{#if: {{{Date|}}}|
 +
{{!}}'''Date'''
 +
{{!}}{{{Date|}}}
 +
{{!}}-
 +
}}
 +
{{#if: {{{1stBName|}}}{{{1stBPoints|}}}{{{2ndBName|}}}{{{2ndBPoints|}}}{{{3rdBName|}}}{{{3rdBPoints|}}}| {{!}}colspan="2" class="infobox-header"{{!}}'''Division B Results'''
 +
{{!}}-
 +
{{!}}colspan="2" style="padding: 0;"{{!}}
 +
{{{!}}class="infobox-scoreboard" style="margin: 0; padding: 0; width:100%;"
 +
{{!}}-
 +
{{!}}- 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|}}}
 +
{{!}}-
 +
{{!}}}
 +
{{!}}-
 +
}}
 +
{{#if: {{{1stCName|}}}{{{1stCPoints|}}}{{{2ndCName|}}}{{{2ndCPoints|}}}{{{3rdCName|}}}{{{3rdCPoints|}}}| {{!}}colspan="2" class="infobox-header"{{!}}'''Division C Results'''
 +
{{!}}-
 +
{{!}}colspan="2" style="padding: 0;"{{!}}
 +
{{{!}}class="infobox-scoreboard" style="margin: 0; padding: 0; width:100%;"
 +
{{!}}-
 +
{{!}}- 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: {{{Website|}}}|
 +
{{!}}'''Website'''
 +
{{!}}{{{Website|}}}
 +
{{!}}-
 +
}}
 +
{{#if: {{{Prev|}}}{{{Year|}}}| {{!}}colspan="2" class="infobox-header"{{!}}{{{Prev}}} • '''[[{{PAGENAME}}|{{{Year}}}]]''' • {{{Next}}}
  
 +
{{!}}-
 +
}}
  
 +
|}
 
<noinclude>
 
<noinclude>
 
+
{{Documentation}}
Example usage at right.
 
{{RegionalInfoBox
 
|State=[[Vermont]]
 
|Location=T. Charles Clancy Institute of Technology
 
|YearStarted=20XX
 
|Date=April 34th, 2017
 
|ChampionB=Welsh Nittany Middle School
 
|ChampionC=Harrington High School
 
|Website=[https://www.youtube.com/watch?v=xfr64zoBTAQ]
 
}}
 
 
 
'''Documentation:'''
 
 
 
'''State:''' The state in which the regional tournament is located. Put double square brackets <nowiki>"[[]]"</nowiki> around the state name.
 
 
 
'''Location:''' The location of the regional tournament.
 
 
 
'''Date:''' The most recent (or upcoming) date of the regional tournament.
 
 
 
'''ChampionB:''' The most recent regional champion in [[Division B]].
 
 
 
'''ChampionC:''' The most recent regional champion in [[Division C]].
 
 
 
'''Website:''' If the region has a website, put it here surrounded with single square brackets <nowiki>"[]"</nowiki>
 
 
 
 
</noinclude>
 
</noinclude>

Latest revision as of 01:07, 18 May 2022

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

The Infobox regional tournament 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
Champion - the most recent 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
{{Infobox regional tournament
|Member since=2006}}
Infobox regional tournament
Member of SO Since 2006
{{Infobox regional tournament
|Member since=2006
|Total teams=10
|ChampionB=Ladue Middle School
|ChampionC=Ladue Horton Watkins High School}}
Infobox regional tournament
General Information
Member of SO Since 2006
Total teams 10
Division B Champion Ladue Middle School
Division C Champion Ladue Horton Watkins High School
{{Infobox regional tournament
|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/}}
Infobox regional tournament
Puso.png
General Information
Map
Infobox regional tournament is located in New Jersey
Infobox regional tournament

Coordinates: 40°20′55″N 74°39′34″W / 40.34873°N 74.65931°W / 40.34873; -74.65931

Location Princeton University
State Flag of New Jersey.svg 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/