Template talk:Esports player
Only show legend when the field is used
[edit]Is it possible to show the legend entry only if the particular field is used? So, if no player is marked ill/injured, the relevant legend entry does not show up? But when one of the players is marked as injured, it shows up, same as now? Melmann 19:01, 6 May 2021 (UTC)
- @Melmann: That would be a very nice feature... unfortunately, not at the moment. It is impossible to send parameter info from {{Esports player}} directly to this one. However, there does exist the module {{#invoke:if in page|function}} and associated template {{if in page}}, if, for example
note=C
exists at all in the page, all of the roster templates would have an associated legend for it. Maybe we could alter the module and create the template {{if in section}}. Pbrks (talk) 20:41, 6 May 2021 (UTC)- @Pbrks: Ah, thanks for the explanation. Implementing that is beyond my skill, but it does sound like a solution.
If I may ask, why was the template split into three complementary templates? Is there an advantage vs having it as a single template? Melmann 21:03, 6 May 2021 (UTC)- @Melmann: I based this template off of {{NBA roster header}} and the like, which had it broken into three. The other option would be to have
{{Esports roster}}
with a parameter for "players". Then, have a bunch of {{Esports player}} inside the parameter "players" (kind of like the way it is now), which still leaves us with two separate templates. The only way to have one single template would to be to have a bunch of parameters:playername1
,playerhandle1
,playerrole1
, ...,playername2
,playerhandle2
,playerrole2
, ..., which IMO is much more confusing. Pbrks (talk) 21:11, 6 May 2021 (UTC)- @Pbrks:Ok, makes sense, the player1, player2 approach would indeed be more confusing. Probably best we follow the wider sports templating pattern. One last question. Is it possible to collapse/hide the legend/coach section? For example, in OG (esports) historical winning roster is shown, but I don't think showing the legend brings much value since historical roster will not acquire injury or a suspension. Thank you. Melmann 21:41, 6 May 2021 (UTC)
- @Melmann: That would take a lot of effort, and, to be frank, I don't think it should be used in that instance. This template style should be used to show current rosters, for consistency's sake. A simple table for your purpose would suffice (although, I believe a table is not even necessary, having it all written in prose seems more appropriate). Pbrks (talk) 02:06, 7 May 2021 (UTC)
- @Pbrks: Ok, thanks for the feedback. Melmann 16:16, 7 May 2021 (UTC)
- @Pbrks:Ok, makes sense, the player1, player2 approach would indeed be more confusing. Probably best we follow the wider sports templating pattern. One last question. Is it possible to collapse/hide the legend/coach section? For example, in OG (esports) historical winning roster is shown, but I don't think showing the legend brings much value since historical roster will not acquire injury or a suspension. Thank you. Melmann 21:41, 6 May 2021 (UTC)
- @Melmann: I based this template off of {{NBA roster header}} and the like, which had it broken into three. The other option would be to have
- @Pbrks: Ah, thanks for the explanation. Implementing that is beyond my skill, but it does sound like a solution.
Captain role?
[edit]Is it possible to add a Captain role (and the associated legend entry)? Melmann 19:02, 6 May 2021 (UTC)
- @Melmann: Yes, use the parameter
note=C
in this one, and in {{Esports roster footer}}, add the parameter| otherlegend='''(C)''' Team captain
. Pbrks (talk) 20:44, 6 May 2021 (UTC)
Nation option
[edit]Can I request Nation/ Nationality flagicon for (| nat= ) instead of text only option, just like football/ soccer squad template?
For example: ESP insead of Spain text only
--AFRX (talk) 22:04, 5 August 2022 (UTC)
- @AFRX: Per MOS:SPORTFLAG,
Flags should never indicate the player's nationality in a non-sporting sense; flags should only indicate the sportsperson's national squad/team or representative nationality.
Since this template is not used for national teams, they should not contain flag icons. – Pbrks (t • c) 23:07, 5 August 2022 (UTC)- This is my references Template:Football squad start. Atleast for Dota 2 e-sports, most of the sportsperson represent their nation at the highest level and competed at the international level. Therefore, it may be more appropriate to use the national flag within the table atleast? AFRX (talk) 23:59, 5 August 2022 (UTC)
- It is not appropriate to have flags in this template. The flags in {{Football squad start}} represent a players national team. Most countries do not have national esports teams in any game. – Pbrks (t • c) 22:01, 9 August 2022 (UTC)
- This is my references Template:Football squad start. Atleast for Dota 2 e-sports, most of the sportsperson represent their nation at the highest level and competed at the international level. Therefore, it may be more appropriate to use the national flag within the table atleast? AFRX (talk) 23:59, 5 August 2022 (UTC)
Verifiability issues
[edit]Roster URL is very small in appearance. How about a "ref" column on the rightmost side of the table, like many other regular list tables - example here. Merko (talk) 17:21, 19 May 2023 (UTC)
- You are right. The text size of the table is at 95%, and the font size of that specific part is 85%. This gives a total font size of about 80%, which is below the threshold allowed per MOS:FONTSIZE. A column for references is unnecessary, as there is only one reference needed -- a link to the entire roster. I have adjusted the font size to be in compliance. – Pbrks (t • c) 23:11, 19 May 2023 (UTC)
- Cheers. Merko (talk) 23:17, 19 May 2023 (UTC)