Jump to content

Talk:Nika Mühl

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

Template:WNBA player statistics start

[edit]

What is the correct markup before and after Template:WNBA player statistics start? Unfortunately, that template does not explain how to use it. Let's go to Special:WhatLinksHere/Template:WNBA player statistics start and look at the first few articles that use this template and what they do.

Article Table markup before template Table markup after template
Michele Timms (none) {{s-end}}
Lisa Leslie (none) {{s-end}}
Ticha Penicheiro (none) {{S-end}}
Rebecca Lobo (none) {{s-end}}
Lindsay Whalen (none) {{S-end}}

The correct usage of Template:WNBA player statistics start is apparent, and this article should abide by the apparent usage. —Anomalocaris (talk) 02:51, 16 January 2023 (UTC)[reply]

Yes, you found yet more pages where the table template is being used incorrectly. I don't know if you have noticed but for the most part Wikipedia is a compilation of copy/paste horrors. I am trying to write a bot to update all of these stats automatically and to update all the pages which are using these stat templates incorrectly. Would appreciate if you stop changing my test page. The parsers fail if you change the format and Wikipedia developers encourage the use of these parsers to prevent parsing errors with custom regexes. UnderdogAdvocate (talk) 03:20, 16 January 2023 (UTC)[reply]
UnderdogAdvocate: Thank you for your work. Among the horrors of Wikipedia are templates lacking usage instructions. {{WNBA player statistics start}} needs usage instructions. Any such instructions must call for markup that does not generate lint errors. What test page do you want me not to edit? My last 500 edits date back to December 20, and do not include User:UnderdogAdvocate/Sandbox or anything else of this sort. —Anomalocaris (talk) 03:59, 16 January 2023‎ (UTC)[reply]

I haven't examined the two templates to see if they are truly comparable, but I also looked at Template:NBA player statistics start, and it has some usage instructions, but no guidance on what goes before and after. So, let's go to Special:WhatLinksHere/Template:NBA player statistics start and look at the first few articles that use this template and what they do.

Article Table markup before template Table markup after template
Kareem Abdul-Jabbar (none) {{S-end}}
Michael Jordan (none) |}
Magic Johnson (none) {{s-end}}
Larry Bird (none) {{S-end}}
José Ortiz (basketball) (none) {{S-end}}

UnderdogAdvocate: Are you going to suggest that these five articles are also wrong? —Anomalocaris (talk) 04:23, 16 January 2023 (UTC)[reply]

Yes. If you look at the lint error it is a false positive. There's only one table open '{|' and one table close '|}'. It is falsely hitting on the '{{' template tags. You have actually identified some of these false positives in Wikipedia:Linter/Pages with lint errors that should not be fixed. This shouldn't be any different. UnderdogAdvocate (talk) 04:39, 16 January 2023 (UTC)[reply]
BusterD: This discussion is here because of a dispute about markup in Nika Mühl. —Anomalocaris (talk) 05:22, 16 January 2023 (UTC)[reply]

UnderdogAdvocate: Examining the markup of Template:WNBA player statistics start, we find that it begins with a table opening, and its table closing has no effect on transclusions because it is in the noinclude section. Specifically, the template begins with {| and ends with

<noinclude>
|}
[[CateXXXXgory:Women's National Basketball Association statistics templates|Player Statistics Start]]
</noinclude>

Template:WNBA player statistics start is set up to open a table, which would usually mean that it doesn't need to be preceded by {|, and it would need to be followed by some markup to close the table, such as {{S-end}} or |}. I believe the linter is correct. I believe Michele Timms and the other articles using Template:WNBA player statistics start are correct. I believe Kareem Abdul-Jabbar is correct and the other articles using Template:NBA player statistics start are correct. Please explain why you believe this table-starting template needs to be preceded by another table start and why the detection of a Table tag that should be deleted lint error should be doubted when your preferred markup shows two table-opening markups where only one is needed. Also, as I asked you before, please let me know which of your test pages you don't want me to edit. —Anomalocaris (talk) 05:22, 16 January 2023 (UTC)[reply]

Honestly, don't really care anymore. I was trying to bring some uniformity to these pages and create something that will automatically take care of updating stats across athletes. This is probably why no one has attempted this, most parsers fail to pull the tables because they are formatted incorrectly. I'm not going from being able to get a beautiful array to parsing things with a million regexes. There are so many ways to open and close table templates that it's near to impossible to standardize anything. My bot was close to fixing this, but it's not worth my time justifying why this lint error should be suppressed. Don't worry I won't be updating Wikipedia anymore, feel free to continue your linting.
P.S.
Lint tools are notorious for causing chaos and making things unreadable. UnderdogAdvocate (talk) 06:06, 16 January 2023 (UTC)[reply]