Difference between revisions of "Template:EventLinksBox"

From Scioly.org
Jump to: navigation, search
(Ok should be good now)
m (Added an ID to test something.)
 
(3 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{|align="right" class="infobox"
+
{|align="right" class="infobox" id="EventLinksBox"
 
|-
 
|-
 
! colspan="2" style="font-size: larger; text-align: center;" {{!}} '''{{PAGENAME}}'''
 
! colspan="2" style="font-size: larger; text-align: center;" {{!}} '''{{PAGENAME}}'''
Line 19: Line 19:
 
{{!}}-
 
{{!}}-
 
}}
 
}}
{{#if: {{{2025thread|}}}{{{2024thread|}}}{{{2023thread|}}}{{{202thread|}}}{{{2021thread|}}}{{{2020thread|}}}{{{2019thread|}}}{{{2018thread|}}}{{{2017thread|}}}{{{2016thread|}}}{{{2015thread|}}}{{{2014thread|}}}{{{2013thread|}}}{{{2012thread|}}}{{{2011thread|}}}{{{2010thread|}}}{{{2009thread|}}}| {{!}}colspan="2" class="infobox-header"{{!}}'''Event Information'''  
+
{{#if: {{{participants|}}}{{{eventtime|}}}{{{impound|}}}{{{resources|}}}{{{rotates|}}}{{{eyeprotection|}}}{{{firstappearance|}}}{{{latestappearance|}}}{{{2017thread|}}}{{{2016thread|}}}{{{2015thread|}}}{{{2014thread|}}}{{{2013thread|}}}{{{2012thread|}}}{{{2011thread|}}}{{{2010thread|}}}{{{2009thread|}}}| {{!}}colspan="2" class="infobox-header"{{!}}'''Event Information'''  
 
{{!}}-
 
{{!}}-
 
}}
 
}}
Line 58: Line 58:
 
{{!}}-
 
{{!}}-
 
}}
 
}}
{{#if: {{{latestappearance|}}}|
+
{{#if: {{{latestappearance|}}}{{{2025thread|}}}{{{2024thread|}}}{{{2023thread|}}}{{{2022thread|}}}{{{2021thread|}}}{{{2020thread|}}}{{{2019thread|}}}{{{2018thread|}}}{{{2017thread|}}}{{{2016thread|}}}{{{2015thread|}}}{{{2014thread|}}}{{{2013thread|}}}{{{2012thread|}}}{{{2011thread|}}}{{{2010thread|}}}{{{2009thread|}}}|
 
{{!}}'''Latest Appearance'''
 
{{!}}'''Latest Appearance'''
{{!}}{{#if: {{{latestappearance|}}}|{{{latestappearance|}}}|{{#if: {{{2025thread}}}|2025|{{#if: {{{2024thread}}}|2024|{{#if: {{{2023thread}}}|2023|{{#if: {{{2022thread}}}|2022|{{#if: {{{2021thread}}}|2021|{{#if: {{{2020thread}}}|2020|{{#if: {{{2019thread}}}|2019|{{#if: {{{2018thread}}}|2018|{{#if: {{{2017thread}}}|2017|{{#if: {{{2016thread}}}|2016|{{#if: {{{2015thread}}}|2015|{{#if: {{{2014thread}}}|2014|{{#if: {{{2013thread}}}|2013|{{#if: {{{2012thread}}}|2012|{{#if: {{{2011thread}}}|2011|{{#if: {{{2010thread}}}|2010|{{#if: {{{2009thread}}}|2009}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}
+
{{!}}{{#if: {{{latestappearance|}}}|{{{latestappearance|}}}|{{#if: {{{2025thread|}}}|2025|{{#if: {{{2024thread|}}}|2024|{{#if: {{{2023thread|}}}|2023|{{#if: {{{2022thread|}}}|2022|{{#if: {{{2021thread|}}}|2021|{{#if: {{{2020thread|}}}|2020|{{#if: {{{2019thread|}}}|2019|{{#if: {{{2018thread|}}}|2018|{{#if: {{{2017thread|}}}|2017|{{#if: {{{2016thread|}}}|2016|{{#if: {{{2015thread|}}}|2015|{{#if: {{{2014thread|}}}|2014|{{#if: {{{2013thread|}}}|2013|{{#if: {{{2012thread|}}}|2012|{{#if: {{{2011thread|}}}|2011|{{#if: {{{2010thread|}}}|2010|{{#if: {{{2009thread|}}}|2009}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}
 
{{!}}-
 
{{!}}-
 
}}
 
}}
Line 118: Line 118:
 
{{!}}-
 
{{!}}-
 
}}
 
}}
{{#if: {{{2020questions|}}}{{{2019questions|}}}{{{2018questions|}}}{{{2017questions|}}}{{{2016questions|}}}{{{2015questions|}}}{{{2014questions|}}}{{{2013questions|}}}{{{2012questions|}}}{{{2011questions|}}}{{{2010questions|}}}{{{2009questions|}}}| {{!}}colspan="2" class="infobox-header"{{!}}'''Forum Question Threads'''  
+
{{#if: {{{2020questions|}}}{{{2019questions|}}}{{{2018questions|}}}{{{2017questions|}}}{{{2016questions|}}}{{{2015questions|}}}{{{2014questions|}}}{{{2013questions|}}}{{{2012questions|}}}{{{2011questions|}}}{{{2010questions|}}}{{{2009questions|}}}| {{!}}colspan="2" class="infobox-header"{{!}}'''Question Marathon Threads'''  
 
{{!}}-
 
{{!}}-
 
}}
 
}}
Line 230: Line 230:
 
{{!}}-
 
{{!}}-
 
}}
 
}}
|}<noinclude>
+
|}
 +
<noinclude>
 
{{Documentation}}
 
{{Documentation}}
</div>
 
 
 
</noinclude>
 
</noinclude>

Latest revision as of 17:35, 11 September 2020

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

The EventLinksBox template is used to generate an infobox for an event page.

Parameters

Categorization parameters

  • active - ONLY include this parameter if the event is being held for the current season. If this parameter is set, then the infobox will specify that this event is being held in the current season. What the parameter is set to does not matter, though it is typically set to yes or true to maintain clarity.
  • type - the event type, as defined by the national rules committee. The types are (as abbreviated for formatting): Life Science, Earth Science, Physics, Chemistry, Engineering, and Inquiry.
  • cat - the category the event falls under on the forum home page (Build, Lab, or Study)

Event parameters

  • participants - the number of people who can participate in the event per team
  • eventtime - the amount of time it takes to complete the event
  • impound - whether the event has impound
  • resources - a basic description of resources that a participant in the event can have
  • rotates - whether the event rotates
  • eyeprotection - eye protection required for the event
  • firstappearance - the year that the event first appeared
  • latestappearance - the most recent year that the event appeared

Scioly.org-related parameters

  • <year>thread - links to the event thread for a particular year. The parameter value should be in the form of an external link, in wiki markup. Omit the parameter if there was no forum thread (either regular or trial) in that year.
  • <year>questions - links to a Question Marathon threads for a particular year. Use exactly like forum threads. While a Question Marathon subforum did not exist in 2012 and 2013, question marathon threads still may exist for some events from that time.

Champion parameters

  • 1stBName, 2ndBName, 3rdBName - the three highest placing Divison B teams at the most recent National Tournament this event was held at
  • 1stCName, 2ndCName, 3rdCName - the three highest placing Division C teams at the most recent National Tournament this event was held at

Website parameters

  • Website - the link to the official Science Olympiad Inc. website for the event. Only use this parameter if the event is exclusive to one division.
  • WebsiteB, WebsiteC - the links to the official Science Olympiad Inc. website for the event in each division. Only use these parameters if the event is featured in both divisions.

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
{{EventLinksBox
|active=yes
|type=Life Science
|cat=Study
}}
{{EventLinksBox
|active=yes
|type=Life Science
|cat=Study
|2019thread=[https://scioly.org/forums/viewtopic.php?f=285&t=12165 2019]
|2019questions=[https://scioly.org/forums/viewtopic.php?f=297&t=12397 2019]
|2020thread=[https://scioly.org/forums/viewtopic.php?f=285&t=15386 2020]
|2020questions=[https://scioly.org/forums/viewtopic.php?f=297&t=15735 2020]
}}
{{EventLinksBox
|active=yes
|type=Life Science
|cat=Study
|participants=2
|eventtime=50 Minutes
|eyeprotection=None
|rotates=No, only systems rotate
|resources=
* One cheat sheet
* Two basic calculators
|impound=No
|firstappearance=1984
|2019thread=[https://scioly.org/forums/viewtopic.php?f=285&t=12165 2019]
|2019questions=[https://scioly.org/forums/viewtopic.php?f=297&t=12397 2019]
|2020thread=[https://scioly.org/forums/viewtopic.php?f=285&t=15386 2020]
|2020questions=[https://scioly.org/forums/viewtopic.php?f=297&t=15735 2020]
|1stBName=Solon Middle School
|1stCName=Carmel High School
|2ndBName=Kennedy Middle School
|3rdBName=Beckendorff Junior High School
|2ndCName=Brookwood High School
|3rdCName=Troy High School
|WebsiteB=https://www.soinc.org/anatomy-and-physiology-b
|WebsiteC=https://www.soinc.org/anatomy-and-physiology-c
}}