Template talk:Automatic archive navigator

From WikiProjectMed
Jump to navigation Jump to search

Later archives are not linked

{{talkarchivenav}} no longer shows later archives, see e.g. MediaWiki talk:Common.js/Archive 21. The list stops at Archive 21, even though Archive 22 and Archive 23 both exist. I don't know when it stopped working as intended. --Redrose64 🌹 (talk) 09:39, 26 May 2024 (UTC)[reply]

@Redrose64, the root cause of the issue is that at Special:PrefixIndex/MediaWiki talk:Common.js/Archive, pages MediaWiki talk:Common.js/Archive 3, MediaWiki talk:Common.js/Archive 4 ... MediaWiki talk:Common.js/Archive 13 don't exist. This causes Module:Highest archive number to fail in the middle of its search.
Archiving was done in following ways:
A solution could be to unify the archival numbering system. Move:
—⁠andrybak (talk) 12:04, 26 May 2024 (UTC)[reply]
Implemented the proposed moves in these edits. The links to further archives at MediaWiki talk:Common.js/Archive 21 have been fixed. —⁠andrybak (talk) 23:11, 22 June 2024 (UTC)[reply]
Thank you, although it would be great if AAN could handle gaps in sequence. For example, if used on /Archive 22 it should always check for the existence of /Archive 23, regardless of whether /Archive 3 ... /Archive 13 exist or not. The pre-Lua version did this, IIRC. --Redrose64 🌹 (talk) 08:09, 23 June 2024 (UTC)[reply]

Overflowing

I've noticed that on Wikipedia:Reliable sources/Noticeboard/Archive 439, while logged out and in the new Vector 2022 skin with the "standard" text appearance, the horizontal list of archives overflows off the right edge for certain screen widths. Can this be fixed? PBZE (talk) 22:52, 22 June 2024 (UTC)[reply]

It's not specific to Vector 2022, it happens with all skins when the available width is less than the width required. It just shows up more obviously with Vector 2022 because of the patronisingly-narrow width that has been forced on us "because people have difficulty reading long lines of text". --Redrose64 🌹 (talk) 23:03, 22 June 2024 (UTC)[reply]

Check out these two pages:

{{aan}}
User talk:EuroCarGT/Archives/2013/July (red link to User talk:EuroCarGT/Archives/2013)
{{talk archive}}
User talk:EuroCarGT/Archives/2013/July (blue link to User talk:EuroCarGT)

I came across this while converting pages that use {{archive}}+{{archive navigation}} to {{aan}} in order to merge {{archive}}. I haven't looked into solutions yet. Rjjiii (talk) 21:26, 6 July 2024 (UTC)[reply]

Pinging folks I see have edited the lua modules: @Mr. Stradivarius, Paine Ellsworth, DannyS712, Hilst, Toohool, Xaosflux, Pppery, and Andrybak:
Template:Archive constructs the link as [[{{{1|{{#ifexist:{{TALKSPACE}}:{{BASEPAGENAME}}|{{TALKSPACE}}:{{BASEPAGENAME}}|{{SUBJECTSPACE}}:{{BASEPAGENAME}}}}}}}|current main page]]. This template is calling mw.title.getCurrentTitle(). Rjjiii (talk) 12:32, 11 July 2024 (UTC)[reply]
@Rjjiii: Special:Diff/1234343052 seems to fix it (see User talk:Hilst/Archives/2013/July). Since you're a template editor, could you please sync the main module? – Hilst [talk] 21:40, 13 July 2024 (UTC)[reply]
Unfortunately, this seems to break one of the testcases at Template:Automatic archive navigator/testcases/TestArchive1. —⁠andrybak (talk) 21:55, 13 July 2024 (UTC)[reply]
 Fixed! Is this really intended behavior though?Hilst [talk] 22:04, 13 July 2024 (UTC)[reply]
Thanks Hilst, I've just pushed it live, Rjjiii (talk) 08:14, 20 July 2024 (UTC)[reply]

Getting ready to merge

There are now only a handful of pages left with both {{archive}} and {{archive navigation}} and they are locked to admins.[1] The other uses of both have been converted to only {{aan}}. Some pages are user talk pages like User talk:Alison/Archive 80. @Alison: I think you are an admin and can update your own pages? Feel free to ask questions about the transition from two templates to one. The user talk pages for SirFozzie like User talk:SirFozzie/Archive 10 are also locked and will need an admin to update. This page is also understandably locked: Wikipedia talk:Administrators open to recall/Archive 1. An admin will need to update it. Rjjiii (talk) 23:30, 20 July 2024 (UTC)[reply]