Difference between revisions of "Template:SOInfoBox"

From Scioly.org
Jump to: navigation, search
m
m (State infoboxes are now responsive to screen width)
 
Line 1: Line 1:
{|align="right" class="infobox"
+
{{#css:
 +
@media (max-width: 500px) {
 +
    table.infobox {
 +
        position: relative;
 +
        float: none;
 +
        left: 50%;
 +
        transform: translateX(-50%);
 +
        margin: 0;
 +
        width: auto;
 +
        width: -webkit-fit-content;
 +
        width: -moz-fit-content;
 +
        width: fit-content;
 +
    }
 +
}
 +
}}{|align="right" class="infobox"
 
|-
 
|-
 
! colspan="2" style="font-size: larger; text-align: center;" | '''{{PAGENAME}}'''
 
! colspan="2" style="font-size: larger; text-align: center;" | '''{{PAGENAME}}'''

Latest revision as of 01:01, 8 August 2020

SOInfoBox
Member of SO since
Total teams
Division B Champion
Division C Champion
State Tournament Location
Date
Website
Template documentation[view] [edit] [history] [purge]

The SOInfoBox template is a template used to generate an infobox for a state.

Parameters

map - a map showing the state's location
Member since - year since the state has been a part of Science Olympiad
Total teams - the total number of teams in the state
B champs - the most recent Division B champion
C champs - the most recent Division C champion
Date - the date on which the state competition was most recently held
States location - the location where the state competition was most recently held
website - the state'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
{{SOInfoBox
|Member since=2006
}}
SOInfoBox
General Information
Member of SO since 2006
Total teams
Division B Champion
Division C Champion
State Tournament Location
Date
Website
{{SOInfoBox
|Member since=2006
|Total teams=100
|B champs=Ladue Middle School
|C champs=Ladue Horton Watkins High School
}}
SOInfoBox
General Information
Member of SO since 2006
Total teams 100
Division B Champion Ladue Middle School
Division C Champion Ladue Horton Watkins High School
State Tournament Location
Date
Website
{{SOInfoBox
|State=New Jersey
|Member since=2006
|Total teams=100
|B champs=Ladue Middle School
|C champs=Ladue Horton Watkins High School
|States location=Westminster College
|Date=January 1, 2020
|website=http://www.scioly.org
}}
SOInfoBox
New Jersey.svg
General Information
Member of SO since 2006
Total teams 100
Division B Champion Ladue Middle School
Division C Champion Ladue Horton Watkins High School
State Tournament Location Westminster College
Date January 1, 2020
Website http://www.scioly.org