Difference between revisions of "Template:Infobox national tournament"
Jump to navigation
Jump to search
Pepperonipi (talk | contribs) (Added logo, lat, long, state) |
Pepperonipi (talk | contribs) (Max width on map way too big) |
||
(21 intermediate revisions by 6 users not shown) | |||
Line 1: | Line 1: | ||
{|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;" | '''{{#if: {{{namestyle|}}}|{{{namestyle|}}}|{{PAGENAME}}}}''' |
|- | |- | ||
{{#if: {{{logo|}}}| | {{#if: {{{logo|}}}| | ||
− | {{!}}[[{{{logo|}}}| | + | {{!}}colspan="2"{{!}}<center>[[{{{logo|}}}|150px]]</center> |
{{!}}- | {{!}}- | ||
}} | }} | ||
Line 16: | Line 16: | ||
|{{#if: {{{state|}}}|{{#if: {{{long|}}}| {{#if: {{{lat|}}}| | |{{#if: {{{state|}}}|{{#if: {{{long|}}}| {{#if: {{{lat|}}}| | ||
{{!}}'''Map''' | {{!}}'''Map''' | ||
− | {{!}}{{Location map | + | {{!}}{{Location map | {{{state|}}} |
− | | | + | | max_width = 200 |
− | | | + | | float = none |
− | | | + | | caption = |
− | | | + | | label = {{{Host|}}} |
− | + | | coordinates = {{coord|{{{lat|}}}|{{{long|}}}}} | |
}} | }} | ||
{{!}}- | {{!}}- | ||
Line 53: | Line 53: | ||
{{!}}- | {{!}}- | ||
}} | }} | ||
− | {{#if: {{{DuPontB|}}}{{{DuPontC|}}}{{{LockheedB|}}}{{{LockheedC|}}}| {{!}}colspan="2" class="infobox-header"{{!}}'''Awards Information''' | + | {{#if: {{{1stBName|}}}{{{1stBPoints|}}}{{{1stCName|}}}{{{1stCPoints|}}}{{{2ndBName|}}}{{{2ndBPoints|}}}{{{2ndCName|}}}{{{2ndCPoints|}}}{{{3rdBName|}}}{{{3rdBPoints|}}}{{{3rdCName|}}}{{{3rdCPoints|}}}| {{!}}colspan="2" class="infobox-header"{{!}}'''Results''' |
+ | {{!}}- | ||
+ | {{!}}colspan="2" style="padding: 0;"{{!}} | ||
+ | {{{!}}class="infobox-scoreboard" style="margin: 0; padding: 0; width:100%;" | ||
+ | {{!}}- | ||
+ | {{!}}colspan="3" style="text-align: center;"{{!}}'''Division B''' | ||
+ | {{!}}- | ||
+ | {{!}}- style="background-color: gold;" | ||
+ | {{!}}style="width: 10%; text-align: center;"{{!}}'''1st''' | ||
+ | {{!}}style="width: 80%; padding-left: 5px;"{{!}} '''{{{1stBName|}}}''' | ||
+ | {{!}}style="width: 10%; text-align: center;"{{!}}'''{{{1stBPoints|}}}''' | ||
+ | {{!}}- style="background-color: silver;" | ||
+ | {{!}}style="width: 10%; text-align: center;"{{!}}2nd | ||
+ | {{!}}style="width: 80%; padding-left: 5px;"{{!}}{{{2ndBName|}}} | ||
+ | {{!}}style="width: 10%; text-align: center;"{{!}}{{{2ndBPoints|}}} | ||
+ | {{!}}- style="background-color: #d1965c;" | ||
+ | {{!}}style="width: 10%; text-align: center;"{{!}}3rd | ||
+ | {{!}}style="width: 80%; padding-left: 5px;"{{!}}{{{3rdBName|}}} | ||
+ | {{!}}style="width: 10%; text-align: center;"{{!}}{{{3rdBPoints|}}} | ||
+ | {{!}}- | ||
+ | {{!}}colspan="3" style="text-align: center;"{{!}}'''Division C''' | ||
+ | {{!}}- | ||
+ | {{!}}- style="background-color: gold;" | ||
+ | {{!}}style="width: 10%; text-align: center;"{{!}}'''1st''' | ||
+ | {{!}}style="width: 80%; padding-left: 5px;"{{!}} '''{{{1stCName|}}}''' | ||
+ | {{!}}style="width: 10%; text-align: center;"{{!}}'''{{{1stCPoints|}}}''' | ||
+ | {{!}}- style="background-color: silver;" | ||
+ | {{!}}style="width: 10%; text-align: center;"{{!}}2nd | ||
+ | {{!}}style="width: 80%; padding-left: 5px;"{{!}}{{{2ndCName|}}} | ||
+ | {{!}}style="width: 10%; text-align: center;"{{!}}{{{2ndCPoints|}}} | ||
+ | {{!}}- style="background-color: #d1965c;" | ||
+ | {{!}}style="width: 10%; text-align: center;"{{!}}3rd | ||
+ | {{!}}style="width: 80%; padding-left: 5px;"{{!}}{{{3rdCName|}}} | ||
+ | {{!}}style="width: 10%; text-align: center;"{{!}}{{{3rdCPoints|}}} | ||
+ | {{#if: {{{1stCPoints|}}} | | ||
+ | {{#ifexpr: {{{1stCPoints|}}} > {{{2ndCPoints|}}} | | ||
+ | {{!}}- | ||
+ | {{!}}colspan="3" style="text-align: center;"{{!}}''High scores were used to determine winners at this tournament'' | ||
+ | | | ||
+ | {{#ifexpr: {{{2ndCPoints|}}} > {{{3rdCPoints|}}} | | ||
+ | {{!}}- | ||
+ | {{!}}colspan="3" style="text-align: center;"{{!}}''High scores were used to determine winners at this tournament'' | ||
+ | }} | ||
+ | }} | ||
+ | | {{#if: {{{1stBPoints|}}} | | ||
+ | {{#ifexpr: {{{1stBPoints|}}} > {{{2ndBPoints|}}} | | ||
+ | {{!}}- | ||
+ | {{!}}colspan="3" style="text-align: center;"{{!}}''High scores were used to determine winners at this tournament'' | ||
+ | | | ||
+ | {{#ifexpr: {{{2ndBPoints|}}} > {{{3rdBPoints|}}} | | ||
+ | {{!}}- | ||
+ | {{!}}colspan="3" style="text-align: center;"{{!}}''High scores were used to determine winners at this tournament''}} | ||
+ | }} | ||
+ | }} | ||
+ | }} | ||
+ | {{!}}- | ||
+ | {{!}}} | ||
+ | {{!}}- | ||
+ | }} | ||
+ | {{#if: {{{DuPontB|}}}{{{DuPontC|}}}{{{LockheedB|}}}{{{LockheedC|}}}{{{CortevaB|}}}{{{CortevaC|}}}| {{!}}colspan="2" class="infobox-header"{{!}}'''Awards Information''' | ||
{{!}}- | {{!}}- | ||
}} | }} | ||
Line 64: | Line 123: | ||
{{!}}'''DuPont Team Enterprise Award (C)''' | {{!}}'''DuPont Team Enterprise Award (C)''' | ||
{{!}}{{{DuPontC|}}} | {{!}}{{{DuPontC|}}} | ||
+ | {{!}}- | ||
+ | }} | ||
+ | {{#if: {{{CortevaB|}}}| | ||
+ | {{!}}'''Corteva Enterprise Award (B)''' | ||
+ | {{!}}{{{CortevaB|}}} | ||
+ | {{!}}- | ||
+ | }} | ||
+ | {{#if: {{{CortevaC|}}}| | ||
+ | {{!}}'''Corteva Enterprise Award (C)''' | ||
+ | {{!}}{{{CortevaC|}}} | ||
{{!}}- | {{!}}- | ||
}} | }} | ||
Line 81: | Line 150: | ||
{{!}}- | {{!}}- | ||
}} | }} | ||
+ | {{#if: {{{Prev|}}}{{{Year|}}}| {{!}}colspan="2" class="infobox-header"{{!}} | ||
+ | {{{!}}style="width: 100%; line-height: 1; padding: 0; margin: 0;" | ||
+ | {{!}}- | ||
+ | {{!}}style="width: 35%;"{{!}}← {{{Prev}}} | ||
+ | {{!}}style="width: 30%;"{{!}}'''[[{{PAGENAME}}|{{{Year}}}]]''' | ||
+ | {{!}}style="width: 35%;"{{!}}{{{Next}}} → | ||
+ | {{!}}- | ||
+ | {{!}}} | ||
+ | |||
+ | {{!}}- | ||
+ | }} | ||
+ | |||
|} | |} | ||
<noinclude> | <noinclude> | ||
− | {{ | + | {{Documentation}} |
− | |||
− | |||
</noinclude> | </noinclude> |
Revision as of 17:59, 18 February 2021
Infobox national tournament |
---|
The Infobox national tournament template is a template used to generate an infobox for a national tournament.
Parameters
Location
state
- the state of the tournamentlat
- the latitude of the host of the tournamentlong
- the longitude of the host of the tournamentmap
- a custom map showing the tournament location (note: please usestate
,lat
, andlong
typically, and only use this parameter if needed)
General Information
logo
- the file name of the logo of the tournamentHost
- the host of the tournamentTotal teams
- the total number of teams at the tournamentChampionB
- the Division B championChampionC
- the Division C championDate
- the dates on which the competition was held
Results
1stBName
- the name of the Division B 1st place winner2ndBName
- the name of the Division B 2nd place winner3rdBName
- the name of the Division B 3rd place winner1stBPoints
- the points earned by the Division B 1st place winner2ndBPoints
- the points earned by the Division B 2nd place winner3rdBPoints
- the points earned by the Division B 3rd place winner1stCName
- the name of the Division C 1st place winner2ndCName
- the name of the Division C 2nd place winner3rdCName
- the name of the Division C 3rd place winner1stCPoints
- the points earned by the Division C 1st place winner2ndCPoints
- the points earned by the Division C 2nd place winner3rdCPoints
- the points earned by the Division C 3rd place winner
Awards
DuPontB
- the division B winner of the DuPont Team Enterprise Award (only for tournaments from 2018 and earlier)DuPontC
- the division C winner of the DuPont Team Enterprise Award (only for tournaments from 2018 and earlier)CortevaB
- the division B winner of the Corteva Enterprise Award (only for tournaments from 2019 and later)CortevaC
- the division C winner of the Corteva Enterprise Award (only for tournaments from 2019 and later)LockheedB
- the division B winner of the Lockheed Martin Spirit AwardLockheedC
- the division C winner of the Lockheed Martin Spirit AwardWebsite
- the tournament website
Navigation
Prev
- the previous tournament's wikiNext
- the next tournament's wikiYear
- the current tournament's year
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 national tournament |Host=Cornell University}} |
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
{{Infobox national tournament |Host=Cornell University |Total teams=120 |ChampionB=Ladue Middle School |ChampionC=Ladue Horton Watkins High School |Date=January 1-3, 2020 |Website=http://www.scioly.org}} |
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
{{Infobox national tournament |Host=Cornell University |Total teams=120 |ChampionB=Ladue Middle School |ChampionC=Ladue Horton Watkins High School |DuPontB=Ladue Middle School |DuPontC=Ladue Horton Watkins High School |LockheedB=Ladue Middle School |LockheedC=Ladue Horton Watkins High School |Date=January 1-3, 2020 |Website=http://www.scioly.org}} |
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
{{Infobox national tournament |Host=Cornell University |Total teams=120 |ChampionB=Ladue Middle School |ChampionC=Ladue Horton Watkins High School |CortevaB=Ladue Middle School |CortevaC=Ladue Horton Watkins High School |LockheedB=Ladue Middle School |LockheedC=Ladue Horton Watkins High School |Date=January 1-3, 2020 |Website=http://www.scioly.org}} |
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
{{Infobox national tournament |logo=Image:2019 Nationals logo.jpg |Host=Cornell University |1stBName=Kennedy Middle School |1stBPoints=148 |2ndBName=Solon Middle School |2ndBPoints=191 |3rdBName=Community Middle School |3rdBPoints=250 |1stCName=Troy High School |1stCPoints=231 |2ndCName=Solon High School |2ndCPoints=276 |3rdCName=Harriton High School |3rdCPoints=277 |Total teams=120 |ChampionB=Ladue Middle School |ChampionC=Ladue Horton Watkins High School |DuPontB=Ladue Middle School |DuPontC=Ladue Horton Watkins High School |LockheedB=Ladue Middle School |LockheedC=Ladue Horton Watkins High School |Date=January 1-3, 2020 |Website=http://www.scioly.org |Prev=[[Cornell University 2019|2019]] |Next=[[Arizona State University 2021|2021]] |Year=2020}} |
|
The above documentation is transcluded from Template:Infobox national tournament/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. |