Difference between revisions of "Template:Infobox state"
Jump to navigation
Jump to search
m (State infoboxes are now responsive to screen width) |
|||
(38 intermediate revisions by 10 users not shown) | |||
Line 1: | Line 1: | ||
− | { | + | {{#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=" | + | ! colspan="2" style="font-size: larger; text-align: center;" | '''{{PAGENAME}}''' |
− | |||
− | |||
|- | |- | ||
− | | | + | {{#if: {{{State|}}}| |
− | | ''' | + | {{!}}colspan="2"{{!}}<center>[[File:{{{State|}}}.svg|200px]]</center> |
+ | {{!}}- | ||
+ | }} | ||
+ | {{#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''' | ||
+ | {{!}}- | ||
+ | }} | ||
+ | |style="width: 100px;"|'''Member of SO since''' | ||
+ | |{{{Member since|}}} | ||
|- | |- | ||
− | | ''' | + | |style="width: 100px;"|'''Total teams''' |
+ | |{{{Total teams|}}} | ||
|- | |- | ||
− | | '''B Champion''' | + | |style="width: 100px;"|'''[[Division B]] Champion''' |
+ | |{{{B champs|}}} | ||
|- | |- | ||
− | | '''C Champion''' | + | |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}} | |
− | |||
</noinclude> | </noinclude> |
Revision as of 01:01, 8 August 2020
Infobox state | |
---|---|
Member of SO since | |
Total teams | |
Division B Champion | |
Division C Champion | |
State Tournament Location | |
Date | |
Website |
The Infobox state template is a template used to generate an infobox for a state.
Parameters
State
- the statemap
- a map showing the state's locationMember since
- year since the state has been a part of Science OlympiadTotal teams
- the total number of teams in the stateB champs
- the most recent Division B championC champs
- the most recent Division C championDate
- the date on which the state competition was most recently heldStates location
- the location where the state competition was most recently heldwebsite
- 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 | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
{{Infobox state |Member since=2006}} |
| ||||||||||||||||||||
{{Infobox state |Member since=2006 |Total teams=100 |B champs=Ladue Middle School |C champs=Ladue Horton Watkins High School}} |
| ||||||||||||||||||||
{{Infobox state |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}} |
|
The above documentation is transcluded from Template:Infobox state/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |