Module:Sports table/Rugby/doc

This is the current revision of this page, as edited by imported>Frietjes at 00:54, 10 October 2023 (→‎Additional parameters). The present address (URL) is a permanent link to this version.

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This style for Lua-based Module:Sports table is meant to build group and league tables for rugby competitions with the following optional columns

  1. Played / Wins / Draws / Losses
  2. Match points for / Match points against / Match points difference
  3. Tries for / Tries against
  4. Try bonus competition points
  5. Loss bonus competition points
  6. Total competition points

The input syntax for this module is similar to the WDL module, but specialized for Rugby competitions.

Usage

Basic usage

In its simplest form only several parameters need to be used to build a table

What you type <syntaxhighlight lang="wikitext">
Pos Team Pld W D L PF PA PD TF TA TB LB Pts Qualification or relegation
1 Team AAA (C, Q) 0 0 0 0 0 0 0 0 0 0 0 0 Continental Championship
2 Team BBB (Q) 0 0 0 0 0 0 0 0 0 0 0 0
3 Team CCC (A) 0 0 0 0 0 0 0 0 0 0 0 0
4 Team DDD (T) 0 0 0 0 0 0 0 0 0 0 0 0
5 Team EEE 0 0 0 0 0 0 0 0 0 0 0 0
6 Team FFF 0 0 0 0 0 0 0 0 0 0 0 0
7 Team GGG (R) 0 0 0 0 0 0 0 0 0 0 0 0 Division 2
8 Team HHH (R) 0 0 0 0 0 0 0 0 0 0 0 0
First match(es) will be played: Unknown. Source: Unknown
Rules for classification: 1) competition points; 2) match points difference; 3) match points for
(A) Advances to a further round; (C) Champion; (Q) Qualified for the phase indicated; (R) Relegated; (T) Qualified, but not yet for the particular phase indicated
</syntaxhighlight>
What it looks like
Pos Team Pld W D L PF PA PD TF TA TB LB Pts Qualification or relegation
1 Team AAA (C, Q) 0 0 0 0 0 0 0 0 0 0 0 0 Continental Championship
2 Team BBB (Q) 0 0 0 0 0 0 0 0 0 0 0 0
3 Team CCC (A) 0 0 0 0 0 0 0 0 0 0 0 0
4 Team DDD (T) 0 0 0 0 0 0 0 0 0 0 0 0
5 Team EEE 0 0 0 0 0 0 0 0 0 0 0 0
6 Team FFF 0 0 0 0 0 0 0 0 0 0 0 0
7 Team GGG (R) 0 0 0 0 0 0 0 0 0 0 0 0 Division 2
8 Team HHH (R) 0 0 0 0 0 0 0 0 0 0 0 0
First match(es) will be played: Unknown. Source: example.com
Rules for classification: 1) competition points; 2) match points difference; 3) match points for
(A) Advances to a further round; (C) Champion; (Q) Qualified for the phase indicated; (R) Relegated; (T) Qualified, but not yet for the particular phase indicated

Additional parameters

  1. To merge the "bonus competition points" columns into one, use |bonus_total= with any additional bonus points specified using |b_XYZ=
  2. To hide the "bonus competition points" columns, use |show_bonus=no
  3. To hide the "draws" column, use |show_draw=no
  4. To hide the "tries for" column, use |show_tries_for=no
  5. To hide the "tries against" column, use |show_tries_against=no
  6. To show the "tries difference" column, use |show_tries_difference=yes
  7. To hide the "points for" column, use |show_points_for=no
  8. To hide the "points against" column, use |show_points_against=no
  9. To hide the "points difference" column, use |show_points_difference=no
  10. To add "competition points carried forward" to the next round, use |show_cf=yes
  11. To add "grand slam points" column, use |show_grand_slam=yes, with grand slam points specified using |gs_XYZ=
  12. To override the default number of "win points", use |winpoints=
  13. To override the default number of "draw points", use |drawpoints=
  14. To override the default number of "loss points", use |losspoints=