Difference between revisions of "Template:Strb row"

From Scioly.org
Jump to: navigation, search
(Testing div B)
m
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
{{#switch:{{{condition|}}}
 
{{#switch:{{{condition|}}}
 
|cancelled=
 
|cancelled=
{{!}}colspan="{{{col|8}}}" {{!}}''Cancelled {{#if: {{{condition_reason|}}}|due to {{{condition_reason|}}}}}''
+
{{!}}colspan="{{{col|10}}}" {{!}}''Cancelled {{#if: {{{condition_reason|}}}|due to {{{condition_reason|}}}}}''
 
|
 
|
 
{{#ifeq: {{{condition|}}}|cancelled-div-b
 
{{#ifeq: {{{condition|}}}|cancelled-div-b
|{{!}}colspan="{{#if: {{{col|}}}|{{#expr:col/2}}|4}}" {{!}}''Cancelled {{#if: {{{condition_reason|}}}|due to {{{condition_reason|}}}}}''
+
|{{!}}colspan="{{#if: {{{col|}}}|{{#expr:col/2}}|5}}" {{!}}''Cancelled {{#if: {{{condition_reason|}}}|due to {{{condition_reason|}}}}}''
 
|{{!}} {{{div_b_champ|}}}
 
|{{!}} {{{div_b_champ|}}}
 
{{!}} {{{div_b_champ_nats|}}}
 
{{!}} {{{div_b_champ_nats|}}}
 
{{!}} {{{div_b_runnerup|}}}
 
{{!}} {{{div_b_runnerup|}}}
{{!}} {{{div_b_runnerup_nats|}}}}}
+
{{!}} {{{div_b_runnerup_nats|}}}
{{!}} {{{div_c_champ|}}}
+
{{!}} {{{div_b_third|}}}}}
 +
{{#ifeq: {{{condition|}}}|cancelled-div-c
 +
|{{!}}colspan="{{#if: {{{col|}}}|{{#expr:col/2}}|5}}" {{!}}''Cancelled {{#if: {{{condition_reason|}}}|due to {{{condition_reason|}}}}}''
 +
|{{!}} {{{div_c_champ|}}}
 
{{!}} {{{div_c_champ_nats|}}}
 
{{!}} {{{div_c_champ_nats|}}}
 
{{!}} {{{div_c_runnerup|}}}
 
{{!}} {{{div_c_runnerup|}}}
 
{{!}} {{{div_c_runnerup_nats|}}}
 
{{!}} {{{div_c_runnerup_nats|}}}
 +
{{!}} {{{div_c_third|}}}}}
 
}}
 
}}
 
{{!}}-
 
{{!}}-

Latest revision as of 09:09, 6 July 2020

| | | | | | | | | | |-

Template:Strb row - Documentation

The Strb row template (derived for State tournament results box row template) is the companion template to Template:State tournament results box used to generate a results box for a state-level tournament.

One instance of this template can be used for each row in the results box to generate the row for a specific year.

Parameters

div_b_champ The Division B champion for the specified year.
div_b_champ_nats The Nationals placement for the Division B champion for the specified year.
div_b_runnerup The Division B runner-up for the specified year.
div_b_runnerup_nats The Nationals placement for the Division B runner-up for the specified year. (If there is only one bid for the state, this can be "N/A" or something similar.)
div_b_third The Division B third place team for the specified year.
div_c_champ The Division C champion for the specified year.
div_c_champ_nats The Nationals place for the Division C champion for the specified year.
div_c_runnerup The Division C runner-up for the specified year.
div_c_runnerup_nats The Nationals placement for the Division C runner-up for the specified year. (If there is only one bid for the state, this can be "N/A" or something similar.)
div_c_third The Division C third place team for the specified year.

Canceled Tournaments If one or more divisions of a state tournament is cancelled, use the following parameters.

condition - can be set to cancelled, cancelled-div-b, or cancelled-div-c.
condition_reason - the reason for the tournament or division being cancelled

Examples

Examples using this template can be found on the state tournament results box template page.