Difference between revisions of "Template:SOInfoBox"
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" | ||
|- | |- | ||
! 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|}}} | ||
{{!}}- | {{!}}- | ||
}} | }} | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
|} | |} | ||
<noinclude> | <noinclude> | ||
{{Documentation}} | {{Documentation}} | ||
</noinclude> | </noinclude> |
Revision as of 06:00, 12 December 2020
SOInfoBox |
---|
The SOInfoBox 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 | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
{{SOInfoBox |Member since=2006 }} |
| ||||||||||||||||||||
{{SOInfoBox |Member since=2006 |Total teams=100 |B champs=Ladue Middle School |C champs=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 }} |
|
The above documentation is transcluded from Template:SOInfoBox/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. |