Template:Strb row: Difference between revisions
Jaspattack (talk | contribs) i am a silly goose who forgot how conditional operators works |
Jaspattack (talk | contribs) mNo edit summary |
||
| Line 15: | Line 15: | ||
{{#switch: {{{condition|}}} | {{#switch: {{{condition|}}} | ||
|cancelled-div-c={{!}}colspan="{{#if: {{{col|}}}|{{#expr:col/2}}|5}}" {{!}}''Cancelled {{#if: {{{condition_reason|}}}|due to {{{condition_reason|}}}}}'' | |cancelled-div-c={{!}}colspan="{{#if: {{{col|}}}|{{#expr:col/2}}|5}}" {{!}}''Cancelled {{#if: {{{condition_reason|}}}|due to {{{condition_reason|}}}}}'' | ||
|not-held-div-c={{!}}colspan="{{#if: {{{col|}}}|{{#expr:col/2}}|5}}" {{!}}'' | |not-held-div-c={{!}}colspan="{{#if: {{{col|}}}|{{#expr:col/2}}|5}}" {{!}}''Not held {{#if: {{{condition_reason|}}}|due to {{{condition_reason|}}}}}'' | ||
|{{!}} {{{div_c_champ|}}} | |{{!}} {{{div_c_champ|}}} | ||
{{!}} {{{div_c_champ_nats|}}} | {{!}} {{{div_c_champ_nats|}}} | ||
Latest revision as of 18:44, 18 May 2023
| | | | | | | | | | |-
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_champThe Division B champion for the specified year.div_b_champ_natsThe Nationals placement for the Division B champion for the specified year.div_b_runnerupThe Division B runner-up for the specified year.div_b_runnerup_natsThe 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_thirdThe Division B third place team for the specified year.div_c_champThe Division C champion for the specified year.div_c_champ_natsThe Nationals place for the Division C champion for the specified year.div_c_runnerupThe Division C runner-up for the specified year.div_c_runnerup_natsThe 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_thirdThe 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 tocancelled,cancelled-div-b, orcancelled-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.