Difference between revisions of "Template:Irb row"

From Wiki - Scioly.org
Jump to navigation Jump to search
(Created page with "<noinclude> {{User:Pepperonipi/Wiki/Construction Template}} </noinclude> <includeonly> {{#switch:{{{condition|}}} |cancelled= {{!}}- {{!}} '''{{{year|}}}''' {{!}}colspan="57"...")
 
(Removed "sixth" parameter because not used anywhere)
(8 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>
 
{{User:Pepperonipi/Wiki/Construction Template}}
 
</noinclude>
 
 
 
<includeonly>
 
<includeonly>
 
{{#switch:{{{condition|}}}
 
{{#switch:{{{condition|}}}
 
|cancelled=
 
|cancelled=
{{!}}-
+
{{!}}colspan="{{{col|5}}}" style="background: #ffdddd;"{{!}}''Cancelled {{#if: {{{condition_reason|}}}|due to {{{condition_reason|}}}}}''
{{!}} '''{{{year|}}}'''
 
{{!}}colspan="57" style="background: #ffdddd;"{{!}}''Cancelled''
 
 
{{!}} {{{date|}}}
 
{{!}} {{{date|}}}
 
{{!}} {{{teams|}}}
 
{{!}} {{{teams|}}}
|cancelled-weather=
+
|notheld=
{{!}}-
+
{{!}}colspan="{{{col|5}}}" style="background: #ffdead;"{{!}}''Not held {{#if: {{{condition_reason|}}}|due to {{{condition_reason|}}}}}''
{{!}} '''{{{year|}}}'''
 
{{!}}colspan="5" style="background: #ffdddd;"{{!}}''Cancelled due to weather''
 
 
{{!}} {{{date|}}}
 
{{!}} {{{date|}}}
 
{{!}} {{{teams|}}}
 
{{!}} {{{teams|}}}
 
|
 
|
{{!}} {{{first|}}}
+
{{!}} {{#if: {{{first|}}}|{{{first|}}}|{{{first_name|}}}{{#if: {{{first_note|}}}|<sup>{{{first_note}}}</sup>}} {{#if: {{{first_points|}}}|({{{first_points|}}})}}}}
{{!}} {{{second|}}}
+
{{!}} {{#if: {{{second|}}}|{{{second|}}}|{{{second_name|}}}{{#if: {{{second_note|}}}|<sup>{{{second_note}}}</sup>}} {{#if: {{{second_points|}}}|({{{second_points|}}})}}}}
{{!}} {{{third|}}}
+
{{!}} {{#if: {{{third|}}}|{{{third|}}}|{{{third_name|}}}{{#if: {{{third_note|}}}|<sup>{{{third_note}}}</sup>}} {{#if: {{{third_points|}}}|({{{third_points|}}})}}}}
{{!}} {{{fourth|}}}
+
{{!}} {{#if: {{{fourth|}}}|{{{fourth|}}}|{{{fourth_name|}}}{{#if: {{{fourth_note|}}}|<sup>{{{fourth_note}}}</sup>}} {{#if: {{{fourth_points|}}}|({{{fourth_points|}}})}}}}
{{!}} {{{fifth|}}}
+
{{!}} {{#if: {{{fifth|}}}|{{{fifth|}}}|{{{fifth_name|}}}{{#if: {{{fifth_note|}}}|<sup>{{{fifth_note}}}</sup>}} {{#if: {{{fifth_points|}}}|({{{fifth_points|}}})}}}}
 +
{{#if: {{{sixth_name|}}}|{{!}} {{{sixth_name|}}}{{#if: {{{sixth_note|}}}|<sup>{{{sixth_note}}}</sup>}} {{#if: {{{sixth_points|}}}|({{{sixth_points|}}})}}}}
 
{{!}} {{{date|}}}
 
{{!}} {{{date|}}}
 
{{!}} {{{teams|}}}
 
{{!}} {{{teams|}}}
Line 28: Line 21:
 
{{!}}-
 
{{!}}-
 
</includeonly>
 
</includeonly>
 
+
<noinclude>
 +
{{Irb row/doc}}
 +
</noinclude>
 
<noinclude>
 
<noinclude>
 
[[Category: Templates]]
 
[[Category: Templates]]
 +
[[Category: Results Templates]]
 
[[Category: Organization Templates]]
 
[[Category: Organization Templates]]
 
</noinclude>
 
</noinclude>

Revision as of 14:54, 16 February 2020


The Irb row template (abbreviated for Invitational results box row template) is a template used to construct rows in a Invitational results box template. Without this template, the Invitational results box template cannot be used, and a Invitational results box template will often contain multiple of these templates to represent multiple rows.

Parameters

first_name - the name of the first-placing school
first_note - a superscript note to be placed next to the first-placing school in case that footnotes are beneficial to the table
first_points - the number of points earned by the first-placing school
second_name, second_note, and second_points - parameters similar to the first three above, but for the second-placing school
third_name, third_note, and third_points - parameters similar to the first three, but for the third-placing school
fourth_name, fourth_note, and fourth_points - parameters similar to the first three, but for the fourth-placing school
fifth_name, fifth_note, and fifth_points - parameters similar to the first three, but for the fifth-placing school
sixth_name, sixth_note, and sixth_points - parameters similar to the first three, but for the sixth-placing school (note that this parameter requires that the col parameter in the main Invitational results box template is set equaling 6, which it is by default not)
condition - a special condition for this row (such as the tournament being cancelled, see Conditions below for more)
condition_reason - the reason for the condition
col - the number of columns in the main Invitational results box template (default: 5)
date - the date of the tournament
teams - the number of teams at the tournament

Conditions

Condition Explanation
cancelled represents that the tournament was cancelled that year
notheld represents that the tournament was not held that year

Examples

See the Examples section of the Invitational results box template documentation to see how this template is used.