Jump to content

Template talk:Archive

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
(Redirected from Module talk:Archive)

Ready to merge

[edit]

Per discussions at the other two templates,[1][2] I think this is ready to merge. In case there are any unexpected issues, perhaps the code from Template:Automatic archive navigator should be copied over first, and then the modules and subpages moved over? The remaining uses of Template:Archive navigation are a bunch of weird quirky things and won't affect replacing this template with {{automatic archive navigator}}. Rjjiii (talk) 05:14, 22 July 2024 (UTC)[reply]

Now merging the two templates, Rjjiii (talk) 00:52, 27 July 2024 (UTC)[reply]
Template talk:Automatic archive navigator got archived while I was writing up a reply to you :V. Regardless, many thanks for finishing up the merge and reporting issues, I really appreciate it! – Hilst (talk | contribs) 01:17, 27 July 2024 (UTC)[reply]
Oh, shoot, sorry about that. I appreciate the work you put in and your patience with my questions. (I moved that talk page over to Template talk:Archive/Archive 2 here since it contains discussions about the current code base of the template.) Rjjiii (talk) 01:21, 27 July 2024 (UTC)[reply]

Template-protected edit request on 28 July 2024

[edit]

Please move the config page from Module:Automatic archive navigator/config (under a redirect) to Module:Archive/config, and perform the following edit to the main module:

Line 342: Line 342:
function p._aan(args, cfg, currentTitle) function p._aan(args, cfg, currentTitle)
cfg = cfg or mw.loadData('Module:Automatic archive navigator/config') cfg = cfg or mw.loadData('Module:Archive/config')
currentTitle = currentTitle or mw.title.getCurrentTitle() currentTitle = currentTitle or mw.title.getCurrentTitle()
local aan = Navigator.new(args, cfg, currentTitle) local aan = Navigator.new(args, cfg, currentTitle)

Hilst (talk | contribs) 12:45, 28 July 2024 (UTC)[reply]

This should be done. There is one other template invoking Module:Automatic archive navigator/config, {{Automatic archive navigator editsection}}. JPxG, that second template appears to only be used in your user space. Do you mind moving the module and making the change above to Module:Archive and Module:Automatic archive navigator editsection. Rjjiii (talk) 21:26, 28 July 2024 (UTC)[reply]
Yes, but I will have to be pinged about it later, because I am too tired at the moment to commit to some big-ass thing where I have to sit around for half an hour and make sure I do not break everything. jp×g🗯️ 21:40, 28 July 2024 (UTC)[reply]
Ah, I did not realize I was asking a big-ass thing. Let me go ahead and knock out most of it. Rjjiii (talk) 20:01, 29 July 2024 (UTC)[reply]
@Hilst: I've done the above and also moved over the /doc and /sandbox pages. There are two sets of testcases pages that I haven't moved over yet.[3] None of these are template-protected, but if you don't feel comfortable moving them, I can move these also. @JPxG: I did the changes requested above. Because moving a module leaves a redirect behind, Module:Automatic archive navigator editsection will continue to function as it did before; you can update whenever you wish. I had reached out because I've been avoiding messing with any of the custom userspace headers while merging these templates; some are pretty complex and specific-to-the-person. Rjjiii (talk) 20:18, 29 July 2024 (UTC)[reply]
 Done. – Hilst (talk | contribs) 21:56, 29 July 2024 (UTC)[reply]
[edit]

Repeating my previous request, before this template was merged with {{aan}}:

To reduce the number of clicks needed to return to the page under discussion, can we add a link to change:

This page is an archive of past discussions.

to something like:

This page is an archive of past discussions about Example.

Are there any edge cases where this would not be appropriate, that need to be catered for? Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 15:36, 28 July 2024 (UTC)[reply]

@Pigsonthewing: I've added it to the sandbox version (sorry for taking so long :V), check it out at Template:Archive/testcases and User talk:Hilst/sandbox. @Rjjiii: Any thoughts? – 🌻 Hilst (talk | contribs) 12:37, 3 October 2024 (UTC)[reply]
@Hilst: LGTM, thank you. I have template editor rights, if you need someone to implement it. Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 18:18, 3 October 2024 (UTC)[reply]
Go ahead! :) – 🌻 Hilst (talk | contribs) 21:02, 3 October 2024 (UTC)[reply]
No objections here, Rjjiii (talk) 18:21, 4 October 2024 (UTC)[reply]

New parameters discussion

[edit]

Copying a post from Steel1943 below:

@Rjjiii: I noticed some of these abnormalities as well, and had actually started manually editing some transclusions to conform with what seemingly needs to be done here. And ... you may the best editor to ask this, given I saw your work on Module:Archive and since I'm not very versed in editing modules/Lua: In Template:Archive, did 1=1 function like it does prior to you performing your edits? (After reviewing the edit history of Template:Archive/doc, it looks like it did not, but feel free to correct me if I'm wrong there.) If not, is it possible for that to instead of hiding just the text in the article box to hide the entire archive box, leaving just the navigational links below it? Steel1943 (talk) 16:19, 2 October 2024 (UTC)

Responding here so that the discussion will be easier to locate for future editors. I'm not so great with Lua either tbh; if you look at the sandbox histories, you'll see that I've mostly been discussing, testing, and cleaning up talk pages.

The sandbox now has |omit=banner to omit the whole box. There is almost certainly a better way to code that if you flag down someone better with lua modules. It worked okay when I previewed {{archive/sandbox|omit=banner}} on a few of the odd pages. |next= and |previous= are already available, but for some pages like Wikipedia talk:WikiProject Middle-earth/archive10 it probably makes more sense to move the page. Rjjiii (talk) 06:19, 3 October 2024 (UTC)[reply]

@Hilst: I only added a parameter because I was unsure how "1=1" was currently being used. In your recent sandbox update (much appreciated!), the sandbox version now omits the banner for "1=1". If that works fine on the pages currently doing it, then "omit=banner" can just be removed entirely. That's closer to what Steel1943 had proposed anyway. Rjjiii (talk) 18:20, 4 October 2024 (UTC)[reply]
@Rjjiii: I think omit can be kept, since we could do something like |omit=links, which would keep only the banner. – 🌻 Hilst (talk | contribs) 20:30, 4 October 2024 (UTC)[reply]
Okay, that makes sense. Do you have any example pages with |1=1 so I can preview them? Rjjiii (talk) 21:18, 4 October 2024 (UTC)[reply]
Only one I know of is this template's testcases page. – 🌻 Hilst (talk | contribs) 23:32, 4 October 2024 (UTC)[reply]
Yeah, it's been in Template:Automatic archive navigator since the beginning,[4] but I don't see any usage on actual archives. "|omit=<whichever>" is probably more clear. Rjjiii (talk) 03:28, 5 October 2024 (UTC)[reply]