Difference between revisions of "Template:SOInfoBox"

From Wiki - Scioly.org
Jump to: navigation, search
m (State infoboxes are now responsive to screen width)
((+) If statements)
Line 11: Line 11:
 
         width: -moz-fit-content;
 
         width: -moz-fit-content;
 
         width: fit-content;
 
         width: fit-content;
 +
        }
 
     }
 
     }
}
+
}}
}}{|align="right" class="infobox"
+
 
 +
{|align="right" class="infobox"
 
|-
 
|-
 
! colspan="2" style="font-size: larger; text-align: center;" | '''{{PAGENAME}}'''
 
! colspan="2" style="font-size: larger; text-align: center;" | '''{{PAGENAME}}'''
Line 21: Line 23:
 
{{!}}-
 
{{!}}-
 
}}
 
}}
{{#if: {{{map|}}}{{{Member since|}}}{{{Total teams|}}}{{{B champs|}}}{{{C champs|}}}{{{States location|}}}{{{Date|}}}{{{website|}}}| {{!}}colspan="2" style="margin: 5px; background-color: lavender; text-align: center;"{{!}}'''General Information'''
+
{{#if: {{{map|}}}{{{Member since|}}}{{{Total teams|}}}{{{B champs|}}}{{{C champs|}}}{{{States location|}}}{{{Date|}}}{{{website|}}}|  
 +
{{!}}colspan="2" style="margin: 5px; background-color: lavender; text-align: center;"{{!}}'''General Information'''
 +
{{!}}-
 +
}}
 +
{{#if: {{{Member since|}}}|
 +
{{!}}style="width: 100px;"{{!}}'''Member of SO since'''
 +
{{!}}{{{Member since|}}}
 +
{{!}}-
 +
}}
 +
{{#if: {{{Total teams|}}}|
 +
{{!}}style="width: 100px;"{{!}}'''Total teams'''
 +
{{!}}{{{Total teams|}}}
 +
{{!}}-
 +
}}
 +
{{#if: {{{B champs|}}}|
 +
{{!}}style="width: 100px;"{{!}}'''[[Division B]] Champion'''
 +
{{!}}{{{B champs|}}}
 +
{{!}}-
 +
}}
 +
{{#if: {{{C champs|}}}|
 +
{{!}}style="width: 100px;"{{!}}'''[[Division C]] Champion'''
 +
{{!}}{{{C champs|}}}
 +
{{!}}-
 +
}}
 +
{{#if: {{{States location|}}}|
 +
{{!}}style="width: 100px;"{{!}}'''State Tournament Location'''
 +
{{!}}{{{States location|}}}
 +
{{!}}-
 +
}}
 +
{{#if: {{{Date|}}}|
 +
{{!}}style="width: 100px;"{{!}}'''Date'''
 +
{{!}}{{{Date|}}}
 +
{{!}}-
 +
}}
 +
{{#if: {{{website|}}}|
 +
{{!}}style="width: 100px;"{{!}}'''Website'''
 +
{{!}}{{{website|}}}
 
{{!}}-
 
{{!}}-
 
}}
 
}}
|style="width: 100px;"|'''Member of SO since'''
 
|{{{Member since|}}}
 
|-
 
|style="width: 100px;"|'''Total teams'''
 
|{{{Total teams|}}}
 
|-
 
|style="width: 100px;"|'''[[Division B]] Champion'''
 
|{{{B champs|}}}
 
|-
 
|style="width: 100px;"|'''[[Division C]] Champion'''
 
|{{{C champs|}}}
 
|-
 
|style="width: 100px;"|'''State Tournament Location'''
 
|{{{States location|}}}
 
|-
 
|style="width: 100px;"|'''Date'''
 
|{{{Date|}}}
 
|-
 
|style="width: 100px;"|'''Website'''
 
|{{{website|}}}
 
|-
 
 
|}
 
|}
 
<noinclude>
 
<noinclude>
 
{{Documentation}}
 
{{Documentation}}
 
</noinclude>
 
</noinclude>

Revision as of 06:00, 12 December 2020


SOInfoBox
Template documentation[view] [edit] [history] [purge]

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

Parameters

State - the state
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
{{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
{{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