Difference between revisions of "Template:Infobox school"

From Wiki - Scioly.org
Jump to navigation Jump to search
(Added headers)
(Updated max_width of map)
(34 intermediate revisions by 6 users not shown)
Line 1: Line 1:
{|align="right" style="float: right; clear: right; width: 300px; text-align: left; font-size: 88%; background-color: #f8f9fa; border: 1px solid #a2a9b1; line-height: 1.5em; margin: 0.5em 0 0.5em 1em; padding: 0.2em; border-spacing: 3px;"
+
{{#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}}'''
 
|-
 
|-
 +
{{#if: {{{logo|}}}|
 +
{{!}}colspan="2"{{!}}<center>[[{{{logo|}}}|150px]]</center>
 +
{{!}}-
 +
}}
 
{{#if: {{{location|}}}| {{!}}'''Location'''
 
{{#if: {{{location|}}}| {{!}}'''Location'''
 
{{!}}{{{location|}}}
 
{{!}}{{{location|}}}
 
{{!}}-}}
 
{{!}}-}}
 +
{{#if: {{{state|}}}|
 +
{{!}}'''State'''
 +
{{!}}{{Flag|{{{state|}}}}} [[{{{state|}}}]]
 +
{{!}}-
 +
}}
 +
{{#if: {{{region|}}}|
 +
{{!}}'''Region'''
 +
{{!}}{{{region|}}}
 +
{{!}}-
 +
}}
 
{{#if: {{{map|}}}|
 
{{#if: {{{map|}}}|
 
{{!}}'''Map'''
 
{{!}}'''Map'''
 
{{!}}{{{map|}}}
 
{{!}}{{{map|}}}
 
{{!}}-
 
{{!}}-
 +
|{{#if: {{{state|}}}|{{#if: {{{long|}}}| {{#if: {{{lat|}}}|
 +
{{!}}'''Map'''
 +
{{!}}{{Location map | {{{state|}}}
 +
| max_width = 200
 +
| float = none
 +
| caption =
 +
| label = {{PAGENAME}}
 +
  | coordinates = {{coord|{{{lat|}}}|{{{long|}}}}}
 
}}
 
}}
{{#if: {{{Member since|}}}{{{teams|}}}{{{coaches|}}}{{{teams|}}}{{{colors|}}}{{{captains|}}}{{{feedsto|}}}{{{feedsfrom|}}}| {{!}}colspan="2" style="margin: 5px; background-color: lavender; text-align: center;"{{!}}'''Information'''
+
{{!}}-
 +
|}}
 +
|}}
 +
|}}
 +
}}
 +
{{#if: {{{Member since|}}}{{{teams|}}}{{{coaches|}}}{{{colors|}}}{{{captains|}}}{{{feedsto|}}}{{{tournament|}}}{{{feedsfrom|}}}| {{!}}colspan="2" class="infobox-header"{{!}}'''Information'''
 
{{!}}-
 
{{!}}-
 
}}
 
}}
Line 25: Line 66:
 
{{!}}'''Coaches'''
 
{{!}}'''Coaches'''
 
{{!}}{{{coaches|}}}
 
{{!}}{{{coaches|}}}
 +
{{!}}-
 +
}}
 +
{{#if: {{{captains|}}}|
 +
{{!}}'''Captains'''
 +
{{!}}{{{captains|}}}
 
{{!}}-
 
{{!}}-
 
}}
 
}}
Line 32: Line 78:
 
{{!}}-
 
{{!}}-
 
}}
 
}}
{{#if: {{{tryouts|}}}|  
+
{{#if: {{{feedsfrom|}}}|  
{{!}}'''Tryouts'''
+
{{!}}'''Feeds from'''
{{!}}{{{tryouts|}}}
+
{{!}}{{{feedsfrom|}}}
{{!}}-
 
}}
 
{{#if: {{{captains|}}}|
 
{{!}}'''Captains'''
 
{{!}}{{{captains|}}}
 
 
{{!}}-
 
{{!}}-
 
}}
 
}}
Line 47: Line 88:
 
{{!}}-
 
{{!}}-
 
}}
 
}}
{{#if: {{{feedsfrom|}}}|  
+
{{#if: {{{tournament|}}}|  
{{!}}'''Feeds from'''
+
{{!}}'''Tournament Host'''
{{!}}{{{feedsfrom|}}}
+
{{!}}{{{tournament|}}}
 +
{{!}}-
 +
}}
 +
{{#if: {{{district|}}}|
 +
{{!}}'''School District'''
 +
{{!}}{{{district|}}}
 +
{{!}}-
 +
}}
 +
{{#if: {{{Best regional|}}}{{{Best state|}}}{{{Best nationals|}}}{{{trophies_invite|}}}{{{trophies_regional|}}}{{{trophies_state|}}}{{{trophies_nationals|}}}{{{nationals_awards|}}}| {{!}}colspan="2" class="infobox-header"{{!}}'''Results History'''
 +
{{!}}-
 +
}}
 +
{{#if: {{{Best regional|}}}|
 +
{{!}}'''Best regional'''
 +
{{!}}{{{Best regional|}}}
 +
{{!}}-
 +
}}
 +
{{#if: {{{Best state|}}}|
 +
{{!}}'''Best state'''
 +
{{!}}{{{Best state|}}}
 +
{{!}}-
 +
}}
 +
{{#if: {{{Best nationals|}}}|
 +
{{!}}'''Best nationals'''
 +
{{!}}{{{Best nationals|}}}
 
{{!}}-
 
{{!}}-
 
}}
 
}}
{{#if: {{{Best regional|}}}{{{Best state|}}}{{{Best nationals|}}}| {{!}}colspan="2" style="margin: 5px; background-color: lavender; text-align: center;"{{!}}'''Results History'''
+
{{#if: {{{nationals_awards|}}}|  
 +
{{!}}'''Nationals Awards'''
 +
{{!}}{{{nationals_awards|}}}
 
{{!}}-
 
{{!}}-
 
}}
 
}}
| '''Best finish, regionals''' || {{{Best regional|}}}
+
{{#if: {{{facebook|}}}{{{twitter|}}}{{{instagram|}}}{{{youtube|}}}{{{Website|}}}| {{!}}colspan="2" class="infobox-header"{{!}}'''Social Media'''
|-
 
| '''Best finish, state''' || {{{Best state|}}}
 
|-
 
| '''Best finish, nationals''' || {{{Best nationals|}}}
 
|-
 
{{#if: {{{facebook|}}}{{{twitter|}}}{{{instagram|}}}{{{youtube|}}}{{{Website|}}}| {{!}}colspan="2" style="margin: 5px; background-color: lavender; text-align: center;"{{!}}'''Social Media'''
 
 
{{!}}-
 
{{!}}-
 
}}
 
}}
 
{{#if: {{{facebook|}}}| {{!}}'''Facebook'''
 
{{#if: {{{facebook|}}}| {{!}}'''Facebook'''
{{!}}{{{facebook|}}}
+
{{!}}{{Facebook|{{{facebook|}}}}}
 
{{!}}-}}
 
{{!}}-}}
 
{{#if: {{{twitter|}}}| {{!}}'''Twitter'''
 
{{#if: {{{twitter|}}}| {{!}}'''Twitter'''
{{!}}{{{twitter|}}}
+
{{!}}{{Twitter|{{{twitter|}}}}}
 
{{!}}-}}
 
{{!}}-}}
 
{{#if: {{{instagram|}}}| {{!}}'''Instagram'''
 
{{#if: {{{instagram|}}}| {{!}}'''Instagram'''
{{!}}{{{instagram|}}}
+
{{!}}{{Instagram|{{{instagram|}}}}}
 
{{!}}-}}
 
{{!}}-}}
{{#if: {{{youtube|}}}| {{!}}'''YouTube'''
+
{{#if: {{{youtube_channelid|}}}{{{youtube_user|}}}| {{!}}'''YouTube'''
{{!}}{{{youtube|}}}
+
{{!}}{{YouTube|c={{{youtube_channelid|}}}|u={{{youtube_user|}}}|{{{youtube_alias|{{#if: {{{youtube_channelid|}}}|Channel|{{{youtube_user}}}}}}}}}}
 
{{!}}-}}
 
{{!}}-}}
 
{{#if: {{{Website|}}}| {{!}}'''Website'''
 
{{#if: {{{Website|}}}| {{!}}'''Website'''
Line 80: Line 140:
 
{{!}}-}}
 
{{!}}-}}
 
|}<noinclude>
 
|}<noinclude>
{{TeamInfoBox/doc}}
+
{{Documentation}}
[[Category:Templates]]
 
[[Category:Organization Templates]]
 
 
</noinclude>
 
</noinclude>

Revision as of 02:53, 14 September 2020

Infobox school
Member of SO since
Template documentation[view] [edit] [history] [purge]

The Infobox school template is a template used to generate an infobox for a team. A majority of this information is available through Google or school webpages, though some of it (such as amount of coaches) may not be accessible without direct communication with the team in question. Adding as much to the infobox as possible makes information about a team more accessible and reduces the amount of time it may take to locate these facts in the future.

Parameters

Location/map Parameters

location - the school's address using abbreviations in place of written words (ex. "423 E Central St" not "423 East Central Street")
state - the state the school is in (WRITTEN IN FULL: ex. "California" not "CA" or "Georgia" not "GA")
long - the longitude of the school
lat - the latitude of the school
map - a template for creating a custom map showing the school's location (please use state, long, and lat params instead)

Team Information

name - name of the school, if different from the page name
logo - logo of the school's team
Member since - year of which school has been a part of Science Olympiad
teams - number of teams the school had in the most recent season with available information
coaches - number of coaches the school has
colors - school colors
captains - number of captains the school has/the users which are captains (if applicable)
tournament - tournament(s) the school hosts
feedsfrom - school(s) which the school feeds from
feedsto - school(s) which the school feeds to
region - region that school participants in
district - the school district the school belongs to, if applicable

Results Information

Best regional - year of which school scored the highest at a regional tournament
Best state - year of which school scored the highest at a state tournament
Best nationals - year of which school scored the highest at a nationals tournament
nationals_awards - team awards at nationals

Social Medias

facebook - Facebook username for the team
twitter - Twitter username for the team
instagram - Instagram username for the team
Website - website for the team
youtube_channelid - The channel id string for the team's YouTube channel (information on finding this can be found here)
youtube_user - The user string for the team's YouTube channel (information on finding this can be found here)
youtube_alias - The alias for the team YouTube channel (aka, the text representing the link to the channel)

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 school
|Member since=2006}}
Infobox school
Information
Member of SO since 2006
{{Infobox school
|Member since=2006
|Best regional=1st (2007, 2012)
|Best state=1st (2008)
|Best nationals=34th (2008)}}
Infobox school
Information
Member of SO since 2006
Results History
Best regional 1st (2007, 2012)
Best state 1st (2008)
Best nationals 34th (2008)
{{Infobox school
|state=Kansas
|location=701 Kenwood Park Dr {{break}} Salina, KS 67401
|Member since=2006
|Best regional=B: 1st (2007, 2012) {{break}} C: 3rd (2014)
|Best state=B: 1st (2008) {{break}} C: 5th (1007)
|Best nationals=B: 34th (2008)
|Website={{URL|http://www.scioly.org}}}}
Infobox school
Location 701 Kenwood Park Dr
Salina, KS 67401
State Flag of Kansas.svg Kansas
Information
Member of SO since 2006
Results History
Best regional B: 1st (2007, 2012)
C: 3rd (2014)
Best state B: 1st (2008)
C: 5th (1007)
Best nationals B: 34th (2008)
Social Media
Website www.scioly.org
{{Infobox school
|logo=Image:FakeSchoolLogo.png
|state=Missouri
|lat=38.0084
|long=-93.4724
|location=1234 W School St {{break}} Schooltown, MO 65735
|Member since=2006
|teams=2
|coaches=1
|colors={{color box|red}} Red, {{color box|white}} White
|captains=2
|tournament=InfoBox Invitational
|feedsfrom=Informational Elementary School
|feedsto=Informational High School
|region=Central Region
|district=[[Chicago Public Schools]]
|Best regional=1st (2007, 2012)
|Best state=1st (2008)
|Best nationals=34th (2008)
|nationals_awards=Lockheed Martin Spirit Award (2008)
|facebook=SOAlumniNetwork
|twitter=scienceolympiad
|instagram=ncsciolympiad
|youtube_channelid=UCg3fbV5gFNml-HZrBGPo9ow
|youtube_alias=Random School Channel
|Website={{URL|http://www.scioly.org}}}}
Infobox school
FakeSchoolLogo.png
Location 1234 W School St
Schooltown, MO 65735
State Flag of Missouri.svg Missouri
Region Central Region
Map
Infobox school is located in Missouri
Infobox school
Infobox school
Information
Member of SO since 2006
Teams 2
Coaches 1
Captains 2
Colors      Red,      White
Feeds from Informational Elementary School
Feeds to Informational High School
Tournament Host InfoBox Invitational
School District Chicago Public Schools
Results History
Best regional 1st (2007, 2012)
Best state 1st (2008)
Best nationals 34th (2008)
Nationals Awards Lockheed Martin Spirit Award (2008)
Social Media
Facebook @SOAlumniNetwork
Twitter @scienceolympiad
Instagram @ncsciolympiad
YouTube Random School Channel
Website www.scioly.org