Template talk:Article stub box
This is the talk page for discussing improvements to the Article stub box template. |
|
![]() | This template does not require a rating on Wikipedia's content assessment scale. It is of interest to the following WikiProjects: | |||||||
|
|
||||
This page has archives. Sections older than 31 days may be auto-archived by Lowercase sigmabot III if there are more than 4. |
Related pages |
---|
TemplateStyles breakage
edit@Arbitrarily0 it looks like something broke here, I happened to notice that the template {{ZagrebCity-geo-stub}} started rendering the error:
Page Template:Asbox/styles.css has no content.
Please fix or revert, this is very visible. --Joy (talk) 11:10, 22 January 2025 (UTC)
- I just reverted my move of Template:Asbox/styles.css. Is that what the problem was? Arbitrarily0 (talk) 11:12, 22 January 2025 (UTC)
- Joy, it looks like its fixed now. The problem was either that .css pages can't be redirected, or if they can I don't know how. Arbitrarily0 (talk) 11:22, 22 January 2025 (UTC)
- Arbitrarily0 See below. Peter coxhead (talk) 11:23, 22 January 2025 (UTC)
- Peter coxhead, regardind Nahian's comment below: Is further action needed, since I've already reverted the move of Template:Article stub box/styles.css? Arbitrarily0 (talk) 11:28, 22 January 2025 (UTC)
- Arbitrarily0 It all works at present, but it may be possible to change the name of the template if my comment below is correct. Peter coxhead (talk) 11:31, 22 January 2025 (UTC)
- Peter coxhead, regardind Nahian's comment below: Is further action needed, since I've already reverted the move of Template:Article stub box/styles.css? Arbitrarily0 (talk) 11:28, 22 January 2025 (UTC)
- Arbitrarily0 See below. Peter coxhead (talk) 11:23, 22 January 2025 (UTC)
- Joy, it looks like its fixed now. The problem was either that .css pages can't be redirected, or if they can I don't know how. Arbitrarily0 (talk) 11:22, 22 January 2025 (UTC)
Request for update
editPlease, replace Template:Asbox/styles.css with Template:Article stub box/styles.css in this module. VengeanceTalk 11:10, 22 January 2025 (UTC)
- When Template:Asbox/styles.css was moved to Template:Article stub box/styles.css, the breakage was, as far as I can tell, because Module:Article stub box references 'Asbox/styles.css' at line 14, but there was no redirect. The module also references 'Template:Asbox' at line 13, but Template:Asbox is a redirect, and it seems to be ok. So perhaps if the move left a redirect, and then the module was updated, it would all work? Or maybe .css pages can't be redirected? Peter coxhead (talk) 11:33, 22 January 2025 (UTC)
- Thank you, Peter coxhead. Yes, I'm just not sure if .css pages can be redirected. Of course, we could do a "manual redirect" by moving the content of Asbox/styles.css to the new title (and changing its referent in Module:Article stub box accordingly). But if it's okay with you, let's wait for someone else's opinion here, just to avoid the risking of things breaking again. Arbitrarily0 (talk) 11:37, 22 January 2025 (UTC)
- @Arbitrarily0 I definitely agree to wait! But I do think that duplicating the content to the new title and then updating the module should work. Peter coxhead (talk) 11:40, 22 January 2025 (UTC)
- CSS pages can be redirected, but the technique is completely different. You would use the
@import
rule. But please do not carry out cut-and-paste moves, even for CSS pages, see WP:CUTPASTE. --Redrose64 🌹 (talk) 21:54, 22 January 2025 (UTC)
- CSS pages can be redirected, but the technique is completely different. You would use the
- @Arbitrarily0 I definitely agree to wait! But I do think that duplicating the content to the new title and then updating the module should work. Peter coxhead (talk) 11:40, 22 January 2025 (UTC)
- Thank you, Peter coxhead. Yes, I'm just not sure if .css pages can be redirected. Of course, we could do a "manual redirect" by moving the content of Asbox/styles.css to the new title (and changing its referent in Module:Article stub box accordingly). But if it's okay with you, let's wait for someone else's opinion here, just to avoid the risking of things breaking again. Arbitrarily0 (talk) 11:37, 22 January 2025 (UTC)
I've sorted this. Job queue will take a few days for all of this to be corrected, but issues go away on (null) edit. While it is possible to futz with where a TemplateStyles page is by moving it by hand and then doing a WP:History merge, I have rarely if ever had issues with just moving them and making sure the relevant invoking module/template is correct. Anyway, the TemplateStyles page should have been living under the module name, so I also corrected the final ___location. Izno (talk) 21:11, 22 January 2025 (UTC)
- Thank you, Izno! Arbitrarily0 (talk) 16:44, 23 January 2025 (UTC)
Broken
edit@Peter coxhead and Arbitrarily0: The entire asbox functionality seems to be broken now; no thumbnail images, no subcategories, just the same message for every template. Could this be the result of the changes above? — The Anome (talk) 12:03, 22 January 2025 (UTC)
- It must be because of the move. Looking into it now. Arbitrarily0 (talk) 12:13, 22 January 2025 (UTC)
- @Arbitrarily0 looks like this update of top args in the module was also necessary. I tagged some more instances with comments in case they get normalized later. --Joy (talk) 12:17, 22 January 2025 (UTC)
- You beat me to it, Joy (edit conflict!). Great work. I suspect it is all working properly now. Arbitrarily0 (talk) 12:19, 22 January 2025 (UTC)
- Thank you - that seems to have fixed it. — The Anome (talk) 12:31, 22 January 2025 (UTC)
- You beat me to it, Joy (edit conflict!). Great work. I suspect it is all working properly now. Arbitrarily0 (talk) 12:19, 22 January 2025 (UTC)
- @Arbitrarily0 looks like this update of top args in the module was also necessary. I tagged some more instances with comments in case they get normalized later. --Joy (talk) 12:17, 22 January 2025 (UTC)
Vertical space
editIsn't it excessive? See, e.g., Dynamics_(mechanics)#See_also. fgnievinski (talk) 00:37, 23 February 2025 (UTC)
- @Fgnievinski: This is Template talk:Article stub box#CSS edit request following on from Wikipedia talk:Stub#Replace double-blank-line method with CSS. You get the same gap whether you precede the stub template with one, two or three blank lines - two was the recommendation at WP:STUBSPACING until a couple of months ago. But also per WP:STUBSPACING, the tag is in the wrong place anyway, which I have fixed. --Redrose64 🌹 (talk) 11:19, 23 February 2025 (UTC)
- Thank you for the pointers. Above it was said:
- the space now above the template is IMHO generally excessive to the need
- I'm inclined to agree with you that the current spacing is somewhat excessive, but a separate discussion would be needed to form consensus to change that.
- the space now above the template is IMHO generally excessive to the need
- With that, it's three people pointing out the CSS spacing is excessive: me, @docwatson42, and @User:Mr. Starfleet Command. I suspect the issue arose because stub templates were not always transcluded preceded by two blank lines. fgnievinski (talk) 17:07, 23 February 2025 (UTC)
- I also agree that the spacing is excessive. Arbitrarily0 (talk) 22:00, 23 February 2025 (UTC)
- The spaciing is the same as it had been before, provided that you had followed the placement guidelines and used two blank lines between the categories and the stub template. --Redrose64 🌹 (talk) 22:26, 23 February 2025 (UTC)
- And yet it's still perceived as excessive. Can we at least agree on how many complaints it's necessary to action a change? Ten people would seem a reasonable number. fgnievinski (talk) 12:11, 24 February 2025 (UTC)
- The spaciing is the same as it had been before, provided that you had followed the placement guidelines and used two blank lines between the categories and the stub template. --Redrose64 🌹 (talk) 22:26, 23 February 2025 (UTC)
- I also agree that the spacing is excessive. Arbitrarily0 (talk) 22:00, 23 February 2025 (UTC)
- Thank you for the pointers. Above it was said:
CSS spacing does not work when the Coord template precedes categories
editSee Special:Permalink/1308943116 for example. When the item immediately preceding the categories is the {{Coord}} template, the extra vertical spacing does not show. --Paul_012 (talk) 14:22, 1 September 2025 (UTC)