Template:Side event row/category

From QBWiki
Jump to navigation Jump to search

Template documentation

The category or categories of the side event. Multiple categories can be specified and should be separated by a comma and a space (", "). Any properly formatted combination of Arts, History, Literature, Science, and Trash will be colored - any other options will not be.

Note: providing multiple categories, of which only a subset have valid colors, will result in no color in the cell and a malformed style in the HTML - this does not have any serious consequences but is worth noting. This can be resolved when switch statements work better, which they currently do not.

{{Side event row/category|Arts}}<br/>
{{Side event row/category|History}}<br/>
{{Side event row/category|Literature}}<br/>
{{Side event row/category|Science}}<br/>
{{Side event row/category|Trash}}<br/>
{{Side event row/category|Arts, History, Literature, Science, Trash}}<br/>

style="background: lavender"|Arts
style="background: #fcc"|History
style="background: #fc9"|Literature
style="background: mediumspringgreen"|Science
style="background: bisque"|Trash
style="background: linear-gradient(100deg, lavender 20%, #fcc 20% 40%, #fc9 40% 60%, mediumspringgreen 60% 80%, bisque 80%)"|Arts, History, Literature, Science, Trash


Examples of how one-/two-category cells appear:

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.