Template talk:Archive-nav
From Wikipedia, the free encyclopedia
Contents |
[edit] Truncating
Is there any way to truncate this template on the last archive, so a redlink to a nonexistant archive doesn't appear? /Blaxthos 21:12, 7 October 2006 (UTC)
- No, it's an bug in {{#ifexist}} that is that it cant handle sub-pages. →AzaToth 21:15, 7 October 2006 (UTC)
I've never coded for wiki* or anything, so maybe this is a silly suggestion, but how about just adding a boolean 3rd arg, when set to 1 (or present at all) it supresses the redlink'd archive page (Archive+1). /Blaxthos 21:23, 7 October 2006 (UTC)
- I think having the redlink is useful; it shows people where to put the next archive, it makes sure they call it "Archive 3" rather than "archive 3", "Archive3", "Archive/3" or something like that - because if they did, the link wouldn't work – Gurch 09:23, 12 October 2006 (UTC)
I'm a bit tired at the moment, and can't understand the code I wrote, but I did the above in {{Log}}. It might or might not work here if somebody wants to try it! --kingboyk 00:23, 6 March 2007 (UTC)
- On second thoughts, I think for human edited pages like this is used on, the red link is handy. --kingboyk 19:58, 6 April 2007 (UTC)
[edit] Problem?
I recently created User_talk:Carcharoth/Archive_7, which displays the archive pages at the top fine, but the previous page, User_talk:Carcharoth/Archive_6, doesn't have the link to Archive 7. What is going on? Carcharoth 02:18, 11 December 2006 (UTC)
- I see a link to 07 just after "Archive 06". Looks to be working from here. /Blaxthos 02:21, 11 December 2006 (UTC)
- That was weird. I clicked 'edit this page' for the Archive 6 page, entered 'null edit' in the edit summary box, then clicked save. The archive template now works, but the null edit doesn't appear in the history (I didn't change anything). Maybe Wikipedia:Null edit? Carcharoth 02:23, 11 December 2006 (UTC)
- Bingo. It was a template caching/job queue problem. The null edit jumped the template update to the front of the job queue. I think. Carcharoth 02:24, 11 December 2006 (UTC)
- This is not a bug or defect. null edits are still needed sometime to place a specific page in front of a long job queue, because pages using templates may take some long time to be purged from the cache if the template or links that they use are modified (remember that a template or link reference may need purging many pages from the cache and, depending on the current server load, this may take significant time. Such cache purge is queued becauseit would take too much ressource on the server if all dependencies were updated in real time each time a linked page is added or a dependant template is updated.
- Null edits are however still needed for pages that include templates inserting categories for the embedding page, if these generated categories are modified (an explicit "purge" action does not alter existing categories immediately, and this make take hours or days for the categories of the embedding page to be updated).
- When you save a page without editing it, it is normal that nothing appears in the history, because there was no diff to place in the history. However, it has the immediate effect of recomputing the categories for the null-edit saved page... verdy_p 22:54, 2 January 2007 (UTC)
[edit] design
I made the change to enable a dynamic list of up to 20 pages, instead of the older static display of three fixed pages. Any problem? →AzaToth 23:22, 2 January 2007 (UTC)
[edit] Category talk
Have I done something wrong, or is this broken on category talk pages? Please see:
- Category talk:Administrators open to recall/Archive 1
- Category talk:Administrators open to recall/Archive 2
--kingboyk 19:57, 6 April 2007 (UTC)
[edit] Added feature
As some old archives were named incorrectly (e.g. "archive2" instead of "Archive 2"), I have added the possibility to use custom pagenames with optional "prev" and "next" fields. I suppose no bugs should result from this. Súrendil 18:26, 7 September 2007 (UTC)