Jump to content

Module talk:National squad

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Primefac (talk | contribs) at 00:47, 20 November 2020 (Gender issue: plus). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Template-protected edit request on 2 September 2020

Implement Special:permalink/976342160 to wikilink sport specific article for compitation in title. It will be useful for this merger. Tested at Template:National squad no numbers/testcases (second testcase). → Timbaaatalk 12:51, 2 September 2020 (UTC)[reply]

Timbaaa, do we know how many transclusions are not using |comp link=? this will potentially cause a change in the linking for all of them. For example, it would break the links in 1996 UEFA Futsal Championship squads, and Template:Bahrain squad 2007 AFC Asian Cup. Frietjes (talk) 15:30, 2 September 2020 (UTC)[reply]
Frietjes, Come to think of it, transclusion without |team link= is breaking team link in the title. In the same example 1996 UEFA Futsal Championship squads, all the links are to football squads as opposed to futsal squads.
In that case, for the merger to go on, |sport= has to be made a required parameter. And football be removed as default. → Timbaaatalk 03:11, 3 September 2020 (UTC)[reply]
For what it's worth, I have a list of all templates using this module, divided by sport, at User:S.A. Julio/Squad navboxes. S.A. Julio (talk) 03:29, 3 September 2020 (UTC)[reply]
finding and fixing all of them seems like a large task (now tracking with Category:Pages using national squad without comp link). if this feature were "opt in" with |auto comp link=y or something, we wouldn't need to worry about fixing current uses. Frietjes (talk) 15:42, 2 September 2020 (UTC)[reply]
I think we have two issues
  1. the sport parameter which was added in June 2020. if you check, before that in both the LUA and non-LUA versions, sport=football was "hard coded". the reason why the futsal links are wrong is because User:Primefac redirected the futsal template here but some of the transclusions were never updated. I simple check of the remaining transclusions to add |sport=futsal would fix that problem. however, I agree that making |sport= mandatory is a good idea in the longer term (unless |team link= is used in templates like Template:2008 United States Ryder Cup team).
  2. the proposed change would still break links even when |sport= is set properly in templates like Template:Bahrain squad 2007 AFC Asian Cup, which currently links to 2007 AFC Asian Cup but would link to the redundant Football at the 2007 AFC Asian Cup without either (a) explicitly adding |comp link= to all transclusions without it or (b) making this feature opt-in. Frietjes (talk) 14:55, 3 September 2020 (UTC)[reply]
    Frietjes, Explicitly adding |comp link= on all transclusions will be difficult, so making it an opt-in feature. Check Special:permalink/976616587, using new |auto sport comp link=(If you can improve the snippet, please do I'm still learning). Included Template:Bahrain squad 2007 AFC Asian Cup in test cases to verify. → Timbaaatalk 00:43, 4 September 2020 (UTC)[reply]

information Administrator note Has this change been tested at all, and if so is it ready to deploy? — Martin (MSGJ · talk) 12:12, 11 September 2020 (UTC)[reply]

MSGJ, I'll close the request. Seems it is causing some problems. → Timbaaa talk 06:10, 12 September 2020 (UTC)[reply]
 Not done for now: Needs more testing. → Timbaaa talk 06:14, 12 September 2020 (UTC)[reply]

Gender issue

I was going to start a run of converting the various "national <sport> squad" templates, but after checking Template:Argentina FH Squad 1983 Pan American Games I noticed that if |gender=male and the national team has "men's" in the title (in this case, Argentina men's national field hockey team) the template ends up directing the user to the dab redirect Argentina national field hockey team. This issue shows up if |team_link= isn't specified and the "<country> national <sport> squad" is a dab (which appears to be the case for field hockey). What is the best way to deal with this? Personally, I think defaulting to either "men's" or "women's" based on gender is the way to go (from a quick check it looks like most of the footy articles would redirect correctly, as would basketball). Primefac (talk) 00:45, 20 November 2020 (UTC)[reply]

And yes, I do realize that at this particular moment Template:Argentina FH Squad 1983 Pan American Games isn't using {{national squad}}, but that's because I want to make {{National field hockey squad}} into a redirect for future use; I only changed the Argentina template's call in Preview mode. Primefac (talk) 00:47, 20 November 2020 (UTC)[reply]