Difference between revisions of "Template:Side event row"

From QBWiki
Jump to navigation Jump to search
(Created page with "<includeonly>|- | {{{1}}} | {{#if:{{{cancelled|}}}|<del>{{{2}}}</del>|{{{2}}}}} |{{#vardefine:colors| <!---->{{#replace:{{#replace:{{#replace:{{#replace:{{#replace: <!----><!-...")
 
Line 9: Line 9:
 
<!----><!---->}}|Science|mediumspringgreen
 
<!----><!---->}}|Science|mediumspringgreen
 
<!----><!---->}}|Trash|bisque
 
<!----><!---->}}|Trash|bisque
}}}}{{#ifeq:{{#var:colors}}|{{{3}}}|{{{3}}}|
+
}}}}{{#ifeq:{{#var:colors}}|{{{3}}}||
 
<!---->{{#if:{{#explode:{{{3}}}|, |4}}
 
<!---->{{#if:{{#explode:{{{3}}}|, |4}}
 
<!----><!---->|style="background: linear-gradient(100deg, {{#explode:{{#var:colors}}|, |0}} 20%, {{#explode:{{#var:colors}}|, |1}} 20% 40%, {{#explode:{{#var:colors}}|, |2}} 40% 60%, {{#explode:{{#var:colors}}|, |3}} 60% 80%, {{#explode:{{#var:colors}}|, |4}} 80%)"{{!}}
 
<!----><!---->|style="background: linear-gradient(100deg, {{#explode:{{#var:colors}}|, |0}} 20%, {{#explode:{{#var:colors}}|, |1}} 20% 40%, {{#explode:{{#var:colors}}|, |2}} 40% 60%, {{#explode:{{#var:colors}}|, |3}} 60% 80%, {{#explode:{{#var:colors}}|, |4}} 80%)"{{!}}
Line 23: Line 23:
 
<!----><!---->}}
 
<!----><!---->}}
 
<!---->}}
 
<!---->}}
}}
+
}}{{{3}}}
{{{3}}}
 
 
| {{{4}}}
 
| {{{4}}}
| {{{5}}}
+
| {{#ifeq:{{{audiovisual|}}}|audio|style="background: azure" {{!}}}}<!--
| {{#if:{{{numpackets|}}}|data-sort-value={{{numpackets}}}{{!}}}} {{{6}}}
+
-->{{#ifeq:{{{audiovisual|}}}|visual|style="background: ivory" {{!}}}}{{{format|{{{5|}}}}}}
| {{#if:{{{packetsub|}}}|style="background: linen"{{!}}}} {{{7}}}
+
| {{#if:{{{numpackets|}}}|data-sort-value={{{numpackets}}}{{!}}}} {{{packets|{{{6|}}}}}}
| {{#if:{{{8|}}}|{{{8}}}{{#if:{{{cancelled|}}}|<br/>Cancelled}}|{{#if:{{{cancelled|}}}|Cancelled}}}}
+
| {{#if:{{{packetsub|}}}|style="background: linen"{{!}}}} {{{writers|{{{7|}}}}}}
 +
| {{#if:{{{notes|{{{8|}}}}}}|{{{notes|{{{8}}}}}}{{#if:{{{cancelled|}}}|<br/>Cancelled}}|{{#if:{{{cancelled|}}}|Cancelled}}}}
 
|-</includeonly>
 
|-</includeonly>
 
<noinclude>A row of the table listing side events for a given year. For use in the [[List of side events]] page.
 
<noinclude>A row of the table listing side events for a given year. For use in the [[List of side events]] page.
Line 39: Line 39:
 
*{{{3}}} - The category or categories of the side event. Multiple categories can be specified and should be separated by a comma and a space (", ").
 
*{{{3}}} - The category or categories of the side event. Multiple categories can be specified and should be separated by a comma and a space (", ").
 
*{{{4}}} - The specific subject/gimmick of the side event.
 
*{{{4}}} - The specific subject/gimmick of the side event.
*{{{5}}} - The format of the side event.
+
*{{{5}}}/format - The format of the side event.
*audiovisual -  
+
*audiovisual - Whether the set was an [[audio set]] ("audio"), a [[visual set]] ("visual"), or neither (empty).
*{{{6}}} - Link to the packets, with the number of packets.
+
*{{{6}}}/packets - Link to the packets, with the number of packets.
 
*numpackets - The number of packets, for sorting purposes.
 
*numpackets - The number of packets, for sorting purposes.
*{{{7}}} - The writers or organizers  
+
*{{{7}}} - The writers or organizers, as well as the means by which the set was organized (e.g. was it [[guerilla]]?)
 
*packetsub - Whether the set is a [[packet sub]] set. Any non-whitespace value will indicate that it is, while not using this will indicate that it isn't.
 
*packetsub - Whether the set is a [[packet sub]] set. Any non-whitespace value will indicate that it is, while not using this will indicate that it isn't.
 
*{{{8}}} - Notes (optional)
 
*{{{8}}} - Notes (optional)
  
 
To view the column names for this table, see [[Template:Side events table start]] or the example below.
 
To view the column names for this table, see [[Template:Side events table start]] or the example below.
 
  
 
Examples of categories:
 
Examples of categories:
Line 95: Line 94:
 
|style="background: bisque" | Trash
 
|style="background: bisque" | Trash
 
|}
 
|}
Similar patterns appear when provided more than two categories, but a table showing possible options cannot be easily rendered in 2D space.
+
Similar patterns appear when provided more than two categories, but a table showing possible options cannot be easily rendered in 2D space and generally side events do not have many more than two.
  
 
Example table:
 
Example table:
 
{{Side events table start}}
 
{{Side events table start}}
{{Side event row|January 1, 2000|Y2K|Science|4|5|audiovisual=|6|numpackets=6|Packet sub|packetsub=true|cancelled=true}}
+
{{Side event row|January 1, 2000|Y2K|Science|The new millenium|2000 audio tossups|audiovisual=audio||Packet sub|packetsub=true|cancelled=true}}
{{Side event row|1|2|Arts, History|4|5|6|7}}
+
{{Side event row|The year 3000|Art History|Arts, History|History, art, and art history|3000 visual tossups|audiovisual=visual|numpackets=150}}
{{Side event row|1|2|Arts, History, Literature|4|5|6|7}}
+
{{Side event row|February 29, 2019|FAKE|Arts, History, Literature, Science, Trash|Most subject tournament on fake things}}
{{Side event row|1|2|Arts, History, Literature, Science|4|5|6|7}}
+
{{Side event row|February 30, 2020|FAKE II|General|All subject fake things|packets=Packets|notes=Notes}}
{{Side event row|1|2|Arts, History, Literature, Science, Trash|4|5|6|7}}
+
{{Side event row|February 31, 2021|FAKE III|Arts, General|All subject fake things + all art is twice as fake|writers=Writers}}
 
{{Side events table end}}
 
{{Side events table end}}
 +
 +
<pre>
 +
{{Side event row|January 1, 2000|Y2K|Science|The new millenium|Audio tournament|audiovisual=audio||Packet sub|packetsub=true|cancelled=true}}
 +
{{Side event row|The year 3000|Art History|Arts, History|History, art, and art history|Visual packet|audiovisual=visual|6 packets|numpackets=6|7}}
 +
{{Side event row|February 29, 2019|FAKE|Arts, History, Literature, Science, Trash|4}}
 +
{{Side event row|February 30, 2020|FAKE II|General|4|packets=Packets|notes=Notes}}
 +
{{Side event row|February 31, 2021|FAKE III|Arts, General|4|writers=Writers}}
 +
</pre>
  
 
</noinclude>
 
</noinclude>

Revision as of 13:16, 30 April 2021

A row of the table listing side events for a given year. For use in the List of side events page.

This template makes extensive use of anonymous parameters.

  • {{{1}}} - The date of the side event (assuming it has a singular date). Should include a link to the announcement.
  • {{{2}}} - The name of the side event. Should attempt to link to the page.
  • {{{3}}} - The category or categories of the side event. Multiple categories can be specified and should be separated by a comma and a space (", ").
  • {{{4}}} - The specific subject/gimmick of the side event.
  • {{{5}}}/format - The format of the side event.
  • audiovisual - Whether the set was an audio set ("audio"), a visual set ("visual"), or neither (empty).
  • {{{6}}}/packets - Link to the packets, with the number of packets.
  • numpackets - The number of packets, for sorting purposes.
  • {{{7}}} - The writers or organizers, as well as the means by which the set was organized (e.g. was it guerilla?)
  • packetsub - Whether the set is a packet sub set. Any non-whitespace value will indicate that it is, while not using this will indicate that it isn't.
  • {{{8}}} - Notes (optional)

To view the column names for this table, see Template:Side events table start or the example below.

Examples of categories:

Arts History Literature Science Trash
Arts Arts Arts, History Arts, Literature Arts, Science Arts, Trash
History History, Arts History History, Literature History, Science History, Trash
Literature Literature, Arts Literature, History Literature Literature, Science Literature, Trash
Science Science, Arts Science, History Science, Literature Science Science, Trash
Trash Trash, Arts Trash, History Trash, Literature Trash, Science Trash

Similar patterns appear when provided more than two categories, but a table showing possible options cannot be easily rendered in 2D space and generally side events do not have many more than two.

Example table:

Date Name Category Subject or gimmick Format Packets Writers or organizers Notes
January 1, 2000 Y2K Science The new millenium 2000 audio tossups Packet sub Cancelled
The year 3000 Art History Arts, History History, art, and art history 3000 visual tossups
February 29, 2019 FAKE Arts, History, Literature, Science, Trash Most subject tournament on fake things
February 30, 2020 FAKE II General All subject fake things Packets Notes
February 31, 2021 FAKE III Arts, General All subject fake things + all art is twice as fake Writers


{{Side event row|January 1, 2000|Y2K|Science|The new millenium|Audio tournament|audiovisual=audio||Packet sub|packetsub=true|cancelled=true}}
{{Side event row|The year 3000|Art History|Arts, History|History, art, and art history|Visual packet|audiovisual=visual|6 packets|numpackets=6|7}}
{{Side event row|February 29, 2019|FAKE|Arts, History, Literature, Science, Trash|4}}
{{Side event row|February 30, 2020|FAKE II|General|4|packets=Packets|notes=Notes}}
{{Side event row|February 31, 2021|FAKE III|Arts, General|4|writers=Writers}}