Module talk:WikiProject banner/Archive 13: Difference between revisions

Content deleted Content added
PrimeBOT (talk | contribs)
Task 24: preparation for a task force merger following a TFD
m Archiving 1 discussion(s) from Template talk:WPBannerMeta) (bot
Line 574:
:Fixed with [https://en.wikipedia.org/w/index.php?title=Template:WikiProject_Antarctica&diff=1043169169&oldid=1043160910 this edit]. -- [[User:WOSlinker|WOSlinker]] ([[User talk:WOSlinker|talk]]) 18:14, 8 September 2021 (UTC)
:: {{Ping|WOSlinker}} thanks for the help. I looked at that edit and the one I did earlier and then realised there were two places to change to subpage. Glad it’s working out. <!-- Template:Unsigned --><span class="autosigned" style="font-size:85%;">—&nbsp;Preceding [[Wikipedia:Signatures|unsigned]] comment added by [[User:Awkwafaba|Awkwafaba]] ([[User talk:Awkwafaba#top|talk]] • [[Special:Contributions/Awkwafaba|contribs]]) 01:58, 9 September 2021 (UTC)</span>
 
== To DEFAULTSORT or not to DEFAULTSORT ==
 
A big portion of pages in [[:Category:Pages with DEFAULTSORT conflicts]] are caused by multiple {{para|listas}} applied to WikiProject banners. I [https://en.wikipedia.org/w/index.php?target=Andrybak&namespace=1&&offset=20210912131400&limit=40&title=Special%3AContributions have tried fixing some of those], however I noticed that some talk pages can indeed be legitimately sorted differently for purposes of different WikiProjects. E.g. [[Talk:List of Azerbaijani writers]] could be sorted as "Writers, List of" for [[Wikipedia:WikiProject Azerbaijan|WikiProject Azerbaijan]] and as "Azerbaijani writers, List of" for other WikiProjects.
 
Should something like [[Special:Diff/1032406316/1043881411]] (probably better approach exists) be applied to all subtemplates of {{tl|WPBannerMeta}} (importancescale, /qualityscale, etc) and {{para|listas}} passed down to subtemplates so that
# [[:Category:Pages with DEFAULTSORT conflicts]] could be less polluted, and thus more useful
# different WikiProjects could use different values for {{para|listas}}
? [https://en.wikipedia.org/wiki/Special:Search?search=DEFAULTSORT&prefix=Template+talk%3AWPBannerMeta%2F&fulltext=Search+archives&fulltext=Search&ns0=1 DEFAULTSORT has been discussed several times in the past] and brought up last time in 2011, it seems. Maybe the time has come to fix this? —⁠[[User:Andrybak|andrybak]] ([[User talk:Andrybak|talk]]) 13:43, 12 September 2021 (UTC)
:This appears to eliminate the DEFAULTSORT: entirely, with the result that every individual WikiProject banner will now need to have its own {{para|listas}} set if pages like [[Talk:George Washington]] are to sort correctly in [[Talk:George Washington#mw-normal-catlinks|all of these cats]]. --[[User:Redrose64|<span style="color:#a80000; background:#ffeeee; text-decoration:inherit">Red</span>rose64]] &#x1f339; ([[User talk:Redrose64|talk]]) 19:48, 12 September 2021 (UTC)
:I have just been checking the code more carefully. It seems that the {{para|listas}} parameter will set the sortkey for the MAIN_CAT ''only''; but not all WikiProject banners use that. In my Talk:George Washington example, there are nine WikiProject banners, but only five of them set {{para|MAIN_CAT}} - these are {{tlx|WikiProject Biography}}, {{tlx|WikiProject Politics}}, {{tlx|WikiProject Virginia}}, {{tlx|WikiProject United States}}, and {{tlx|WP1.0}}. So all other categories will pick up the unmodified sort order, that is, for Talk:George Washington the page will sort under W for five categories ({{cl|WikiProject Biography articles}}, {{cl|WikiProject Politics articles}}, {{cl|WikiProject Virginia articles}}, {{cl|WikiProject United States articles}}, {{cl|Wikipedia Version 1.0 articles}}) and under G for all of the others. I do not think that this is a beneficial change. --[[User:Redrose64|<span style="color:#a80000; background:#ffeeee; text-decoration:inherit">Red</span>rose64]] &#x1f339; ([[User talk:Redrose64|talk]]) 20:45, 12 September 2021 (UTC)
::I don't think your answer is correct. Currently ''listas'' just sets the DEFAULTSORT, so every category is affected not just MAIN_CAT. I can see the benefit of {{ul|Andrybak}}'s suggestion, but we would probably need a bot to go round setting DEFAULTSORT on each page first, otherwise a lot of existing categories will lose their current sorting. &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 11:28, 1 October 2021 (UTC)
:::Where I wrote "I have just been checking the code more carefully.", this was the ''sandbox'' code as per {{oldid|Template:WPBannerMeta/core/sandbox|1043881411|this revision}}. There is no DEFAULTSORT in there at all. --[[User:Redrose64|<span style="color:#a80000; background:#ffeeee; text-decoration:inherit">Red</span>rose64]] &#x1f339; ([[User talk:Redrose64|talk]]) 20:33, 1 October 2021 (UTC)
::::Ah, that makes more sense then! &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 21:22, 1 October 2021 (UTC)