→Archive banner addition: new section |
|||
Line 291: | Line 291: | ||
:[[File:Red information icon with gradient background.svg|20px|link=|alt=]] '''Not done for now:''' please establish a [[Wikipedia:Consensus|consensus]] for this alteration '''[[Wikipedia:Edit requests|before]]''' using the {{tlx|edit template-protected}} template.<!-- Template:ETp --> – [[User:Jonesey95|Jonesey95]] ([[User talk:Jonesey95|talk]]) 23:31, 17 September 2020 (UTC) |
:[[File:Red information icon with gradient background.svg|20px|link=|alt=]] '''Not done for now:''' please establish a [[Wikipedia:Consensus|consensus]] for this alteration '''[[Wikipedia:Edit requests|before]]''' using the {{tlx|edit template-protected}} template.<!-- Template:ETp --> – [[User:Jonesey95|Jonesey95]] ([[User talk:Jonesey95|talk]]) 23:31, 17 September 2020 (UTC) |
||
::Also {{u|Terasail II}}, please don't paste code blobs and demos into the talk page. Use [[Template:Archives/sandbox|the sandbox]] for your proposed code changes, and [[Template:Archives/testcases|the testcases page]] to demonstrate; more at [[WP:TESTCASES]]. This will keep the talk page focused on the actual discussion. --[[User:Redrose64|<span style="color:#a80000; background:#ffeeee; text-decoration:inherit">Red</span>rose64]] 🌹 ([[User talk:Redrose64|talk]]) 09:39, 18 September 2020 (UTC) |
::Also {{u|Terasail II}}, please don't paste code blobs and demos into the talk page. Use [[Template:Archives/sandbox|the sandbox]] for your proposed code changes, and [[Template:Archives/testcases|the testcases page]] to demonstrate; more at [[WP:TESTCASES]]. This will keep the talk page focused on the actual discussion. --[[User:Redrose64|<span style="color:#a80000; background:#ffeeee; text-decoration:inherit">Red</span>rose64]] 🌹 ([[User talk:Redrose64|talk]]) 09:39, 18 September 2020 (UTC) |
||
== Archive banner addition == |
|||
I have changed the ''large'' parameter to a ''banner'' parameter and then altered parts of the template in order to give the same appearance as the [[Template:Archive banner]]. They are not identical. I have chekced and I think it works fine however some parameters such as ''search-width'' will not do anything if it is in banner mode as well as bypassing the long switch for the Archives list to just a numbered horizontal list. I did also have to remove the ''class="mbox-text"'' from the header cell in banner mode becuase it was stopping the formatting and since I don't know what that does it might break something? It is at the bottom of the [[Template:Archives/testcases]]. Just wondering peoples oppinions on this and if it is all good before I request for it to be added to the main code again. [[User:Terasail|<span style="color:DarkCyan; font-family:Impact;">Terasail</span>]][[User talk:Terasail|<sup><span style="color:Black; font-family:Trebuchet MS;">[Talk]</span></sup>]] 20:38, 18 September 2020 (UTC) |
Revision as of 20:38, 18 September 2020
Index
|
||
Stops at "Archive 48"
In Wikipedia_talk:Manual_of_Style, the last link is to #48, but there are 125 archives. I can't visit the latests archives from the template because they are not linked at all. Talk:Homeopathy already has 48 archives and will hit this problem soon.
Is this a technical limitation of loops in wikipedia templates? Is there a go-around that doesn't involve a hand-made list of archives?
(By the way, the template uses "&preload=Template:Archives/Preload" in a link, but Template:Archives/Preload is a red link. Looks like old code that could be removed safely.) --Enric Naval (talk) 12:53, 6 September 2011 (UTC)
- Note that {{Talkheader}} displayed all 125 links. --Enric Naval (talk) 22:56, 6 September 2011 (UTC)
- I'm here to note that too. I see the limit was expanded from 20 above. Just get rid of the limit altogether. We can collapse it if we want to. There is never any valid reason to hide the most recent archives.
- If the template must for some programming reason include a limit at all, set it absurdly high, like one or two thousand. That should get WP talk:MOS through 2013 or so. — LlywelynII 02:50, 17 September 2011 (UTC)
- Ok, found the problem. {{archive list long}} is employed by this template to do its searching and that template stops at 48. The name is a gross misnomer, since {{archive list}} tout suite stops at 200. — LlywelynII 03:03, 17 September 2011 (UTC)
- To reduce overhead, can we add a parameter indicating the last archive number? For example:
- {{archives|searchfrom=48}}
- It display 48 links, then start searching and linking archive 49, 50, etc. Archival bots could be instructed to update that number. --Enric Naval (talk) 10:58, 26 September 2011 (UTC)
- Until anyone fixes this (I've previously brought it up at WP:VPT) the workaround noted at Template talk:Archive list long will do the job. --Trevj (talk) 18:53, 3 October 2011 (UTC)
- Ok, found the problem. {{archive list long}} is employed by this template to do its searching and that template stops at 48. The name is a gross misnomer, since {{archive list}} tout suite stops at 200. — LlywelynII 03:03, 17 September 2011 (UTC)
Does Lua offer a solution for this? Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 20:12, 22 March 2013 (UTC)
- Fixed awhile ago by redirecting "archive list long" to "archive list" and using Module:Archive list to check for archives. The module checks every 1000, 200, 50, 20 and 1 archives and by not checking every archive the limit now is 500,000 archives.--Snaevar (talk) 15:22, 3 August 2015 (UTC)
Edit request: table padding
Text and other content is butted right up against the borders. This is unattractive and readability suffers.
Removing border-collapse:collapse;
and adding padding: 1em;
would be an improvement. —Michael Z. 2013-06-21 15:28 z
- Being able to add padding would make this template look better. Could someone do this? It would be such a service. A L T E R C A R I 09:11, 5 May 2017 (UTC)
Add padding: 1em;
. —A L T E R C A R I ✍ 13:48, 27 May 2017 (UTC)
Redlinks
Since whatever recent modifications, the links to newly-created archive pages more often than not appear as redlinks, even though the archive page can still be accessed just fine. In one case, I changed {{Archives}} to {{archives}} on the page, and the previous redlink started appearing as blue. That wasn't the case with another page, though in that case, the link appeared as blue in preview mode, but appeared as red when I saved the page. RadioKAOS / Talk to me, Billy / Transmissions 18:02, 13 July 2015 (UTC)
- @RadioKAOS: It's not a fault in this template. There has always been an issue with redlinks not turning blue immediately upon creation of the linked-to page (and also with bluelinks not turning red immediately after a deletion). Usually, all you need do is WP:PURGE the page that has the wrongly-coloured link. An edit (even a WP:NULLEDIT) will also work, but unless you actually need to change the page, a purge is preferable. --Redrose64 (talk) 21:07, 13 July 2015 (UTC)
Edit request
Edit request to add a parameter |endnote=
to the archive box, to allow users to add a custom line of text to the end of the archive box, beneath any other content (bot note, search button, etc). Modifications exist in the sandbox and test-cases. Alex|The|Whovian? 00:47, 17 March 2016 (UTC)
- Not done: please establish a consensus for this alteration before using the
{{edit template-protected}}
template.- My immediate thoughts are that this could (not assuming good faith = would) be misused and/or cause incontinuity. fredgandt 02:02, 17 March 2016 (UTC)
- Care to explain how? Alex|The|Whovian? 02:02, 17 March 2016 (UTC)
- Other than being a new and exiting source of fun for passing vandals (good faith just tuned in its grave), the template is already fairly customisable. Adding another way to change the configuration (without restriction?) could render the variety of instances - for want of a better word - messy. Whilst mess isn't exactly the end of the world, it can be offputting, especially on talk pages which already have WikiProject banners, and talk page notices and archive boxes etc. all over the top (and the pages most likely to need archiving will be the busy ones which are often projectified). In these cases, yet another source of special notice that affects the use (by instruction or advice?) of the page, could be seen as practically disruptive.
- I feel (and other than asking for consensus, all this is just my opinion) that if anything particularly special needs to be said about any instance of an archive, it should probably be said in a way that requires a separate template or agreed other version of this. Templating is after all, an exercise in simplified continuity. fredgandt 02:18, 17 March 2016 (UTC)
- Thank you for your opinion. I'll just do it how I've done it on my user talk page - basically exactly the same, just (thinking) outside the box. Alex|The|Whovian? 02:25, 17 March 2016 (UTC)
- As a fellow Wikipedia user I encourage you to seek consensus. The Wisdom of Crowds makes my opinion a drop in the ocean, no more or less valuable than all the others. And yes, I really am this reasonable. wp:IDLI covers something I hold dear, my principle that "If you can't beat 'em, join 'em" is one of the stupidest things anybody has ever said. Think outside the box! Even if this exact request is not done, it could lead to the creation of something of a compromise. fredgandt 02:38, 17 March 2016 (UTC)
- Thank you for your opinion. I'll just do it how I've done it on my user talk page - basically exactly the same, just (thinking) outside the box. Alex|The|Whovian? 02:25, 17 March 2016 (UTC)
- Care to explain how? Alex|The|Whovian? 02:02, 17 March 2016 (UTC)
- My immediate thoughts are that this could (not assuming good faith = would) be misused and/or cause incontinuity. fredgandt 02:02, 17 March 2016 (UTC)
Unnamed parameter
Can somebody provide some more detailed documentation and/or examples on how the first unnamed parameter works? Attempting to use it as for example on Talk:Caesium, where the current archive of the page is at Talk:Caesium/archive1, does not seem to work. Passing |archive1 to the template simply adds "archive1" as text beneath the automatically-generated Archive_1 (red)link. --superioridad (discusión) 11:49, 15 April 2017 (UTC)
- @Superiority: It's a free-form parameter, whatever you put in here is displayed "as-is" with no further processing. You can use it to create custom lists. --Redrose64 🌹 (talk) 17:10, 15 April 2017 (UTC)
Using {{archives}} within an archive page
Apologies if this is a silly question. I've just archived my talk page for the third time, and while the links to my archived pages appear on my talk page, within the archives themselves the navbox reads, "no archives yet (create)", making navigation awkward. What am I missing? nagualdesign 09:16, 5 July 2017 (UTC)
- @Nagualdesign: Add
|root=User talk:Nagualdesign
or|root=User talk:{{BASEPAGENAME}}
to the uses of the template in your archives. Jc86035 (talk) Use {{re|Jc86035}}
to reply to me 09:49, 5 July 2017 (UTC)
Template-protected edit request on 26 September 2017
Please add .6em padding between the image and the top border, and some space between the search box and the button (with break=yes), as shown in this sandbox edit. It would make the box look less cramped, see the testcases. Thank you. Atón (talk) 21:47, 26 September 2017 (UTC)
- Done. PS: If those were your attempts to fix the "first entry in a list doesn't show up right" issue, the fix is to use
<nowiki />
on the line before the list starts (i.e.{{Archives|1=<nowiki />
, then a newline, then the enclosed list). This affects all templates that wrap lists that are given in WP's native*
or#
format. — SMcCandlish ☺ ☏ ¢ ≽ʌⱷ҅ᴥⱷʌ≼ 00:53, 27 September 2017 (UTC)
Template-protected edit request on 5 December 2018
Please replace the contents of this template with revision 872077031 of the template sandbox. This change keeps the image aligned in the center when the collapsible
or collapsed
parameter is set to yes
. An illustration of the change is available in the fourth test case ({{Archives|collapsed=yes}}
) at Template:Archives/testcases. Thank you. — Newslinger talk 05:09, 5 December 2018 (UTC)
Sandbox proposal: Check for unk parameters
{{Archives/sandbox}} is currently used to prepare a merge (discussion). Trialpears is leading the development in here, I understand.
I made two minor code changes [1], revert without discussion is OK.
I also proposed-by-edit [2] to add Module:Check for unknown parameters. It has 29 parameters now. (And I reverted this one, so as not to interfere with other editing. IOW, up to Trialpears to accept implementation).
When accepted, todo (see also test/comments in code): create Category:Pages using Archives with unknown parameters, under Category:Unknown parameters etc. -DePiep (talk) 17:11, 23 November 2019 (UTC)
- DePiep, adding check for unknown parameters seems sensible. ‑‑Trialpears (talk) 01:14, 24 November 2019 (UTC)
Annual archiving compatibility
Is it possible to make this compatible with annual archiving? The current guidelines indicate The auto-generated archive list requires subpages to use the common naming convention. That is, "{{PAGENAME}}/Archive 1", "{{PAGENAME}}/Archive 2", and so on
. If the archive starts at e.g. "/Archive_2016" then follows numerically upwards from that, would it be possible to spot those, even if pages /Archive_1...2015 are omitted? T.Shafee(Evo&Evo)talk 02:16, 30 November 2019 (UTC)
- Possibly via inclusion of something like
{{Yearly archive list|prefix = Archive }}
? T.Shafee(Evo&Evo)talk 06:43, 30 November 2019 (UTC)
Documentation issues / Archive Box merge
I consider myself baseline programming savvy but I cannot understand the current documentation.
The explanation for the "1st unnamed parameter" says Can be used in addition to automatic archiving if additional pages with other names are available.
Can be used? How? Why? This explains nothing to me. It seems it has something to do with cases where archive pages have non-standard names, but it doesn't say that, and it doesn't say when you should use it and when you should not, and it doesn't say how or what values it takes.
Also, am I supposed to understand auto=no is what turns the the template's behaviour into that of the legacy {{Archive Box}}
whoich just was turned into a redirect here? More context, please.
(And I don't request explanations here to me on talk, I want the documentation to be improved) CapnZapp (talk) 09:35, 8 December 2019 (UTC)
- CapnZapp, I've done some updates to the documentation, feel free to take a look. auto=no is usually not necessary; only when the archive list is given in the title like on your talk page or some other uncommon ways. ‑‑Trialpears (talk) 11:01, 8 December 2019 (UTC)
Same as list parameter, but can be used together with an automatic list
Am I supposed to understand the unnamed but not the named list parameter can be used together with the automatic list, or why the "but" in this sentence? Cheers CapnZapp (talk) 11:43, 8 December 2019 (UTC)The title is automatically linked to the archive index page if one is specified, otherwise a wiki link may be specified here.
Isn't the logic here a bit hard to follow? The first part seems to say that the title becomes a link if "the archive index page" (is that the index parameter?) is specified; does that mean a supplied title is otherwise unlinked? (Unless you specifically include a wikilinked title, I guess). (Judging from my own talk setup, I am assuming the answer here is "yes" :) CapnZapp (talk) 11:50, 8 December 2019 (UTC)
Broken usage
If you look at my talk page I used Archive Box in a configuration Archives doesn't seem to support. My archive page is /Archive and not Archive_1. (In anticipation of not needing to have a multi-page archive; also I was rather fresh when I decided on my scheme)
Somehow the linked "1" (or "Archive 1") was added, which wasn't there before (at least I can't remember it being there before, but now I have no way of checking. But I know I wouldn't have been satisfied with my setup if that extraneous and wrong link was there. User:Trialpears tweaked the parameters, but as you can read above, and from comparing the before and after, I don't see the point. IIRC you clicked the header itself, and yes, that still leads to the correct (and only) archive.
Please fix, as Samsung would say :)
More in general, those responsible for the Archive Box > Archives move/merge/whatev need to know their migration is not flawless.
Have a nice day CapnZapp (talk) 09:43, 8 December 2019 (UTC)
- CapnZapp, fixed. Will have another look through so nothing else looks amiss at other places. Thanks for reporting the bug! ‑‑Trialpears (talk) 10:19, 8 December 2019 (UTC)
Formatting error
I'm noticing a small formatting error in the way this template displays at Wikipedia:Editor_assistance/Requests. Archive 110 has its own line for some reason. Is that issue appearing elsewhere, too; could it be fixed? Sdkb (talk) 20:34, 19 March 2020 (UTC)
- This seems to be an issue with how Template:Archive list interacts with this template. It is probably related to the merge of templates in 2019. Trialpears may be able to advise — Martin (MSGJ · talk) 13:21, 6 July 2020 (UTC)
Formating when collapsed
Currently the show/hide button appears on a separate row before the picture or the title ("Archives"). Could this be combined into one line like is done with {{Archive box collapsible}}? I've tried to implement this with no success. This seems to be stemming from the conversion of the template to html table markup a few years ago. MSGJ do you think you could help me out since you made the conversion? --Trialpears (talk) 11:17, 6 July 2020 (UTC)
- Can you give me an example? I have no memory of working on this template! — Martin (MSGJ · talk) 13:22, 6 July 2020 (UTC)
Archives
|
Archives
|
- MSGJ It was a while (8 years) ago, but I thought you may have the required expertise anyway. The problem can be seen with a call such as {{Archives|collapsed=yes|image = none|[[/Archive 1]]}} where there is an unnecessary newline between the show button and the title. This is not the case for {{Archive box collapsible}} where both are on the same line. It's not really a big issue, but I thought it would be better to make this small improvement before suggesting consolidating both versions. --Trialpears (talk) 21:24, 6 July 2020 (UTC)
- See the testcases, search for
|collapsed=yes|image=none
; but observe what happens to the image in the testcase immediately above. --Redrose64 🌹 (talk) 16:03, 7 July 2020 (UTC)- Thanks! I added a conditional to only remove it when there is no image which seems to have fixed this issue. Added a new test case for non-collapsed no image boxes. Everything behaving fine. I'll implement this shortly if no one has any problems with it. --Trialpears (talk) 22:18, 7 July 2020 (UTC)
- Done --Trialpears (talk) 20:12, 8 July 2020 (UTC)
- Thanks! I added a conditional to only remove it when there is no image which seems to have fixed this issue. Added a new test case for non-collapsed no image boxes. Everything behaving fine. I'll implement this shortly if no one has any problems with it. --Trialpears (talk) 22:18, 7 July 2020 (UTC)
- See the testcases, search for
- MSGJ It was a while (8 years) ago, but I thought you may have the required expertise anyway. The problem can be seen with a call such as {{Archives|collapsed=yes|image = none|[[/Archive 1]]}} where there is an unnecessary newline between the show button and the title. This is not the case for {{Archive box collapsible}} where both are on the same line. It's not really a big issue, but I thought it would be better to make this small improvement before suggesting consolidating both versions. --Trialpears (talk) 21:24, 6 July 2020 (UTC)
- I just found
{{show button}}
. Does it offer a more elegant solution? It's used in{{WikiProject banner shell}}
. --Redrose64 🌹 (talk) 18:47, 19 July 2020 (UTC)
Template-protected edit request on 16 July 2020
Makes the alignment less messed up when collapsed. See last testcase.
- Diff: Special:Diff/966723923/968002301
- Testcases: Template:Archives/testcases
ProcrastinatingReader (talk) 16:29, 16 July 2020 (UTC)
"Template:Archive box non-auto" listed at Redirects for discussion
A discussion is taking place to address the redirect Template:Archive box non-auto. The discussion will occur at Wikipedia:Redirects for discussion/Log/2020 July 16#Template:Archive box non-auto until a consensus is reached, and readers of this page are welcome to contribute to the discussion. --Trialpears (talk) 18:10, 16 July 2020 (UTC)
Template-protected edit request on 16 July 2020
Adds support for large box with |large=yes, to aid in merge of Template:Archive box collapsible.
- Diff: Special:Diff/968003224/968016441
- Testcases: Template:Archives/testcases (see last one)
ProcrastinatingReader (talk) 18:17, 16 July 2020 (UTC)
- Done --Trialpears (talk) 09:59, 17 July 2020 (UTC)
Common formatting errors
When this template isn't at the bottom of the talk notices it messes up talk page formatting (example: Talk:Antisemitism in the Arab world). Not sure exactly how many are affected, but I constantly run across this issue, especially on more poorly maintained talk pages. Thoughts on cleaning this up, I guess a bot would do it? ProcrastinatingReader (talk) 14:48, 28 August 2020 (UTC)
- It needs to be considered in conjunction with WP:TALKORDER. --Redrose64 🌹 (talk) 20:17, 28 August 2020 (UTC)
Template-protected edit request on 4 September 2020
It would be good to be able to go directly to the article page from an archived talk page. I suggest adding the link to the article next to the link to the main talk page, on the top left, just below "From Wikipedia, the free encyclopedia". See for example Talk:Black_hole/Archive_14. Vpab15 (talk) 21:34, 4 September 2020 (UTC)
- Not done: (not an admin or template editor) That can't be added using this template, as this appears on the main talk pages. It could be done on a template like {{Archive}} or {{Automatic archive navigator}}, but you would need to make a specific edit request (i.e. tell us how to do it) on the talk page of one of those templates. I would be happy to help. Danski454 (talk) 21:58, 4 September 2020 (UTC)
- Thanks, I have requested it on Template_talk:Archive#Template-protected_edit_request_on_5_September_2020. Vpab15 (talk) 11:18, 5 September 2020 (UTC)
Template-protected edit request on 17 September 2020
To add the banner function from Template:Archive banner following the Aug 10th discussion to merge the templates. I added it in the sandbox and is the current version which I believe works without causing any issues.
By giving the ‘banner’ parameter any value it changes it to the same functionality of the Template:Archive banner. Terasail II[Talk] 22:35, 17 September 2020 (UTC)
- You just copied archive banners code and put in a switch? I think the better approach would be to improve the current
|large=
version so it becomes basically identical. The large version comes from archive box collapsible which didn't use image or search making the formatting suboptimal when using those options. --Trialpears (talk) 22:48, 17 September 2020 (UTC) - Not done for now: please establish a consensus for this alteration before using the
{{edit template-protected}}
template. – Jonesey95 (talk) 23:31, 17 September 2020 (UTC)- Also Terasail II, please don't paste code blobs and demos into the talk page. Use the sandbox for your proposed code changes, and the testcases page to demonstrate; more at WP:TESTCASES. This will keep the talk page focused on the actual discussion. --Redrose64 🌹 (talk) 09:39, 18 September 2020 (UTC)
Archive banner addition
I have changed the large parameter to a banner parameter and then altered parts of the template in order to give the same appearance as the Template:Archive banner. They are not identical. I have chekced and I think it works fine however some parameters such as search-width will not do anything if it is in banner mode as well as bypassing the long switch for the Archives list to just a numbered horizontal list. I did also have to remove the class="mbox-text" from the header cell in banner mode becuase it was stopping the formatting and since I don't know what that does it might break something? It is at the bottom of the Template:Archives/testcases. Just wondering peoples oppinions on this and if it is all good before I request for it to be added to the main code again. Terasail[Talk] 20:38, 18 September 2020 (UTC)