Template talk:Automatic archive navigator
![]() | Template:Automatic archive navigator 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 is the talk page for discussing improvements to the Automatic archive navigator template. |
|
Archives: 1Auto-archiving period: 120 days ![]() |
![]() | This template was nominated for deletion. Please review the prior discussions if you are considering re-nomination:
|
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)
- @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:
- Manual – Archive 1 and Archive 2
- Automatic by User:Shadowbot3 – archiving config was added in Special:Diff/113175592. Per-month archives from March 2007 (Special:Diff/115775580) till January 2008 (Special:Diff/183517497) were archived this way.
- Automatic by User:MiszaBot II and later User:lowercase sigmabot III – archiving config was added in Special:Diff/289456060 on 12 May 2009, starting with
|counter=14
. Subpages from Archive 14 till Archive 23 were archived automatically according to this config. Latest increment of|counter=
was done in Special:Diff/1180664388.
- A solution could be to unify the archival numbering system. Move:
- MediaWiki talk:Common.js/Archive Mar 2007 → MediaWiki talk:Common.js/Archive 3
- MediaWiki talk:Common.js/Archive Apr 2007 → MediaWiki talk:Common.js/Archive 4
- ...
- MediaWiki talk:Common.js/Archive Dec 2007 → MediaWiki talk:Common.js/Archive 12
- MediaWiki talk:Common.js/Archive Jan 2008 → MediaWiki talk:Common.js/Archive 13
- —andrybak (talk) 12:04, 26 May 2024 (UTC)
- 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)
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)
- 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)
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)
- 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)
The "current talk page" link will break for "/YEAR/Month" archives.
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)
- 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 callingmw.title.getCurrentTitle()
. Rjjiii (talk) 12:32, 11 July 2024 (UTC)- @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)- Unfortunately, this seems to break one of the testcases at Template:Automatic archive navigator/testcases/TestArchive1. —andrybak (talk) 21:55, 13 July 2024 (UTC)
Fixed! Is this really intended behavior though? –
Hilst [talk]
22:04, 13 July 2024 (UTC)- Thanks Hilst, I've just pushed it live, Rjjiii (talk) 08:14, 20 July 2024 (UTC)
- Unfortunately, this seems to break one of the testcases at Template:Automatic archive navigator/testcases/TestArchive1. —andrybak (talk) 21:55, 13 July 2024 (UTC)
- @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? –
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)
- Thanks for the ping :) I've manually updated all my archive pages, so I should be in the clear now. While I was at it, I went in and updated SirFozzie as well. He's not going to mind! - Alison talk 03:16, 22 July 2024 (UTC)
- I've also done Wikipedia talk:Administrators open to recall/Archive 1 - Alison talk 03:18, 22 July 2024 (UTC)