Module:Sports table/Rugby/doc

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
{{#invoke:sports table|main|style=Rugby

<!-- Add team codes and names here -->
| team1 = AAA | name_AAA = Team AAA
| team2 = BBB | name_BBB = Team BBB
| team3 = CCC | name_CCC = Team CCC
| team4 = DDD | name_DDD = Team DDD
| team5 = EEE | name_EEE = Team EEE
| team6 = FFF | name_FFF = Team FFF
| team7 = GGG | name_GGG = Team GGG
| team8 = HHH | name_HHH = Team HHH

<!-- Update results here and then (if needed) positions below. Don't forget to update the date below (update parameter) -->
| win_AAA=0 | draw_AAA=0 | loss_AAA=0 | pf_AAA=0 | pa_AAA=0 | tf_AAA=0 | ta_AAA=0 | tb_AAA=0 | lb_AAA=0 | status_AAA=CQ
| win_BBB=0 | draw_BBB=0 | loss_BBB=0 | pf_BBB=0 | pa_BBB=0 | tf_BBB=0 | ta_BBB=0 | tb_BBB=0 | lb_BBB=0 | status_BBB=Q
| win_CCC=0 | draw_CCC=0 | loss_CCC=0 | pf_CCC=0 | pa_CCC=0 | tf_CCC=0 | ta_CCC=0 | tb_CCC=0 | lb_CCC=0 | status_CCC=A
| win_DDD=0 | draw_DDD=0 | loss_DDD=0 | pf_DDD=0 | pa_DDD=0 | tf_DDD=0 | ta_DDD=0 | tb_DDD=0 | lb_DDD=0 | status_DDD=T
| win_EEE=0 | draw_EEE=0 | loss_EEE=0 | pf_EEE=0 | pa_EEE=0 | tf_EEE=0 | ta_EEE=0 | tb_EEE=0 | lb_EEE=0 | status_EEE=
| win_FFF=0 | draw_FFF=0 | loss_FFF=0 | pf_FFF=0 | pa_FFF=0 | tf_FFF=0 | ta_FFF=0 | tb_FFF=0 | lb_FFF=0 | status_FFF=
| win_GGG=0 | draw_GGG=0 | loss_GGG=0 | pf_GGG=0 | pa_GGG=0 | tf_GGG=0 | ta_GGG=0 | tb_GGG=0 | lb_GGG=0 | status_GGG=R
| win_HHH=0 | draw_HHH=0 | loss_HHH=0 | pf_HHH=0 | pa_HHH=0 | tf_HHH=0 | ta_HHH=0 | tb_HHH=0 | lb_HHH=0 | status_HHH=R

<!-- Update team positions here -->
| team_order = AAA, BBB, CCC, DDD, EEE, FFF, GGG, HHH

<!--Update team qualifications here (defined below)-->
| result1=C | result2=C | result3=C | result4=C | result7=R | result8=R

<!-- Add promotion, qualification and/or relegation row colours and column definitions. Use green for top tournament, then blue followed by yellow; red is elimination. Different levels of same competitions should have different shades in color like green1, green2 and so on. -->
| res_col_header = QR <!-- All of these may not be needed, Promotion (P), Qualification (Q) and Relegation (R) -->
| col_C = green2 | text_C = Continental Championship
| col_R = red2   | text_R = Division 2

| start_date  = Unknown <!-- Add start date. When tournament starts, remove start_date -->
| update      = future <!-- When tournament starts, update the with date of latest update --> 
| source      = Unknown <!-- Add source for table here with single bracket, e.g. [URL info] -->
| class_rules = 1) competition points; 2) match points difference; 3) match points for <!-- Add classification rules here -->
}}
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=


Content Disclaimer

Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.

  1. The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
  2. There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
  3. It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
  4. Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
  5. Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.