Module:Sports table/Rugby/doc: Difference between revisions
Appearance
Content deleted Content added
→Usage: Updated to reflect how Module:Sports table/WDL/doc is written, and added bonus_total note |
Updated language to distinguish match and competition points |
||
Line 4: | Line 4: | ||
This style for Lua-based [[Module:Sports table]] is meant to build group and league tables for rugby competitions with the following optional columns |
This style for Lua-based [[Module:Sports table]] is meant to build group and league tables for rugby competitions with the following optional columns |
||
# Played / Wins / Draws / Losses |
# Played / Wins / Draws / Losses |
||
# |
# Match points for / Match points against / Match points difference |
||
# Tries for / Tries against |
# Tries for / Tries against |
||
# Try bonus points |
# Try bonus competition points |
||
# Loss bonus points |
# Loss bonus competition points |
||
# |
# Total competition points |
||
The input syntax for this module is similar to the [[Module:Sports table/WDL|WDL module]], but specialized for Rugby competitions. |
The input syntax for this module is similar to the [[Module:Sports table/WDL|WDL module]], but specialized for Rugby competitions. |
||
Line 92: | Line 92: | ||
|} |
|} |
||
===Additional parameters=== |
===Additional parameters=== |
||
# To merge the "bonus points" columns into one, use {{para|bonus_total}} |
# To merge the "bonus competition points" columns into one, use {{para|bonus_total}} |
||
# To hide the "bonus points" columns, use {{para|show_bonus|no}} |
# To hide the "bonus competition points" columns, use {{para|show_bonus|no}} |
||
# To hide the "draws" column, use {{para|show_draw|no}} |
# To hide the "draws" column, use {{para|show_draw|no}} |
||
# To hide the "tries for" column, use {{para|show_tries_for|no}} |
# To hide the "tries for" column, use {{para|show_tries_for|no}} |
||
# To hide the "tries against" column, use {{para|show_tries_against|no}} |
# To hide the "tries against" column, use {{para|show_tries_against|no}} |
||
# To add "points carried forward" to the next round, use {{para|show_cf|yes}} |
# To add "competition points carried forward" to the next round, use {{para|show_cf|yes}} |
||
# To override the default number of "win points", use {{para|winpoints}} |
# To override the default number of "win points", use {{para|winpoints}} |
||
# To override the default number of "draw points", use {{para|drawpoints}} |
# To override the default number of "draw points", use {{para|drawpoints}} |
Revision as of 13:44, 12 June 2023
This style for Lua-based Module:Sports table is meant to build group and league tables for rugby competitions with the following optional columns
- Played / Wins / Draws / Losses
- Match points for / Match points against / Match points difference
- Tries for / Tries against
- Try bonus competition points
- Loss bonus competition points
- 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 |
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
- To merge the "bonus competition points" columns into one, use
|bonus_total=
- To hide the "bonus competition points" columns, use
|show_bonus=no
- To hide the "draws" column, use
|show_draw=no
- To hide the "tries for" column, use
|show_tries_for=no
- To hide the "tries against" column, use
|show_tries_against=no
- To add "competition points carried forward" to the next round, use
|show_cf=yes
- To override the default number of "win points", use
|winpoints=
- To override the default number of "draw points", use
|drawpoints=
- To override the default number of "loss points", use
|losspoints=