Module talk:Sports table/Archive 1: Difference between revisions

Content deleted Content added
m Archiving 1 discussion(s) from Module talk:Sports table) (bot
m Archiving 1 discussion(s) from Module talk:Sports table) (bot
Line 2,074:
 
I just added support for multiple hth notes, so you can now say |hth_AAA=BBB,CCC if |hth_BBB and |hth_CCC are valid. should have zero impact on any prior existing uses of this module. please revert my changes to "Module:Sports table/sub" and let me know if there is a problem (so far nothing in the Pages with script errors category). for a real life usage, see [[Template:2013 Chinese Super League table]] where there is both a head-to-head note and a point-note for Tianjin Teda. [[User:Frietjes|Frietjes]] ([[User talk:Frietjes|talk]]) 23:10, 31 May 2018 (UTC)
 
== On extending this module ==
 
I think we should add more parts to these modules (like division record, conference record, home and road record, etc.) to help extend this to the baseball, basketball, and American football templates and centralize the many standings used by WikiProject Sports. I may speak with the respective wikiprojects about this idea. –[[User:Piranha249|Piranha249]] ([[User talk:Piranha249|talk]]) 18:04, 7 January 2018 (UTC)
:I agree. Even sports like Darts could benefit from that so that tables like [[2018_Premier_League_Darts#Table|this one]] can be generated through this module.[[User:Tvx1|T]][[User Talk:Tvx1|v]][[Special:Contributions/Tvx1|x]]1 22:27, 22 February 2018 (UTC)
:: [[User:Piranha249|Piranha249]] and {{U|Tvx1}} can you provide a simple example showing the desired output? this module can use sport-specific submodules, so we could probably design one for a particular sport. [[User:Frietjes|Frietjes]] ([[User talk:Frietjes|talk]]) 18:01, 13 March 2018 (UTC)
::: {{U|Frietjes}}, I posted here [[Module_talk:Sports_table/Archive_1#Absolute_percentage_parameter|about a year ago]] with a request that could make the template extensible for a few more sports. Figured I'd bring that up again while the topic was active since it seems like no-one saw the original post. You can find the desired output for that suggestion at [[2017 SANFL season#Ladder]]. [[User:Sellyme|<font color="#008080">'''Sellyme'''</font>]]<sup>[[User talk:Sellyme|<font color="#009933">'''Talk'''</font>]]</sup> 19:22, 13 March 2018 (UTC)
:::: {{U|Sellyme}}, see [[User:Frietjes/sanfl]]. [[User:Frietjes|Frietjes]] ([[User talk:Frietjes|talk]]) 21:40, 14 March 2018 (UTC)
::::: This seems to work perfectly, I've just updated the 2017 season template with it and nothing is on fire. Thanks for the update! [[User:Sellyme|<font color="#008080">'''Sellyme'''</font>]]<sup>[[User talk:Sellyme|<font color="#009933">'''Talk'''</font>]]</sup> 23:18, 14 March 2018 (UTC)
::: {{U|Frietjes}}, I linked to an example in my previous comment.[[User:Tvx1|T]][[User Talk:Tvx1|v]][[Special:Contributions/Tvx1|x]]1 19:51, 13 March 2018 (UTC)
:::: {{U|Tvx1}}, yes, but what is the mathematical relationship between the columns? obviously Pld = W + D + L, and it looks like +/- = LF - LA? what about the rest? [[User:Frietjes|Frietjes]] ([[User talk:Frietjes|talk]]) 20:48, 13 March 2018 (UTC)
::::: Yes Pld = W + D + L and LF,LA and +/- work like GF,GA and GD (+/- could be renamed to LD). There is no mathematical relationship between the remaining columns.[[User:Tvx1|T]][[User Talk:Tvx1|v]][[Special:Contributions/Tvx1|x]]1 22:29, 13 March 2018 (UTC)
:::::: {{U|Tvx1}}, I started something ... see [[User:Frietjes/darts]]. let me know if you have abbreviations tooltips for the columns. and, we can adjust the parameter names if they aren't optimal. [[User:Frietjes|Frietjes]] ([[User talk:Frietjes|talk]]) 23:22, 13 March 2018 (UTC)
::::::: I think it's perfect.[[User:Tvx1|T]][[User Talk:Tvx1|v]][[Special:Contributions/Tvx1|x]]1 02:58, 14 March 2018 (UTC)
::: Regarding me, I think we could add optional columns like the ones previously mentioned by me. For the NFL, we could also introduce a win percentage to the WDL submodule, just try to [[Template:2017 NFC standings|convert this]] while your at it (It's the NFC Conference standings). Lastly, are these optional columns a possibility? –[[User:Piranha249|Piranha]][[User talk:Piranha249|249]] 23:44, 13 March 2018 (UTC)
:::: I was addressing that to {{U|Frietjes}}, by the way. –[[User:Piranha249|Piranha]][[User talk:Piranha249|249]] 22:47, 17 March 2018 (UTC)
::: Has anyone come up with some proposals since the last discussion, which was almost two months ago? –[[User:Piranha249|Piranha]][[User talk:Piranha249|249]] 20:02, 27 May 2018 (UTC)
{{u|Piranha249}} I'm just seeing this dicussion now, in the NFL table some columns are not clear to me (SOS and SOV). The way it would look would be a bit different after conversion in terms of some of the style choices in that table, to what degree are the design elements set in stone in those articles? One example of some differences is [[Template:2017–18 NHL Western Conference standings]] vs [[Template:2013–14 NHL Western Conference standings]], but it could be a bigger difference in this case. <span style="border:1px solid maroon; padding:0 2px">[[User:CRwikiCA|<span style="font-family:'Courier';color:maroon">CRwikiCA</span>]]&nbsp;[[User talk:CRwikiCA|<i style="color:navy">talk</i>]]</span> 02:21, 29 May 2018 (UTC)
:{{u|CRwikiCA}} SOS = Strength of schedule; SOV = Strength of victory. Both are tiebreakers for the Playoffs. –[[User:Piranha249|Piranha]][[User talk:Piranha249|249]] 00:36, 31 May 2018 (UTC)
::{{u|Piranha249}} Just trying to get the framing up in my limited spare time (without the extra columns for now) and limited entries. It should be possible to add "wildcard" columns to add some of the other columns (streak could be optional). Just take a look below and see what you like/don't like (points for/against probably needs to be dropped, etc.) and how something like this would go over in the articles:
{{#invoke:Sports table|main|style=WDL
|update = complete
|template_name=
|showteam={{{team}}}
|matches_text=game(s)
|table_header=[[National Football Conference|NFC]]
 
|postitle=#
|loss_before_draw=true
|draw_header=<abbr title="Ties">T</abbr>
|show_groups=yes
|group_header=Division
|split4=yes
|split6=yes
 
|team1=PHI |team2=MIN |team3=LAR |team4=NO |team5=CAR |team6=ATL |team7=DET |team8=SEA
|result1=DIV |result2=DIV |result3=WC |result4=WC |result5=WC |result6=WC
 
|win_PHI=13 |loss_PHI=3
 
|group_LAR=West
|group_MIN=North
|group_NO=South
|group_PHI=East
 
|col_DIV=green1
|col_WC=green2
 
|status_PHI=z
|status_MIN=z
|status_LAR=y
|status_NO=y
|status_CAR=x
|status_ATL=x
|status_pos=before
|status_text_X=Clinched playoff berth
|status_text_Y=Clinched division
|status_text_Z=Clinched first-round bye
 
|note_PHI=Philadelphia claimed the No. 1 seed over Minnesota based on winning percentage vs. common opponents. Philadelphia's cumulative record against Carolina, Chicago, the Los Angeles Rams and Washington was 5–0, compared to Minnesota's 4–1 cumulative record against the same four teams.
|note_MIN=PHI
|note_LAR=The Los Angeles Rams claimed the No. 3 seed over New Orleans based on head-to-head victory. New Orleans clinched the NFC South division over Carolina based on head-to-head sweep.
|note_NO=LAR
|note_CAR=LAR
}}
<span style="border:1px solid maroon; padding:0 2px">[[User:CRwikiCA|<span style="font-family:'Courier';color:maroon">CRwikiCA</span>]]&nbsp;[[User talk:CRwikiCA|<i style="color:navy">talk</i>]]</span> 02:01, 5 June 2018 (UTC)
:::For one, there are no points system, even though ties exist (they are half a win and half a loss). Other than that, I think it looks fine. –[[User:Piranha249|Piranha]][[User talk:Piranha249|249]] 02:26, 5 June 2018 (UTC)