Module:Sports rbr table/matchup/doc

From The Global Wiki
Jump to navigation Jump to search

This is the documentation page for Module:Sports rbr table/matchup

Template:Module rating

Usage

Basic usage

This module is an extension of Module:Sports rbr table, showing matchups and head-to-head results table.

In it's simplest form, only several parameters need to be used to build a table.

What you type <syntaxhighlight lang=moin>
Team ╲ Game1234
Dream TeamTM2TM3TM4GIB
Team 2GIBTM1TM3TM4
Team 3TM4GIBTM1TM2
Team 4TM3TM2TM1GIB
Template:Country data GIBTM3TM4TM1TM2
Source: [<span title="Script error: No such module "delink".">citation needed]
  = Win;   = OT win;   = Loss;   = OT loss
</syntaxhighlight>
What it looks like
Team ╲ Game1234
Dream TeamTM2TM3TM4GIB
Team 2GIBTM1TM3TM4
Team 3TM4GIBTM1TM2
Team 4TM3TM2TM1GIB
Template:Country data GIBTM3TM4TM1TM2
Source: [<span title="Script error: No such module "delink".">citation needed]
  = Win;   = OT win;   = Loss;   = OT loss

Parameters

General parameters

Style–specific parameters

Style–specific parameters
Parameter Description
opp1 or
opp_ABC
The forward slash (/) delimited list of round-by-round opponents of the team. For example, |opp1=DEF/GHI/JKL/MNO/PQR/STU/VWX for seven games.
legend_style Legend colors and text to display based on usage. The default is WL. See the legend section below for more information on legend syntax.
rdrobin Number of times each team plays all other teams. The default is 1 (i.e. single round-robin).
ticon The name of the template to trigger to show teams' identity (e.g. three-letter codes, team colors, team icons)

Legend

Key

The keys below correspond to res1 or res_ABC usage: the forward slash (/) delimited list of matchup results of the team.

For example, |res1=W/OTL/FW/W/L for five games with the round-by-round results of win, OT loss, win by forfeit, win, loss.

Key Legend color
W   Win
D   Draw
L   Loss
OTW   OT win
OTL   OT loss
FW   Win by forfeit
FL   Loss by forfeit

Style

Legend colors and text will be displayed based on usage.

Legend style WL WLF BSK BSKF FBR FBRF
Colors
  •   Win
  •   Loss
  •   Win
  •   Win by forfeit
  •   Loss
  •   Loss by forfeit
  •   Win
  •   OT win
  •   Loss
  •   OT loss
  •   Win
  •   OT win
  •   Win by forfeit
  •   Loss
  •   OT loss
  •   Loss by forfeit
  •   Win
  •   Draw
  •   Loss
  •   Win
  •   Win by forfeit
  •   Draw
  •   Loss
  •   Loss by forfeit

Examples

Example 1: Cells contain literal texts

What you type <syntaxhighlight lang=moin>
Team ╲ Game1234
Ateneo school colors AteneoUSTNUIDLSFEU
La Salle school colors DLSZNUIADMFEUUST
FEU school colors FEUUSTNUIDLSADM
NU school colors NUDLSADMFEUUST
UST school colors USTADMFEUNUIDLS
</syntaxhighlight>
What it looks like
Team ╲ Game1234
Ateneo school colors AteneoUSTNUIDLSFEU
La Salle school colors DLSZNUIADMFEUUST
FEU school colors FEUUSTNUIDLSADM
NU school colors NUDLSADMFEUUST
UST school colors USTADMFEUNUIDLS

Example 2: Cells contain icons

What you type <syntaxhighlight lang=moin></syntaxhighlight>
What it looks like

Example 3: Double round-robin schedule

What you type <syntaxhighlight lang=moin>
 Round 1Round 2
Team ╲ Game1234567891011121314
Adamson school colors AdamsonADMNUIUEAUPDUSTDLSFEUUEAADMNUIUPDFEUUSTDLS
Ateneo school colors AteneoADUDLSUSTFEUNUIUEAUPDUSTADUDLSFEUUEANUIUPD
La Salle school colors La SalleADMNUIUEAFEUADUUPDUSTNUIADMUEAFEUUSTUPDADU
FEU school colors FEUUPDUEAADMDLSUSTNUIADUUPDNUIUSTADMDLSADUUEA
NU school colors NUADUDLSUSTUPDADMFEUUEADLSFEUADUUSTUPDADMUEA
UE school colors UEUSTFEUADUDLSUPDADMNUIADUUSTUPDDLSADMFEUNUI
UP school colors UPFEUUSTADUNUIUEADLSADMFEUUEAUSTADUNUIDLSADM
UST school colors USTUEAUPDADMNUIADUFEUDLSADMUEAFEUUPDNUIDLSADU
Source: [<span title="Script error: No such module "delink".">citation needed]
  = Win;   = OT win;   = Loss;   = OT loss
</syntaxhighlight>
What it looks like
 Round 1Round 2
Team ╲ Game1234567891011121314
Adamson school colors AdamsonADMNUIUEAUPDUSTDLSFEUUEAADMNUIUPDFEUUSTDLS
Ateneo school colors AteneoADUDLSUSTFEUNUIUEAUPDUSTADUDLSFEUUEANUIUPD
La Salle school colors La SalleADMNUIUEAFEUADUUPDUSTNUIADMUEAFEUUSTUPDADU
FEU school colors FEUUPDUEAADMDLSUSTNUIADUUPDNUIUSTADMDLSADUUEA
NU school colors NUADUDLSUSTUPDADMFEUUEADLSFEUADUUSTUPDADMUEA
UE school colors UEUSTFEUADUDLSUPDADMNUIADUUSTUPDDLSADMFEUNUI
UP school colors UPFEUUSTADUNUIUEADLSADMFEUUEAUSTADUNUIDLSADM
UST school colors USTUEAUPDADMNUIADUFEUDLSADMUEAFEUUPDNUIDLSADU
Source: [<span title="Script error: No such module "delink".">citation needed]
  = Win;   = OT win;   = Loss;   = OT loss

See also

Tracking category