Talk:International rugby league in 2022

Squad listings
@Djbolkas @Nhoj1898 I've been experimenting with a Lua module to add squad listings rather than anyone having to compile the table from scratch. You can see a test output at User:Nthep/sandbox10 and the Lua code is at Module:Rugby league match squad/sandbox. As I have the sandbox it will cope with squad sizes up to 20 but that's easily increased if necessary.

It will cope with both northern and southern hemisphere (or both) position names by use of the location which supports the values n, s, ns (both but northern first) e.g. World Club Challenge matches played in England and sn (both but southern first) e.g. World Club Challenge matches played in Australia. It will also handle squad numbering as used in Super League by adding the squad number for the player (as in the example output), otherwise it defaults to positional numbering as used in the NRL.

Is it worth taking further? Nthep (talk) 14:03, 3 August 2022 (UTC)

Hello @Nthep
 * Thank you for asking.
 * Layout looks good on PC/laptop and phone held as landscape. Players' names take two rows when phone is held as portrait.
 * You may wish to consider how best to label concussion subs / reserves. Under currrent rules its possible one side is permitted to use them whilst the other side's sub is not activated. You msy have noticed I've been appending "(not used)" to the name.
 * NRL matches do see players with jersey numbers above 13 start the match. I presume that what you've coded caters for such circumstanes.
 * I also presume that the table can be used within the hide feature, which works well on this page when viewed on laptop/PC

Regards, John Nhoj1898 (talk) 03:24, 4 August 2022 (UTC)


 * @Nhoj1898 Thanks for the comments. I've made some changes:
 * The rationale for a right-aligned narrower table is to make the table more readable i.e. less space between the two teams and also it allows for commentary to be entered, see 1936-37 Challenge Cup for an example.
 * Concussion subs. IMO, if they don't take to the field they shouldn't be listed as in their official stats it wouldn't count as an appearance. However that's only my opinion, so I've altered things to cope with imbalances in the number of players in the two squads. e.g. if one team has 18 and the other 17, squadsize should be set to 18 - see revised example at User:Nthep/sandbox10. You sometimes see teams being so ravaged by injury that they can only name a 15 player squad so the template will cope with only two interchange players being named i.e. positions 16 onwards will show blank if no name is given.
 * I haven't worked out yet how to cope with trialists in teams with squad numbering i.e. no shirt number allocated. Enter players without numbers as 00 (double zero), the code will replace these with blanks.
 * I've set the maximum squadsize to 26. I saw the Montenegro v Malta game from earlier this year - 23 v 22 is not something I expected in an international match!
 * If NRL teams are using squad numbers then just put the shirt numbers alongside the player. As a matter of good practice I'd put all the shirt numbers in if squad numbering is being used, but there's nothing stops you just putting in the numbers that don't agree with the positions e.g. if the home hooker is wearing #22 but everyone else matches their position it's only 22 that needs to be set.
 * I'll have a look at the collapsed status to see if it can be set from the template to give the editor the choice of collapsed or expanded. I've added a collapsed status. Setting y collapses the table, leaving it blank or set to n removes the collapsed option. I can see uses when having the template permanently expanded is desired e.g. to add commentary. Nthep (talk) 16:09, 4 August 2022 (UTC)