Template talk:Football squad player
Template:Football squad player is permanently protected from editing because it is a heavily used or highly visible template. Substantial changes should first be proposed and discussed here on this page. If the proposal is uncontroversial or has been discussed and is supported by consensus, editors may use {{edit template-protected}} to notify an administrator or template editor to make the requested edit. Usually, any contributor may edit the template's documentation to add usage notes or categories.
Any contributor may edit the template's sandbox. Functionality of the template can be checked using test cases. |
This template does not require a rating on Wikipedia's content assessment scale. It is of interest to the following WikiProjects: | ||||||||
|
Index
|
||
This page has archives. Sections older than 90 days may be automatically archived by Lowercase sigmabot III when more than 5 sections are present. |
Add postion Field Player (FP)
editHey! Can the position FP be added to the template, as I was using this template for a futsal squad and players other than goalkeepers are usually referred as field players in futsal.--Anbans 585 (talk) 17:16, 30 July 2018 (UTC)
- Anbans 585, from looking at Futsal positions it seems like field player isn't listed there. Is there an article that I could link to describing the position of field player, as there is for the four positions currently in the template? It would look slightly weird if the link to Field player were a redirect.
- Actually, since the template would link to the football definition of goalkeeper, do you think it might also be advisable to create a separate {{Futsal squad player}}? Enterprisey (talk!) 04:35, 4 September 2018 (UTC)
- Enterprisey, no I don't think we require to create a separate template for it. Actually the template {{nat fs start no caps}} contains a parameter 'Field Player' which now redirects to Futsal positions. Though you are right that futsal has outfield positions like defender, forward etc, but in futsal terms they are usually known as ala, pivot, etc. Though when any futsal squad is announced for a competition, if the position of the player is unknown (the player is not a goalkeeper) then he is usually referred as a 'Field Player', that is why I wanted that if possible a 'FP' parameter can also be added to this template, as this template is usually used for displaying a club squad.--Anbans 585 (talk) 10:49, 4 September 2018 (UTC)
Can the above request be completed?--Anbans 585 (talk) 14:18, 5 August 2019 (UTC)
- See Association football positions. Is the correct term outfield player? By this terminology, even the GK is a "field player", i.e. football player. Unless futsal uses different terminology than football. – wbm1058 (talk) 18:11, 7 March 2021 (UTC)
- @Wbm1058: Yep, in futsal it's common to use GK and FP. This match report sees two teams using different positions: Japan uses GK and FP, Lebanon uses GK, DF, MF, FW. Nehme1499 19:24, 7 March 2021 (UTC)
Multiple issues
editWhy have we truncated the template? Also, I don't like the deviation on the background colour from plain page to a different background, having issues with that. Also, the alternative code is gone for the flag icons and that needs to be reinstated. Govvy (talk) 12:45, 17 August 2020 (UTC)
- @Govvy: Do you mean the alternative text? It is already present for the flag icons. S.A. Julio (talk) 14:22, 17 August 2020 (UTC)
- @S.A. Julio: I can't see any alt text when I hover over the flags (e.g. here). I'm not sure what Govvy means by 'truncated' though? If anything the new version is slightly larger as it now includes the trigrammes. Number 57 14:29, 17 August 2020 (UTC)
- I think the nationality isn't being read out because the idea is that it's not the nationality being displayed, rather the nation's football federation. Nehme1499 (talk) 14:45, 17 August 2020 (UTC)
- @Number 57: The alt attribute is present for the flag icons (you can view this in the source code). However, the flag icons themselves are not linked (the accompanying FIFA trigramme instead is). Normally you see the text "England" when hovering over because it links to England (done by the software), while no mouseover text displays over the flag icons for ENG or England. However, if desired I can add mouseover text using the title attribute (though I have not usually noticed this used in flag templates). S.A. Julio (talk) 15:15, 17 August 2020 (UTC)
- On my 15" screen it looks, I don't know, truncated to me, I find the hover over text really very helpful, especially when I am not sure of the flag colours, and the three letter's afterwards, I am not really sure about that, it should be a whole name or not at all in my opinion, the three letters might be confusing to certain readers. Govvy (talk) 16:01, 17 August 2020 (UTC)
- I am in agreement with that, the three letters doesn't tell you which country the player comes from does it? REDMAN 2019 (talk) 16:56, 17 August 2020 (UTC)
- If it's the full name, the template will be a mess when you have players from countries with long names. The idea behind using the trigrammes was that they are consistently three letters. Number 57 17:29, 17 August 2020 (UTC)
- I don't know about other people, but I am not a fan of the three letters, nor the over-linked squad positions. Govvy (talk) 18:13, 17 August 2020 (UTC)
- I don't think it's possible to automatically de-link multiple instances of positions. As for the trigram, it's the only aesthetically pleasing solution because, as N57 pointed out, some countries (such as Trinidad and Tobago) would mess up the table width. Nehme1499 (talk) 19:26, 17 August 2020 (UTC)
- I didn't think there was anything wrong before the changes. I would say if it ain't broke don't fix it!! :/ Govvy (talk) 19:43, 17 August 2020 (UTC)
- I would also prefer for there to only be a flag, without text. However, it apparently violates MOS:ACCESS, so we needed to add some text. As for the positions, I don't think it's different than before? Nehme1499 (talk) 19:50, 17 August 2020 (UTC)
- Yes, the positions were linked on every line in the previous version. Number 57 20:36, 17 August 2020 (UTC)
- The flags and the country codes seems like massive overkill and just makes the template look crowded and clunky. Do we really need country codes? NouveauSarfas (Talk page) 00:33, 18 August 2020 (UTC)
- Per the RfC above, we can't put only the flag without the country's name (or code) next to it, per MOS:ACCESS. Nehme1499 (talk) 00:38, 18 August 2020 (UTC)
- The flags and the country codes seems like massive overkill and just makes the template look crowded and clunky. Do we really need country codes? NouveauSarfas (Talk page) 00:33, 18 August 2020 (UTC)
- Yes, the positions were linked on every line in the previous version. Number 57 20:36, 17 August 2020 (UTC)
- I would also prefer for there to only be a flag, without text. However, it apparently violates MOS:ACCESS, so we needed to add some text. As for the positions, I don't think it's different than before? Nehme1499 (talk) 19:50, 17 August 2020 (UTC)
- I didn't think there was anything wrong before the changes. I would say if it ain't broke don't fix it!! :/ Govvy (talk) 19:43, 17 August 2020 (UTC)
- I don't think it's possible to automatically de-link multiple instances of positions. As for the trigram, it's the only aesthetically pleasing solution because, as N57 pointed out, some countries (such as Trinidad and Tobago) would mess up the table width. Nehme1499 (talk) 19:26, 17 August 2020 (UTC)
- I don't know about other people, but I am not a fan of the three letters, nor the over-linked squad positions. Govvy (talk) 18:13, 17 August 2020 (UTC)
- If it's the full name, the template will be a mess when you have players from countries with long names. The idea behind using the trigrammes was that they are consistently three letters. Number 57 17:29, 17 August 2020 (UTC)
- I am in agreement with that, the three letters doesn't tell you which country the player comes from does it? REDMAN 2019 (talk) 16:56, 17 August 2020 (UTC)
- On my 15" screen it looks, I don't know, truncated to me, I find the hover over text really very helpful, especially when I am not sure of the flag colours, and the three letter's afterwards, I am not really sure about that, it should be a whole name or not at all in my opinion, the three letters might be confusing to certain readers. Govvy (talk) 16:01, 17 August 2020 (UTC)
- @S.A. Julio: I can't see any alt text when I hover over the flags (e.g. here). I'm not sure what Govvy means by 'truncated' though? If anything the new version is slightly larger as it now includes the trigrammes. Number 57 14:29, 17 August 2020 (UTC)
Oh, bugger is all I can say. Can we at least change the background back to normal? Govvy (talk) 21:04, 17 August 2020 (UTC)
- I wouldn't necessarily have a problem with this, but the outcome of the section RfC on this was to use MediaWiki default (albeit not with a terrible amount of consensus). I'm also not sure how to change this. It looks like the code is looking at something that defines "wikitable football-squad", but I have no idea where this is. I assume Tholme knows where it is? Number 57 21:25, 17 August 2020 (UTC)
- The real problem is that this template is not suited for this to start with. The cramped layout when accessibility was correctly considered was a primary motivator when {{Fs player2 sort}} was created 12 years ago. It is wider and longer, but does not look cramped, and you get the full nation name not a TLA. While the other template still needs to be fixed so it links to the association, not nation, it's a better fit for accessibility. I'll also remind readers here that the trigram with a tool tip is still a minor issue as tablets cannot hover easily to get the tool tip.
- I suppose, you could make each side of this template a wider to avoid this cramping. Walter Görlitz (talk) 02:19, 18 August 2020 (UTC)
- What I don't understand is, why was {{Fs player2 sort}} created 12 years ago? Why weren't changes made directly to {{Football squad player}}? I'm not saying one is better than the other, but I really don't see why we now have Saudi, American, and a handful of other countries only using Fs player2, while 99% of other leagues use Fs player. Nehme1499 (talk) 12:11, 18 August 2020 (UTC)
- From memory, fs start/player/end2 was initially created as a form of a sandbox version to showcase a potential change, but there was insufficient support to change the main template to that format. However, rather than it being left as a dead end, some editors began using v2 instead. It's a mess that should never have been allowed to happen, but there is a bit of a history of North American editors doing things their own way (I recall at least one threat to start a breakaway WikiProject after a dispute over wording in {{Infobox football club}}), and lower profile leagues are often prone to a single editor implementing changes across a wide number of articles without discussion (I guess this may have happened with the Saudi ones). Number 57 14:03, 18 August 2020 (UTC)
- Maybe it should just be one table like the fs player2 sort, and in one column. I think being able to sort the table is very useful. There will then also be space to use the full name for nations.
The background is set in Commons.css for wikitable, but it is possible to overwrite with css styling on the individual rows. I belive the best would to use a more normal wikitable with standard grid lines and backgrounds. Tholme (talk) 16:49, 18 August 2020 (UTC)
- Yes, the second template was made in an effort to address accessibility. The consensus us one large table is not preferred by most, and ideally a responsive table should be used if possible so that mobile viewers can see it better. I can't recall what the effect of having the "two column" view is on screen readers—the tool that those who have difficulty seeing text use to read the page to them—but if I recall, they read across the table, not down numerically. This is avoided with a single-column table. Walter Görlitz (talk) 20:25, 18 August 2020 (UTC)
- Maybe it should just be one table like the fs player2 sort, and in one column. I think being able to sort the table is very useful. There will then also be space to use the full name for nations.
- From memory, fs start/player/end2 was initially created as a form of a sandbox version to showcase a potential change, but there was insufficient support to change the main template to that format. However, rather than it being left as a dead end, some editors began using v2 instead. It's a mess that should never have been allowed to happen, but there is a bit of a history of North American editors doing things their own way (I recall at least one threat to start a breakaway WikiProject after a dispute over wording in {{Infobox football club}}), and lower profile leagues are often prone to a single editor implementing changes across a wide number of articles without discussion (I guess this may have happened with the Saudi ones). Number 57 14:03, 18 August 2020 (UTC)
- What I don't understand is, why was {{Fs player2 sort}} created 12 years ago? Why weren't changes made directly to {{Football squad player}}? I'm not saying one is better than the other, but I really don't see why we now have Saudi, American, and a handful of other countries only using Fs player2, while 99% of other leagues use Fs player. Nehme1499 (talk) 12:11, 18 August 2020 (UTC)
- Note. {{Fs player2 sort}} transcludes {{Football squad player2}} – wbm1058 (talk) 17:56, 24 February 2021 (UTC)
Merge with {{Football squad player2}}
editSo, what is missing to merge the two? Nehme1499 (talk) 21:27, 22 September 2020 (UTC)
- MOS:ACCESS had to be met and ideally, WP:OVERLINK. Walter Görlitz (talk) 04:53, 23 September 2020 (UTC)
- Didn't we already meed ACCESS? And OVERLINK doesn't apply to tables. Nehme1499 (talk) 14:15, 23 September 2020 (UTC)
- You're confusing may be linked in tables with must be linked. If a reader of the roster would be helped by the link is the question. If we had used full names rather than the three-letter acronyms, is there any benefit to the links here Arsenal F.C.#First-team squad? Gabon is the only uncommon nation in the list. I can see millions of readers thinking, "I wonder if there's a Wikipedia article about the football association in Germany? Oh I know how to find it: Arsenal's keeper is German, I'll click through to the roster to get to it." Granted, the better squad listing also links it so it's not any better, but easier to solve. Walter Görlitz (talk) 16:26, 23 September 2020 (UTC)
- The positions and countries are linked for every player both versions of the squad template, so this is not an issue that is preventing a merger of the two.
- A constructive answer is that there are two options to resolve this:
- Manually change every article using fs player2 to the main template
- Make fs squad player backwards compatible with {{fs player2}} and {{Fs player2 sort}} (e.g. enable {{fs player}} to process with firstname/lastname input) and deal with any article that is using a non-standard heading for the squad (you may be able to create a list of every article that uses. Once that's resolved, the template can simply be redirected.
- Number 57 17:32, 23 September 2020 (UTC)
- That won't work since it uses a single column and is preferable. Use the better template and ditch this one. It's really a lot easier, especially when you can just ignore the mid. Walter Görlitz (talk) 06:04, 24 September 2020 (UTC)
- You're confusing may be linked in tables with must be linked. If a reader of the roster would be helped by the link is the question. If we had used full names rather than the three-letter acronyms, is there any benefit to the links here Arsenal F.C.#First-team squad? Gabon is the only uncommon nation in the list. I can see millions of readers thinking, "I wonder if there's a Wikipedia article about the football association in Germany? Oh I know how to find it: Arsenal's keeper is German, I'll click through to the roster to get to it." Granted, the better squad listing also links it so it's not any better, but easier to solve. Walter Görlitz (talk) 16:26, 23 September 2020 (UTC)
- Didn't we already meed ACCESS? And OVERLINK doesn't apply to tables. Nehme1499 (talk) 14:15, 23 September 2020 (UTC)
- The replacement should be doable quite quickly semi automatically. 600 pages isn't that much and I or some other WP:TFDH regular should be able to do it without too much bother. --Trialpears (talk) 17:43, 23 September 2020 (UTC)
- As the modified fs player template meets all the criteria agreed in the RfC (country name next to flag, two columns (as a responsive table has not been possible to develop), abbreviations used for the position, and no gridlines), I suggest this starts. Doing it semi-automatically will also allow fixing the non-standard table headers. Number 57 17:49, 23 September 2020 (UTC)
- I'll take a look. Haven't really been following this closely and am quite busy currently so I won't promise it to be quick. — Preceding unsigned comment added by Trialpears (talk • contribs) 17:53, 23 September 2020 (UTC)
- As the modified fs player template meets all the criteria agreed in the RfC (country name next to flag, two columns (as a responsive table has not been possible to develop), abbreviations used for the position, and no gridlines), I suggest this starts. Doing it semi-automatically will also allow fixing the non-standard table headers. Number 57 17:49, 23 September 2020 (UTC)
- After taking another look I think the best course of action would be performing the merger even though further tweaking may be desirable. This template is now significantly more in line with the consensus reached in the RfC tha the other version. I would be comfortable starting replacements this weekend if I have time and no one complains here. --Trialpears (talk) 22:33, 14 October 2020 (UTC)
- Still not ideal though. Walter Görlitz (talk) 16:35, 16 October 2020 (UTC)
- I'm ok with the merger. Nehme1499 (talk) 18:44, 16 October 2020 (UTC)
- Yes, it would be good to make a start. Cheers, Number 57 19:18, 16 October 2020 (UTC)
- @Trialpears: Any update? Nehme1499 (talk) 02:34, 18 December 2020 (UTC)
- No, because of the problems that remain. Walter Görlitz (talk) 04:39, 18 December 2020 (UTC)
After seeing that several "football transfers" articles had landed in Category:Pages where node count is exceeded using many football squad player tables, I somehow fell into this rabbit hole, where I've been for the past two days. I've just noticed that Template:Football team 1 redirects to Template:Football squad start and Template:Football team 2 redirects to Template:Football squad mid and these templates are used in articles such as FA Youth Cup Finals of the 2000s, where each column in a 2-column table is for a different team. This throws a little monkey wrench at the idea that tables could be auto-split into two columns at the midway point on screens large enough to support two columns. – wbm1058 (talk) 23:41, 14 February 2021 (UTC)
- @Wbm1058: This template shouldn't be used in that page. It should be formatted as such, using tables for the players. Nehme1499 (talk) 23:59, 14 February 2021 (UTC)
- It shouldn't be too much work to change the usage of those. Just
1816 pages use {{Football team 1}} 16 pages use {{Football team 2}}. – wbm1058 (talk) 00:16, 15 February 2021 (UTC)- @Wbm1058: Yep, agreed. Regarding the merge of Fs player and Fs player2, do you think it's going to be complicated? Are there other things that have to be taken care of before they can be merged? Nehme1499 (talk) 00:26, 15 February 2021 (UTC)
- I've made several edits which bring the two into closer alignment, and so far nobody has reverted me or objected to any of my edits. See the next subsection. wbm1058 (talk) 04:37, 15 February 2021 (UTC)
- It was bound to happen. One of my edits to Template:Football squad start was reverted, so I have made a corresponding edit to Template:Football squad start2. See WT:FOOTBALL#Fs start - template update question. – wbm1058 (talk) 15:06, 15 February 2021 (UTC)
{{{team}}}
was added on 25 August 2012 to allow for some merging Template:Football team 1 & Template:Football team 2 (they had actually been merged on 7 June 2012 but support for the{{{team}}}
parameter had been neglected). The February monthly TemplateData usage report shows{{{team}}}
only used on 15 pages, which seem to be the same pages that use Template:Football team 1 & Template:Football team 2. So if we substitute those templates on these pages I think we'll just have the wikitable source code on those pages without the tables being generated by templates, and we can drop support for{{{team}}}
as an unused parameter rather than merge that parameter into Template:Football squad start2. – wbm1058 (talk) 20:09, 15 February 2021 (UTC)- I haven't seen any discussions about the matter, but I suppose the reason for using templates to build a squad's roster is that membership is under constant flux, and it's easier for editors unfamiliar with wikitable syntax to add or remove team members when the implementation uses templates. But for matches the opposing squads for the match are what they were, and will never change, so it's better to just use wikitables as these will never need to be edited except to correct any errors. – wbm1058 (talk) 20:50, 15 February 2021 (UTC)
- Hmm, Template:Football line-up. – wbm1058 (talk) 04:28, 26 February 2021 (UTC)
- I've made several edits which bring the two into closer alignment, and so far nobody has reverted me or objected to any of my edits. See the next subsection. wbm1058 (talk) 04:37, 15 February 2021 (UTC)
- @Wbm1058: Yep, agreed. Regarding the merge of Fs player and Fs player2, do you think it's going to be complicated? Are there other things that have to be taken care of before they can be merged? Nehme1499 (talk) 00:26, 15 February 2021 (UTC)
- It shouldn't be too much work to change the usage of those. Just
Responsive template
editThe consensus was to make the table responsive to window width (if possible) or two-column (if not), but I can see from the discussion above that making it responsive is important to Walter Görlitz, so we should try again for that. I see that earlier attempts didn't find an acceptable solution. Below are transcluded discussions relevant to that from Number 57 talk. – wbm1058 (talk) 04:37, 15 February 2021 (UTC)
Sidebar discussions
|
---|
Template:Football squad playereditHi, two things. Firstly, there is a rogue "|}" at the end of the template. Secondly, can you make it so that Template:Football squad player2 becomes a redirect to Template:Football squad player? Thanks, Nehme1499 (talk) 16:21, 15 August 2020 (UTC)
Change to Template:Football squad playereditHello, In the change that you made to {{Football squad player}} template the two columns that were side by side are now appearing one below the other when there is a wide entry that used to wrap. Thus extending the squad listing and having a middle set of headings at the {{fs mid}} point. You can see the effect on this article. Keith D (talk) 22:38, 15 August 2020 (UTC)
|
Country name
editWith regards to the recent change (which I reverted), I don't believe the discussion above is definitive on requiring the full country name (the closer refers to MOS:Icons#Accompany flags with country names, which gives {{flag|JPN}}
(which produces JPN) as an example of appropriate use). Using the full names makes the template look a mess – compare the two options here. Having the trigramme means the country name is a reasonably consistent width all the way through the table. When you start using full names, it starts looking quite disjointed. The full name works better on fs player 2 because the country is in the final column rather than in the middle, and also because that template has gridlines, making it easier to follow the row. As this version has no gridlines (confirmed in the RfC above), placing the full country name in the middle of the columns makes it noticeably harder to follow IMO. Cheers, Number 57 22:17, 24 February 2021 (UTC)
- While MOS:FLAG does advocate for the use of the full name "adjacent to the first use of the flag", the "Accompany flags with country names" section also states "However, some editors feel that some tables such as those containing sports statistics (example) are easier to read if {{flag}} is used throughout". Nehme1499 22:26, 24 February 2021 (UTC)
There was an earlier, decade-old TL;DR discussion on this:
Template talk:Football squad player/Archive 1 §Country names
|
---|
I think that the name of the country need to be placed next to the flag of the players' nationalities, i.e. use the {{flag}} template instead of {{flagicon}}. Using just the flag without the name of the country assumes the reader has the knowledge and the ability to recognise the flag, which may not necessarily be the case, and even if a reader does know their flags they can be difficult to distinguish at the size they are displayed here. The various blue ensigns in use around the world can cause particular difficulty, not to mention pairs of countries like Indonesia/Monaco which have identical flags, or the various combinations of the pan-african colours. There needs to be some sort of clever wizardry to make sure that the output is Central African Republic, rather than CAF, when the three-letter ISO code has been used with the 'nat=' parameter instead of the full country name. — Gasheadsteve Talk to me 13:27, 25 March 2010 (UTC)
Per above and Wikipedia:Manual of Style (icons)#Accompany flags with country names,
For
to
(Per discussion below) also change for
to
This incoporates a new parameter—"icononly". If "icononly" is empty (default) or not "yes", the country name will be shown. To show only the flag icon, simply add the parameter "icononly=yes". The default case complies with Wikipedia:Manual of Style (icons)#Accompany flags with country names, and having lists with names besides all the flags is still compliant with the guidelines. Any other sort of scheme as default goes against MOSFLAG. Jappalang (talk) 22:05, 19 July 2010 (UTC)
This will get even more complicated, as an edit will also need to be made to {{fs mid}}, unless a bot is going to mass-remove it. I've done some work, and the current state of play can be seen here. The player name field might prove to be a bit narrow (particularly for Eastern Europe), and we need to figure out a way to get Northern Ireland to render properly without compromising any further on player names. Once that conundrum is sorted I'll let you know. --WFC-- 02:33, 21 July 2010 (UTC) Right, we've cracked itedit
I'm filing this request on one page for the conveniece of the admin, but for procedural reasons will place {{editprotected}} on the other pages. I recommend making the edits in the order I have specified. In particular, it is vital that {{Football squad player}} is edited last. These changes achieve two major things:
Please:
The combined effect of these changes can be seen at Template:Football squad player/testcases Please credit User:Jappalang in the edit summary, as he has done much of the work. He indicated his approval for me to proceed with this request here. I now consider myself to have a very good understanding of the source code, so feel free to contact me with any queries. I also have this page watchlisted if you'd prefer to keep the discussion in one place. Regards, --WFC-- 01:10, 22 July 2010 (UTC)
I hope you don't mind. I've moved the sandboxes and testcases to their proper places. I've also made a couple of other tweaks as well. Can you check if all is in order and I will make the changes. — Martin (MSGJ · talk) 12:47, 22 July 2010 (UTC)
Looks appallingeditI just found out about this entire discussion today. It would have been nice if the proposed changes to the template were announced at WP:FOOTY prior to it going live, but that's a different matter. I appreciate that changing the template was done so that the flag icons comply with WP:MOSFLAG, but adding entire country name to the table makes the layout look utterly horrific. There has to be a better way. Wouldn't simply using the recognized FIFA Trigramme - ENG instead of England, USA instead of United States, COD instead of Democratic Republic of the Congo - make more sense? That way you can control column widths so they don't split across multiple lines and you're ensuring the spirit of MOSFLAG is retained without it looking like someone threw up on the screen. --JonBroxton (talk) 23:04, 22 July 2010 (UTC)
I have updated the documentation to explain the change, and also to more widely publicise the fact that it is possible to hide the note. Please can an admin action the following request:
The combined effect of these changes can be seen at Template:Football squad player/testcases. Changes:
Regards, --WFC-- 00:38, 23 July 2010 (UTC) This is one of the most absurd things I've ever seen done on Wikipedia. I don't see any reason to continue contributing here if you people think shit like this improves anything. I don't even know what to say. It's unbelievable. Eightball (talk) 05:47, 23 July 2010 (UTC)
I think what Eightball is trying to say is that there is really no need for a nationality header when you can simply hover above the flag which reveals the players nationality. Moreover, inclusion of the "Nationality" header has made the template look awkard and unorganized, in where nations with long names like "Azerbaijan" overshadow and skew the alligement of smaller nations such as "Iran". Overall, this edit seems like a hurried and unorthodox attempt to solve a problem which never existed. As such, i beleive more creative ideas, such as hyperlinking the flags to the country's wikipedia page, seem like simpler ideas to solve the nationality problem, if there ever were one.. Kasperone (talk) -- 12:04, 23 July 2010 (UTC)
RevertededitI've reverted the changes until this issue has been discussed by a wider group from WP:FOOTY. I think it's clear that there are several issues with this, not least the fact that it severely disturbs the layout of player squads. пﮟოьεԻ 57 08:55, 23 July 2010 (UTC)
RFC: Changes to Football squad templates to comply with WP:MOSFLAGeditThe Manual of Style (MOS) specifically instructs that on the first time a flag icon is used, we should name the country (WP:MOSFLAG#Accompany flags with country names). The reasons are for clarity and accessibility. The Football squad templates ( To see the proposed version (that was reverted), see Template:Football squad player/testcases.
I can't add anything that User:Jappalang and User:AJCham haven't already said, but something needs to be done. WP:MOSFLAG may be annoying to some, but it exists for very good reasons - it's there to make sure that all readers have access to the information in articles, including those who don't use the same method of browsing as you are used to. Aesthetics will always be secondary to conveying information: editors prioritising the former over the latter must be strongly reminded that they are editing an encyclopedia, not a series of wallcharts. Encyclopedia articles are there primarily to hold and convey blocks of information, not to be stapled to the wall as interior décor. And making nice wallcharts is an extremely poor excuse for excluding information from article to people who don't know the flags of hundreds of countries, who don't use a mouse, who access the information from a phone, who use text-only browsing, who are colour blind, who don't know their STP from the MNE. The only acceptable solution in the long run is including the country names; however, this can be done much more elegantly than it was in the first attempt. As Glamorgan_County_Cricket_Club#Current_squad shows, judicious use of column lines can improve matters significantly. We can also consider abbreviating some of the particularly long country names: Dem. Rep. Congo is still more evocative than COD, but takes up half the space. Knepflerle (talk) 10:13, 24 July 2010 (UTC)
I've updated my local testcases with an attempt at colouring every second line and a couple of other tweaks. Unfortunately I can't make it dynamic on non-supplied parameters, so used squad numbers even/odd for colouring. This will of course produce oddities if the numbers are not consecutively odd/even. I also modified Fs mid to put not make a new column, idea being we could 'bot that out if a changeover to new format occurs. Possible look at width factors for columns - I had it 1000%, but have dropped that out in favour of width-to-suit-per-squadlist. I wasn't that keen on full country names myself initially, particularly when they were in the front distracting from the important information, but with them tacked discreetly on the end I don't mind them.--ClubOranjeT 11:43, 29 July 2010 (UTC)
Moving forwardeditI thought long and hard about whether to start a new heading, but I firmly believe that this is a separate strand of discussion. The above discussion focuses on the merits and otherwise of expanding on flags. Although there has been little discussion in the last 24 hours, I believe that it still has some mileage. In contrast this section focuses on whether or not there is any scope for progress (obviously, what might be considered progress depends on one's point of view). At the moment there is somewhat of a deadlock, which is understandable given the poor execution of the previous attempt. So let's put it this way. If a prototype is designed that attempts to deal with the concerns over accessibility, while at the same time ensuring that there is no compromise on aesthetics, will all editors agree to compare the two on their merits? It is unlikely that anyone is going to change their view on whether full names are necessary, but my question is whether all editors would be willing to reserve judgement until they see what is on the table? For the record I will not be involved in that template's development. I feel that I have a lot to offer in the template development department, but I recognise that my involvement in this issue must now be an external one. However, I know of at least one editor who has stated a keen interest in working on a possible solution, if the community demonstrates a willingness to consider his work on its merits. Would people be willing to give it the time of day? Even if we keep flags as they are, I firmly believe that the current template is in need of an aesthetic revamp, and that it is worth doing so while there is a lot of attention on it, so that we can get maximum feedback. --WFC-- 02:06, 26 July 2010 (UTC)
My hat in the ringeditThere's been a fair bit of convo here (and if I missed any points I apologise). Just thought I'd offer an alternative solution. Working off this mock template ([User:Rambo's Revenge/fsp2|testcases]]) I believe I've utilised the existing {{flagathlete}} and kept all current functions. It handles flag variations and, taken from code conversation, could use codes where repetitive or very common but for less common flags full names can be used. I believe it is fairly unobtrusive too. I have moved the other attributes to an extra column but I don't believe there is any problem with this. Would be interest in thoughts, or any other probles this might be bring that I could hopefully work around. Rambo's Revenge (talk) 14:55, 26 July 2010 (UTC)
StatuseditWhat's the status of this proposal. Something needs to happen Gnevin (talk) 10:02, 13 August 2010 (UTC)
PingeditAre we getting any nearer, here? Chris Cunningham (user:thumperward: not at work) - talk 10:36, 22 August 2010 (UTC)
What's still to do with the new template? If I can do anything template-wise to expedite this then I'm happy to take requests. Chris Cunningham (user:thumperward: not at work) - talk 09:45, 27 August 2010 (UTC)
I'm guessing the following switch statement will do the trick. --WFC-- 13:56, 27 August 2010 (UTC)
Random breakeditHas this process stalled again ? Gnevin (talk) 00:50, 22 September 2010 (UTC)
ROI flagseditGot another problem. Why does
Because FIFA recognises Northern Ireland as the successor to the initial Ireland team. FIFA would never call Northern Ireland "Ireland", but by the same token they go out of their way to use the entire phrase "Republic of Ireland". --WFC-- 16:42, 13 September 2010 (UTC)
nat parameter optionaleditCould the nat=XXX please be optional so I dont have to worry about MOSFLAG. I would like to simply remove it from the player squad list. Sandman888 (talk) 11:46, 2 September 2010 (UTC)
|
I found this discussion when researching the history of the {{{icononly}}}
parameter. {{{icononly}}}
was briefly added, but quickly reverted from {{Football squad player}} in July 2010, but this parameter has been part of {{Football squad player2}} since its creation. I don't know whether or how much this parameter is used in that template. |name=code
and {{{icononly}}}
are two of the template differences remaining to be resolved. – wbm1058 (talk) 23:13, 24 February 2021 (UTC)
- Finding that
{{{icononly}}}
is apparently unused, I've removed it. – wbm1058 (talk) 15:43, 25 February 2021 (UTC)
Birthdates?
editIn working the invalid parameters list I've seen many cases of editors adding an unnamed parameter with a date which I assume is the player's date of birth. For example, see ESAE FC. Any idea why this is happening, and any better option for fixing this other than simply removing the date from the template? wbm1058 (talk) 03:25, 27 February 2021 (UTC)
- Such a parameter exists for national team squadlists (e.g.) so maybe they are confused by that. I can't really see any solution other than removing it where it exists for club squadlists. Number 57 15:50, 27 February 2021 (UTC)
- Done. I'm trying to get these cleaned up before the March report is generated. – wbm1058 (talk) 17:19, 27 February 2021 (UTC)
nonat
editThe little-used {{{nonat}}} parameter was added to {{Football squad start2}} in August 2012 as a way to remove the Nation column and was first used on Ayr United F.C.. However the current version of Ayr United F.C. does show the nation. Indeed the March TemplateData report found that this parameter wasn't being used anywhere. However I found that Southampton Women's F.C. wasn't specifying the nation in its table so I added |nonat=yes
there. If we continue supporting this parameter, it needs to be merged/added to {{Football squad start}}. I can do that. wbm1058 (talk) 22:11, 7 March 2021 (UTC)
- I'm having second thoughts on supporting the option to remove the nation column. While it works fine on Southampton Women's F.C. where none of the players have their nation specified, it's more problematic on articles like Haringey Borough F.C. where just a couple players have their nation specified or Kansas City Comets (1979–91) where all but one have their nation specified. The implementation should be more robust to handle these better. I'm thinking of just removing support for this parameter rather than going to more effort to make it work better. – wbm1058 (talk) 02:04, 19 March 2021 (UTC)
- I think the best route to go down would be to follow the nonumber option – i.e. the nationality column is included unless turned off via a nonat parameter. I don't recall the mess that is the Haringey Borough squad being possible previously – is it a recent change that has caused this? Number 57 09:11, 19 March 2021 (UTC)
- Yes, a recent change I made, now reverted, caused that. I've reached a sort of impasse. The increased template complexity required to support these new options is causing some pages that have a lot of football squad tables to exceed template-include byte limits. So I'm stuck in my efforts to merge {{Football squad player}} and {{Football squad player2}}. I think this can be solved by coding the decision logic in a Lua module, but I'm still not particularly proficient in Lua. Perhaps this project is the push I've needed to take a crash course in Lua coding, so I can finish what I've started. – wbm1058 (talk) 14:50, 21 March 2021 (UTC)
- I think the best route to go down would be to follow the nonumber option – i.e. the nationality column is included unless turned off via a nonat parameter. I don't recall the mess that is the Haringey Borough squad being possible previously – is it a recent change that has caused this? Number 57 09:11, 19 March 2021 (UTC)
natlast
editAnd there was no consensus on #Should the nation be displayed after the number or in the last row? so I suppose the solution is to implement a new optional parameter to move the nation to the last rowcolumn. {{Football squad player2}} could simply be a shell that transcludes {{Football squad player}} which specifies this new parameter |natlast=yes
. – wbm1058 (talk) 17:13, 10 March 2021 (UTC)
- @Wbm1058: Keep in mind that if we were to move it to the last row, it would create a huge white space in this case: say one player has "on loan from team" as the "other=" parameter. This means that, in order for the nations to be all aligned, the players that don't have an other parameter would have a lot of space between the player's name and their nationality. Nehme1499 17:33, 10 March 2021 (UTC)
- Agree with Nehme on this – as it looks like we're sticking with trigrammes, I don't see any benefits to moving the nationality to the last column, only problems. Number 57 17:59, 10 March 2021 (UTC)
- For the record, rows are horizontal and columns are vertical, so the request is for nationality to be placed in the column on the right. The real problem is that you all want two columns of complete player data for the roster.
- Compare New York Red Bulls#Roster and RB Leipzig#Squad. In the first, the last column lines up quite nicely and meets both MOS:ACCESS and the nation is clear, with the nation being out of the way of the actual useful information about the player: name, position and number. To see what it would look like with players on loan, look at the players out on loan sections. Reducing either to a small monitor, and everything wraps and you end up with a horrible mess with the double-wide. Either drop the nation (which is a source for edit wars on occasion) or put it on the right where it belongs. Walter Görlitz (talk) 01:45, 11 March 2021 (UTC)
ref location
editCan we shift the ref field to go after the |other= field, as we use that field for loans information also, is seems smarter to have the ref run after that maybe? At the end of the string line. I've used the feature on Tottenham Hotspur F.C.#Players for Out on loan players. Thought it would help, thoughts? Govvy (talk) 12:39, 2 February 2021 (UTC)
- Just put the ref outside the template at the end of the line as at Manchester United F.C. No need to put it in its own parameter of the template. – PeeJay 16:46, 2 February 2021 (UTC)
Positions
editAssociation football positions describes more specialized positions. See #Add postion Field Player (FP) for a less-specialized position. From the archives:
Player positions abbreviation?
editAfter putting the wrong letter in whilst editing, I noticed that things such as 'MC' and 'ML' link to 'Midfielder' and 'DC' and 'DL' to 'Defender' (although 'DR' doesn't). Is this a deliberate decision? As it's not mentioned in the parameters above. My personal preference is to include the chance to be more accurate with players' positions than simple 'midfielder', although if you can't signify someone's a right-back then it's kinda pointless. CharlieT 00:02, 6 October 2007 (UTC)
- The only expected links are GK, DF, MF and FW. Any other link was not provided by the original creator, i.e., me. And I would not agree with any of them. --Angelo 00:40, 6 October 2007 (UTC)
Multiple positions
editHow can one handle multiple positions a player can play? For example Hapoel Ashkelon F.C. has pos=GK|pos=MF
for Galil Ben Shanan, but only one (MF) is displayed. --CiaPan (talk) 06:17, 22 May 2015 (UTC)
- Only the second one is displayed because that's how Wikipedia's code handles duplicate parameters in the same instance of a template. To answer your question, though, there's no way to put in multiple positions. You'll just have to decide (using reliable sources) which is the player's primary position. – PeeJay 09:06, 22 May 2015 (UTC)
- How about adding a
pos2
parameter? I could do that, but don't dare... ;) And honestly do not know if it's actually needed. --CiaPan (talk) 12:15, 22 May 2015 (UTC)
- How about adding a
Should any other valid positions be added to the template? I've run across several malformed attempts to add a second position. For example, see this diff.
Is THIS an acceptable way to show players who play two positions? wbm1058 (talk) 20:00, 7 March 2021 (UTC)
- No, we should stick to one position between GK, DF, MF, FW. Nehme1499 20:03, 7 March 2021 (UTC)
High node counts coming from this template
editAfter seeing that several "football transfers" articles had landed in Category:Pages where node count is exceeded using many football squad player tables, I somehow fell into this rabbit hole, where I've been for the past two days... – wbm1058 (talk) 23:41, 14 February 2021 (UTC)
(higher up on this page)
And now I've been here on and off for over a month, I'm just now looking deeper into this. Each {{Football squad player}} transclusion uses roughly 1,000 nodes. I ran a test on one example use and found that without |nat=
the node count was just 146, but with |nat=
the node count was 1158, thus |nat=
uses (1158-146)=1012 nodes! So that's where to look to make efficiency improvements.
List of Iranian football transfers summer 2013 has 1,172 {{Football squad player}} transclusions and that put its node count at 1,008,338 which is > 1,000,000.
I saw that this 20 August 2020 edit by Frietjes attempted to solve the issue. I don't have any experience with working on other instances of this rarely-occurring problem, but will take a stab at further investigation to figure it out. I'd like to fix this before completing the merge with {{Football squad player2}} so as not to risk making this problem worse. – wbm1058 (talk) 17:09, 14 March 2021 (UTC)
I've traced it down to:
That still has a preprocessor visited node count = 1,028 but removing |name=code
cuts it down to 630 as it saves a table lookup. In other words IRN is too inefficient to do on a mass scale and I believe changing that to Iran will get the Category:Pages where node count is exceeded pages inside the limit. I can make that happen by creating a new parameter that lets the user override the |name=code
default on selected pages. Note that my recent edit to do this for everyone was reverted. – wbm1058 (talk) 18:30, 14 March 2021 (UTC)
- The primary issue here is that those articles shouldn't be using this template, as it's not what it is designed for. They should look like List of English football transfers summer 2020. Number 57 19:25, 14 March 2021 (UTC)
- It's not always easy to get all editors on the same page, and have Iranian and Serbian and Romanian and Japanese editors to all follow standards established by British editors. In the meantime, I've implemented the easier patch, and cleared Category:Pages where node count is exceeded, but for four user pages. wbm1058 (talk) 02:36, 15 March 2021 (UTC)
- Related discussion and analysis at Talk:List of Serbian football transfers summer 2018#Too many templates. – wbm1058 (talk) 16:14, 6 April 2021 (UTC)