Template talk:Archive list

message: Could someone add:



to the end of the template, so that the parameter usage can be checked? MrKIA11 (talk) 18:29, 16 January 2008 (UTC)
replies: text: Tra (Talk) 18:54, 16 January 2008 (UTC)
replies: text: The new preprocessor changed the way  works, so could those 3 be changed to . Thanks, MrKIA11 (talk) 12:45, 11 February 2008 (UTC)
replies: text: --Patrick (talk) 13:43, 11 February 2008 (UTC)
thread_title:  Parameter Usage 

message: When contained within another template, this seems to have a limit of 36. No archive links above that number are displayed. See Talk:Anarchism, talk:George W. Bush, Wikipedia talk:WikiProject Opera. They contain an experimental new talkheader template, , which includes . In talk:Anarchism, you can see that this is happening in other templates that make use of this template as well, since a separate archive box is also posted. Can anyone fill me in on what's going on? 
PS I tested posting this template on its own without being contained in another template, and in that case it still doesn't display all archives, but it does go up to #39 instead of 36. Equazcion •✗/C • 02:25, 30 Mar 2008 (UTC)
replies: text: I've done some tests and it appears that the problem seems to come from having too many nested ParserFunctions. Rewriting the template to check if a given block of archives exists before linking to them might solve the problem; I'll have a go at this later. Tra (Talk) 12:02, 30 March 2008 (UTC)
replies: text:  It looks like you fixed it, Tra. Great job, thanks! Equazcion •✗/C • 17:38, 30 Mar 2008 (UTC)
thread_title:  Stops at 36 

message: Is there a reason why the template transcludes three non-existing template subpages which clutter up the "templates transcluded" list and look rather unsightly?  I expect that it was (once upon a time) to enable the use of the parameters to be tracked, but is it now necessary? If not, removing them would tidy up countless edit screens. Happy‑melon 21:35, 11 April 2008 (UTC)
replies: text: I was originally using them, so if no one else needs them, I don't mind removing them. MrKIA11 (talk) 23:03, 11 April 2008 (UTC)
replies: text: Thanks - much tidier! Happy‑melon 12:49, 12 April 2008 (UTC)
thread_title: Redlink transclusions

message: is transcluded into Wikipedia:Village pump/Archive header, which is then transcluded onto various pages, including Wikipedia:Village pump (proposals)/Persistent proposals/Archive 1 and Wikipedia:Village pump (proposals)/Persistent proposals/Archive 2.  I just created Archive 2, and if you look at Archive 1, it lists both Archive 1 and Archive 2, but Archive 2 does not.  I've cleared my cache, and it still shows that way.  I don't even have an idea of where to start looking as to why it's doing this. Anyone smarter than I am with at least as much curiosity? (And template know-how?)--Aervanath lives in the Orphanage 19:30, 19 September 2008 (UTC)
replies: text: They look fine to me. MrKIA11 (talk) 17:29, 20 September 2008 (UTC)
replies: text: Hmm. They look fine to me, now, too.  I guess the job queue hadn't caught up yet or something.  Oh well, problem solved.--Aervanath lives in the Orphanage 11:15, 21 September 2008 (UTC)
thread_title:  Weird bug 

message: How about checking for and adding a link to an archive index, e.g. "./Archive_Index"? —Apis (talk) 02:54, 3 February 2009 (UTC)
replies: text: In a lot of places where this could be useful, there would already be a link to the archive index. If this was implemented, to avoid duplicate links, we'd need to have a bot take out any existing links to the archive index. Tra (Talk) 14:48, 3 February 2009 (UTC)
thread_title:  Link to archive index 

message: We should replace this template's (and its siblings') current, coma-separated markup with a proper list, styled to render horizontally, like lists in navboxes, thus:
by using either  or applying class="hlist" and using wiki list markup, with asterisks. This will improve accessibility and more closely comply with HTML standards (strictly we should use hashes ("#") for an ordered list, but there's a dispute about how to display those horizontally). See also WP:HLIST. I'll add  pointer to this discussion, from a page where the technicalities of how to do this are better understood. Andy Mabbett (Pigsonthewing); Andy's talk; Andy's edits 11:22, 15 November 2011 (UTC)
thread_title:  Proper list markup 

message: this is a great module!  The only thing that seems to be missing is a way to make it display a max of one line or a max of ## archives from the end of the list... Currently, on Template:Teahouse questions navbox I'm using a workaround that is kind of hacky to accomplish my desired result and the code looks like:  Where it has to invoke itself again to get a count of the total archives and then perform a parser function to subtract nine (displays ten links) and start the list from there.  Also, you'll see that I have a double non-breaking space as a sep -- I don't know if you coded in an easier way to do that like "none" or "space" or something else for those that don't know entity codes.  Technical 13 (talk) 18:07, 3 July 2013 (UTC)
thread_title:  Limits 

message: Could someone make  into a wrapper for this template? It's basically the same thing with less functionality. — Scott • talk 22:07, 2 February 2014 (UTC)
thread_title:  Yearly archive list 

message: Setting  as empty isn't working. Compare:
:
::→ 
:
::→ 
— Scott • talk 22:16, 2 February 2014 (UTC)
thread_title:  Prefix parameter doesn't accept empty value 

message: Could someone please wrap a  around the "Template for move" tag. This will prevent the notice to be appended to every single instance were this template is used as is currently the case. Thank you,
Tvx1 (talk) 21:29, 13 February 2015 (UTC)
replies: text: Not done: Duplicate of the request at Template talk:Archive list long#Template-protected edit request on 13 February 2015. --Redrose64 (talk) 14:37, 14 February 2015 (UTC)
thread_title:  Template-protected edit request on 13 February 2015 

message: Hi, the TfD to merge in  closed as merge, so I'd like to move forward with that. I propose adding a parameter "format" to differentiate between the "long" format and this format, and to use the exponential search algorithm used in the lua module of archive list long to minimise the #ifexists parser function calls. Pinging  for the Lua part of the proposal. Martijn Hoekstra (talk) 12:08, 21 February 2015 (UTC)
thread_title:  Merge in archive list long 

message: I've made changes to the sandbox version of this module, in order to implement consensus reached in this TfD to merge  with . These changes also obsolete Module:Archives. Please let me know if you have any questions. Essentially, I've added a function to detect whether the format should be long or short. If long, the format is output in table form to be identical to the to-be-deleted . All testcases look fine. 1, 2, 3.
If you approve of the changes here, please migrate the sandbox version to mainspace. I will then make a request to migrate some changes on , and the TfD mentioned above will be complete. Thanks!
Mamyles (talk) 15:40, 16 May 2015 (UTC)
replies: text: — Martin (MSGJ · talk) 14:32, 18 May 2015 (UTC)
thread_title:  Template-protected edit request on 16 May 2015 

message: I reapplied my buggy edit plus fix to Module:Archive list/sandbox. Please check, and apply if it seems good. Thanks. Anomie⚔ 04:36, 30 December 2017 (UTC)
replies: text: , after a week of this lingering I don't think I'm the only one passing by this request. I'd love to help out but you don't give any clue as to what buggy-ness is being fixed, there's no testcases, and no clue which pages could be used in the template edit preview to show the effect of the change. There's no discussion here or at Template talk:Archive list to offer any clue either. Could you provide some more info to help us help you? Cabayi (talk) 11:51, 6 January 2018 (UTC)
replies: text:  I made the original edit so I could use this module to display the archives of my talk page, which are currently named from User talk:Anomie/Archives/2007 through User talk:Anomie/Archives/2017. With the current version of the module, it claims there are no archives because there is no User talk:Anomie/Archives/1, despite  having a  to specifically say that 2007 is the first archive. Anomie⚔ 23:08, 6 January 2018 (UTC)
replies: text:   Anomie⚔ 23:09, 6 January 2018 (UTC)
replies: text: So, using 's talk archives as the affected pages, if I edit  and preview with User talk:Anomie, alter  to use Module:Archive list/sandbox instead of Module:Archive list and preview again it should show the fix in action... Yep, looks good, doesn't affect previews of my talk (via User:Cabayi/arc) which has "standard" naming...  Done ~ Glad to be able to help out an editor whose tools we all rely on. -- Cabayi (talk) 13:00, 7 January 2018 (UTC)
thread_title:  Someone check this please 

message: Thoughts on merging  here? That would make essentially all templates that can auto detect sequential archives able to auto detect annual archives as well. The prize of this would be more ifexists though. Full disclosure that I haven't looked into implementation details. --Trialpears (talk) 22:12, 13 August 2021 (UTC)
thread_title:  Yearly archive list merger 

message: Description of suggested change:
For long archive lists (like Template:Arbitration_enforcement/Archive_navbox), it can be easier to read if the first column starts on a round number to guide the eye (plus, it just looks slightly nicer to me =])
Archive links usually start at 1 (not 0), so numbers in the first column are otherwise off by one from being multiples of the column count.
I made a copy in my Module:Sandbox and added a param to leave the first cell blank. I left it off by default to not disrupt existing behavior, since this seems to be transcluded in a lot of places, but this really meant for the smaller fraction of really long archive infoboxes that start to look like a heap of numbers.
See User:Mlkj/sandbox for an example with the WP:AE archives box.
Here's what that looks like also on a small test table:
{| style="width:100%"	
{| style="width:100%"	
{| style="width:100%"	
{| style="width:100%"	
{| style="width:100%"	Without the param
{| style="width:100%"	
{| style="width:100%"	
{| style="width:100%"	
{| style="width:100%"	
{| style="width:100%"	With the param
Diff:
(This mostly just adds a lines in a few different places, so I made a unidiff instead of fighting )
--- a   2022-10-06 15:26:44.286871269 +0200 
+++ b   2022-10-06 15:26:27.142792894 +0200 
@@ -161,6 +161,15 @@ local function getStart( start ) 
     end 
 end 
  
+-- Get whether to leave a blank cell in the first row and column 
+-- If links start at 1, and lineNum is a round number, this aligns the first 
+-- column to start on a multiple of lineNum, which may be a nice round number 
+local function getLeaveFirstCellBlank( leaveFirstCellBlank ) 
+    return leaveFirstCellBlank == 'yes' 
+       or leaveFirstCellBlank == 'y' 
+       or leaveFirstCellBlank == 1 
+end 
+ 
 -- Process the separator parameter. 
 local function getSeparator( sep ) 
     if sep and type(sep) == 'string' then 
@@ -221,6 +230,11 @@ local function generateLinks( glargs ) 
     if glargs.isLong == true then --Long version is a table 
        table.insert(ret, "") 
     end 
+    if glargs.leaveFirstCellBlank then 
+       -- An empty first cell aligns the first column on multiples of lineNum 
+       table.insert(ret, sep) 
+       lineCounter = lineCounter + 1 
+       end 
     for archiveNum = start, glargs.max do 
         local link = mw.ustring.format( 
             '%s%d', 
@@ -266,6 +280,7 @@ local function _main( args ) 
     local max = getBiggestArchiveNum( prefix, start, args.max ) 
     local sep = getSeparator( args.sep ) 
     local lineSep = getSeparator( args.linesep ) 
+    local leaveFirstCellBlank = getLeaveFirstCellBlank( args.leavefirstcellblank ) 
     local glargs = { 
         start = start, 
         max = max, 
@@ -274,7 +289,8 @@ local function _main( args ) 
         isLong = isLong, 
         sep = sep, 
         lineNum = lineNum, 
-        lineSep = lineSep 
+        lineSep = lineSep, 
+        leaveFirstCellBlank = leaveFirstCellBlank 
     } 
     return generateLinks( glargs ) 
 end 
Mlkj (talk) 13:57, 6 October 2022 (UTC)
replies: text: For future reference the best way to request complicated code changes is to make the change yourself to the module's sandbox (in this case Module:Archive list/sandbox) not produce a unified diff. * Pppery * it has begun... 16:30, 8 October 2022 (UTC)
replies: text:  Noted, thank you. Mlkj (talk) 18:47, 8 October 2022 (UTC)
thread_title:  Edit request: Add param to leave the first cell blank 6 October 2022