![]() | Template:Archive 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 Archive template. |
|
Archives: 1, 2, 3Auto-archiving period: 28 days ![]() |
![]() | This template was nominated for merging. Please review the prior discussions if you are considering re-nomination:
|
I tried adding this template to Wikipedia talk:WikiProject Military history/Requests for project input/Archive 1 but it generated incorrectly.
It says:
What is should say is:
This template cannot be used on talk pages.
Hawkeye7 (discuss) 17:56, 11 December 2024 (UTC)
cannot be used on talk pages.– 🌻 Hilst (talk | contribs) 20:37, 11 December 2024 (UTC)
|text=
parameter for a hand-written message.[1] I don't know if there's a clever solution to the many different usages of subpages. Before Andy Mabbet's suggestion,[2] the archive banner templates just didn't give a link. Rjjiii (talk) 02:44, 12 December 2024 (UTC)isRedirect
. There are also Module:Redirect and Module:Pagetype so between these three, I'm sure it's covered. Gonnym (talk) 11:04, 12 December 2024 (UTC)@Hawkeye7: The current version of the sandbox should be linking to correct pages now. The logic that is handling this is quite hacky, but it works. If anyone is able to clean it up then go ahead. Otherwise, ping me if any problems appear. – 🌻 Hilst (talk | contribs) 15:54, 25 December 2024 (UTC)
I am testing something in the sandbox. Check out the fake archives for User talk:Rjjiii (ii), such as User talk:Rjjiii (ii)/Archive 2004. Is this a better way to handle annually archived pages? Is the {{Annual archive}} method better? Pinging DMacks who raised the issue regarding Wikipedia talk:WikiProject Chemicals/Archive 2015 above for thoughts, Rjjiii (talk) 07:39, 21 January 2025 (UTC)
Per the discussions at Wikipedia:Templates for discussion/Log/2025 April 25#Template:Annual archive, {{annual archive}} redirects to this template. Its various parameters are not needed by {{archive}} because Module:Archive extracts them from the page title. In the merge proposal, I mentioned several ways to change to the blurb text generated by this template:
|text=
parameter will replace the default blurb with anything an editor writes.{{archive|type=archive}}
will give nearly the same language as used by the former {{annual archive}}. Nobody mentioned a desire for this ability or objected to it in the merge discussion. If "type=archive" goes unused, it can be removed from the module.Rjjiii (talk) 01:37, 6 May 2025 (UTC)
__NONEWSECTIONLINK__
, as it used to be in the annual archive? I used it specifically because it didn't have this option. Primefac (talk) 12:50, 11 May 2025 (UTC)
__NOEDITSECTION____NONEWSECTIONLINK____ARCHIVEDTALK__
were added to Template:Annual archives over the past few years [3][4] to match {{archive}}. Module:Archive#L-452 will suppress them with {{archive|demospace=yes}}
. This was added by Gonnym, but I don't think it's documented on the /doc page. What's the use case for needing new section links on a page with an archive banner? Rjjiii (talk) 01:53, 12 May 2025 (UTC)
I set up my talk page archives with arbitrary names. I created a page User talk:Anomalocaris/archivelist, with contents
:[[User talk:Anomalocaris/Archive 2006–2013|2006–2013]] • [[User talk:Anomalocaris/Archive 2014|2014]] • [[User talk:Anomalocaris/Archive 2015|2015]] • [[User talk:Anomalocaris/Archive 2016|2016]] • [[User talk:Anomalocaris/Archive 2017|2017]] • [[User talk:Anomalocaris/Archive 2018|2018]] • [[User talk:Anomalocaris/Archive 2019|2019]] • [[User talk:Anomalocaris/Archive 2020|2020]] • [[User talk:Anomalocaris/Archive 2021|2021]]
which displays as
This page is explicitly linked by User talk:Anomalocaris, where the page begins
{{Archives | archivelist = /archivelist | search=yes}}
This creates an Archives search box in the upper right corner of my user talk page. I strongly believe that this affected my user talk archive pages as well. At the top, they all begin
{{Talk archive}}
Maybe I'm wrong, but I though that this used to automatically display the contents of User talk:Anomalocaris/archivelist. But now, the first archive page, with a less-standard name, has no horizontal list of wikilinked archive pages, and the rest of the archive pages, with year-numbered names, have a horizontal list of wikilinked archive pages, omitting the non-standard 2006–2013. Am I right that a capability was removed, and if so, is there still a way to get the behavior I used to get, and if it was removed and there is no current markup that works, please restore the old system that did work. —Anomalocaris (talk) 00:57, 12 May 2025 (UTC)
|omit=archives
to suppress the navigational links. If you want to transclude that userspace list of archives, you could use {{archive|omit=archives}}{{center|{{User talk:Anomalocaris/archivelist}}}}
either on an archive page, or on a separate userpsace page to be transcluded.