Module:Sports rbr table/matchup/doc

MyWikiBiz, Author Your Legacy — Friday April 19, 2024
< Module:Sports rbr table‎ | matchup
Revision as of 06:09, 16 July 2021 by Zoran (talk | contribs) (Pywikibot 6.4.0)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump 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>Lua error: expandTemplate: template "citation needed" does not exist.</syntaxhighlight>
What it looks like Lua error: expandTemplate: template "citation needed" does not exist.

Parameters

General parameters

Template:Main

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, Template:Para 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, Template:Para for five games with the round-by-round results of win, OT loss, win by forfeit, win, loss.

Key Legend color
W Template:Legend2
D Template:Legend2
L Template:Legend2
OTW Template:Legend2
OTL Template:Legend2
FW Template:Legend2
FL Template:Legend2

Style

Legend colors and text will be displayed based on usage.

Legend style WL WLF BSK BSKF FBR FBRF
Colors Template:Unbulleted list Template:Unbulleted list Template:Unbulleted list Template:Unbulleted list Template:Unbulleted list Template:Unbulleted list

Examples

Example 1: Cells contain literal texts

What you type <syntaxhighlight lang=moin>Lua error: expandTemplate: template "citation needed" does not exist.</syntaxhighlight>
What it looks like Lua error: expandTemplate: template "citation needed" does not exist.

Example 2: Cells contain icons

What you type <syntaxhighlight lang=moin>Lua error: expandTemplate: template "citation needed" does not exist.</syntaxhighlight>
What it looks like Lua error: expandTemplate: template "citation needed" does not exist.

Example 3: Double round-robin schedule

What you type <syntaxhighlight lang=moin>Lua error: expandTemplate: template "citation needed" does not exist.</syntaxhighlight>
What it looks like Lua error: expandTemplate: template "citation needed" does not exist.

See also

Tracking category