Jump to content

Module:Sports rbr table/doc

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Frietjes (talk | contribs) at 17:16, 10 August 2018. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Usage

{{#invoke:Sports rbr table|table
| sortable = <!-- y or n or omit -->
| team1 = 
| pos1  = <!-- 1 / 2 / 3 / 4 / ... -->
| team2 = 
| pos2  = <!-- 1 / 2 / 3 / 4 / ... -->
<!-- ... -->
| color_1 = 1st
| text_1  = 1st place
| source = 
}}

Parameters

Parameter Description
title A top caption for the table, omit for no title.
sortable Is the table sortable? Set to y for a sortable table, and omit for unsortable.
team1 The wililinked name of the first team. For additional teams, use team2, team3, ...
pos1 The forward slash (/) delimited list of round-by-round positions for the first team. For example, |pos1=1/2/3/8/3/2/1 for seven rounds with the position changing from 1 to 2 to 3 to 8 to 3 to 2 to 1.
color_X The background color for position X. Here, X can be a single number (e.g., 1 for position 1), or a non-numeric value corresponding to a position used in the table (e.g., R for relegated or W for withdrew ...) See the color section below for more information on color syntax.
color_-3 The background color for position 1, 2, and 3. See the color section below for more information on color syntax.
color_15- The background color for position 15, 16, .... See the color section below for more information on color syntax.
text_Y Legend text for color_Y. Adding any legend text will trigger the inclusion of a legend at the bottom of the table.
source Source for the information in the table.

Color

The module has several preset background colors that have acceptable contrast with black foreground text. It is recommended to use one of these colors, which match colors used by Module:Sports table.

Name Hex value
green1 BBF3BB
green2 CCF9CC
green3 DDFCDD
green4 EEFFEE
blue1 BBF3FF
blue2 CCF9FF
blue3 DDFCFF
blue4 EEFFFF
Name Hex value
yellow1 FFFFBB
yellow2 FFFFCC
yellow3 FFFFDD
yellow4 FFFFEE
red1 FFBBBB
red2 FFCCCC
red3 FFDDDD
red4 FFEEEE
Name Hex value
black1 BBBBBB
black2 CCCCCC
black3 DDDDDD
black4 EEEEEE
1st FFD700
2nd C0C0C0
3rd CC9966

In some rare cases, it may be necessary to override the background color for a particular cell. This can be accomplished by adding <color> before the position, where color is the color to use for the cell.

Examples

First place
Promoted
Championship League
Relegated
Example 1
Team ╲ Round12345
A Team12222
B Team21444
C Team34161
D Team43613
E Team56387
F Team65835
G Team78558
H Team87776
Source: Some source
{{#invoke:Sports rbr table|table
| title = Example 1
| sortable = y
| team1 = A
| pos1  = 1/2/2/2/2
| team2 = B
| pos2  = 2/1/4/4/4
| team3 = C
| pos3  = 3/4/1/6/1
| team4 = D
| pos4  = 4/3/6/1/3
| team5 = E
| pos5  = 5/6/3/8/7
| team6 = F
| pos6  = 6/5/8/3/5
| team7 = G
| pos7  = 7/8/5/5/8
| team8 = H
| pos8  = 8/7/7/7/6
| color_1 = 1st
| text_1 = First place
| color_2 = green1
| text_2 = Promoted
| color_3-4 = blue2
| text_3-4 = Championship League
| color_7- = red1
| text_7- = Relegated
| source = Some source
}}

See also