Jump to content

Template talk:UAAPteam

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
(Redirected from Template talk:UAAPteam/doc)

Script errors

[edit]

@McVahl: I think some recent edits have introduced script errors at the following:

Typical messages are:

  • Lua error in Module:PHL_sports_team at line 44: Invalid team...
  • Lua error in Module:PHL_sports_team at line 50: No team
  • Lua error in Module:PHL_sports_team at line 44: Invalid team: {{{tm9}}}

The last message occurs in the HTML source of one of the articles where no visible error is shown. I'm hoping someone will work out what needs to be done to fix these. Johnuniq (talk) 02:43, 22 February 2020 (UTC)[reply]

@Johnuniq: Thanks for addressing the issue. Errors on 2012 Filoil Flying V Preseason Hanes Cup have been fixed. But for other articles, I don’t see any. Or did I miss anything? – McVahl (talk) 12:57, 22 February 2020 (UTC)[reply]
@McVahl: Thanks, the NCAA articles are fixed now. There is still an error in 2015 UST Growling Tigers men's basketball team which is hidden by some template trickery. However, it puts the article in a hidden error tracking category and has to be fixed. I don't know exactly what the problem is but am following this note with what details I do know. Johnuniq (talk) 00:28, 23 February 2020 (UTC)[reply]

The problem is in the following wikitext at UAAP Season 78 basketball tournaments#Team standings:

====Team standings====
<section begin="Men's standings" />{{UAAPteam standings |yr=2015
|source=[https://sports.abs-cbn.com/uaap ABS-CBN Sports]
|tm1 = UST      |tm1-w = 11 |tm1-l = 3  |bg1 = 2X |hth1=Head-to-head record: UST 2–0 FEU
|tm2 = FEU      |tm2-w = 11 |tm2-l = 3  |bg2 = 2X |hth2=TEAM1
|tm3 = Ateneo   |tm3-w = 9  |tm3-l = 5  |bg3 = SF
|tm4 = NU       |tm4-w = 7  |tm4-l = 7  |bg4 = SF
|tm5 = La Salle |tm5-w = 6  |tm5-l = 8  |hth5=Head-to-head record: La Salle 2–0 UE
|tm6 = UE       |tm6-w = 6  |tm6-l = 8  |hth6=TEAM5
|tm7 = UP       |tm7-w = 3  |tm7-l = 11 |hth7=Head-to-head record: UP 1–1 Adamson; head-to-head point differential: UP 0,–91; Adamson 0,–128 |status7=host
|tm8 = Adamson  |tm8-w = 3  |tm8-l = 11 |hth8=TEAM7
}}<section end="Men's standings" />

That wikitext is transcluded into 2015 UST Growling Tigers men's basketball team#Standings which is why that page is in Category:Pages with script errors. That is a hidden category which can be seen with a preference to show normally hidden categories, or can be seen at Page information.

Examining the HTML source for the article shows that the errors involve:

Lua error in Module:PHL_sports_team at line 44: Invalid team: {{{tm9}}}.
Lua error in Module:PHL_sports_team at line 44: Invalid team: {{{tm10}}}.

Is the module or something else trying to process tm9 and tm10? Johnuniq (talk) 00:28, 23 February 2020 (UTC)[reply]

@Johnuniq: The module validates the argument, and it reads template parameters (e.g. {{{tm9}}}) as literal argument value. This should be fixed now. Kindly verify. Thanks. – McVahl (talk) 02:08, 24 February 2020 (UTC)[reply]
@McVahl: Thanks, it's all good now. Johnuniq (talk) 04:00, 24 February 2020 (UTC)[reply]