Template talk:TOC right
This is the talk page for discussing improvements to the TOC right template. |
|
Archives: 1 |
![]() | Template:TOC right 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 template (Wikipedia:Templates_for_deletion/TOCright) was considered for deletion on 4 July 2005. The result of the discussion was "Keep (no consensus)". |
![]() | Text has been copied to or from this page; see the list below. The source pages now serve to provide attribution for the content in the destination pages and must not be deleted as long as the copies exist. For attribution and to access older versions of the copied text, please see the history links below.
|
did something change?
[edit]no just hurry up On my talk page the {{TOCright}} used to perfectly align with the horizontal rule of the first section. Something's changed recently though and it no longer does and I was hoping anybody could help me out? — pd_THOR | =/\= | 00:05, 7 October 2009 (UTC)
Propose adding height parameter
[edit]A height parameter could be added to this and similar TOCs that would mitigate/eliminate the need for the limit parameter. The advantage of this approach is that no TOC items are lost.
<div style=" width:{{#if:{{{width}}}|{{{width|auto}}}|auto}}; font-size:{{#if:{{{font-size}}}|{{{font-size|96%}}}|96%}}; float: right; margin-left: 10px; margin-bottom: 10px; padding: 4px; border: {{#if:{{{border-width}}}|{{{border-width|0px}}}|0px}} solid {{#if:{{{border-color}}}|{{{border-color|steelblue}}}|steelblue}}; height:{{#if:{{{height}}}|{{{height|500px}}}|500px}}; overflow: auto; overflow-x:hidden">{{TOCright}}</div><noinclude> ;Optional paramaters |width= |height= |font-size= |border-width= |border-color= ;Defaults |width=auto - can be % or px |height=500px - about 25 lines |font-size=96% - can be px |border-width=0px |border-color=steelblue - can be # or name </noinclude> --RichardF (talk) 21:21, 20 July 2012 (UTC)
- The above editor added thirty blank talk sections and a live TOCright to illustrate this. I've cut it so as not to disrupt the talk page, but it can be viewed here. --McGeddon (talk) 08:46, 13 September 2013 (UTC)
Appearance on mobile
[edit]This template doesn't look right on mobile (specifically Naked Browser on Android 4.4, if that matters). It almost disappears, but it leaves behind an ugly space that can't be removed by editing the article without removing the template. For example see List of free ports. Hairy Dude (talk) 01:27, 26 September 2014 (UTC)
![]() | This edit request to Template:TOC right/styles.css has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Me too on a Android 7.0 browser. To fix that, I suggest add the following rule for fix:
@media all and (max-width:720px) {
.tocright {
display:none;
}
}
--Great Brightstar (talk) 08:38, 5 April 2021 (UTC)
- To editor Great Brightstar: that is not Wikimarkup, which this template still uses. Please place code in the sandbox to do what you want it to do. P.I. Ellsworth ed. put'r there 16:09, 5 April 2021 (UTC)
- OK, this is made for Template:TOC right/styles.css, and now you can see the effects on the test cases. -- Great Brightstar (talk) 05:58, 6 April 2021 (UTC)
- @Great Brightstar: OK, what am I missing here? I'm not seeing anything different between production test cases and sandbox test cases - is the only expect impact on end of life browsers? — xaosflux Talk 14:02, 6 April 2021 (UTC)
- @Xaosflux: No, not for end of life browsers, but if you don't know how to produce them, you can open both test cases in this online utility, make sure you're seeing mobile version of these pages, then you can see the effect on iPhone screen emulator. -- Great Brightstar (talk) 14:10, 6 April 2021 (UTC)
Done I amended this a bit as you were off by one on the width and you should be targetting Minerva only. Otherwise all good! User:GKFXtalk 20:50, 15 April 2021 (UTC)
Yes, thank you. BTW can you make similar fix to {{TOC left}}? There is also a report for this problem at Template talk:TOC left. -- Great Brightstar (talk) 02:48, 16 April 2021 (UTC)
Creating blank space
[edit]Suddenly today pages like Aether and Leeds (disambiguation) have a lot of blank space. What's up? Also mentioned it at Wikipedia talk:WikiProject Disambiguation. PamD 18:08, 12 November 2015 (UTC)
- See Wikipedia:Village_pump_(technical)#TOC_problem. PamD 18:26, 12 November 2015 (UTC) Redirected link to archive. Hairy Dude (talk) 04:53, 1 December 2015 (UTC)
- Its fixed now but please test it thoroughly in future before applying it to live Wiki website. Thanks! Maok3 (talk) 22:16, 12 November 2015 (UTC)
Fully protected edit request on 30 March 2017
[edit]![]() | This edit request to Template:TOCright has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
A protected redirect, Template:TOCright, needs redirect category (rcat) templates added. Please modify it as follows:
- from this:
#REDIRECT [[Template:TOC right]]
- to this:
#REDIRECT [[Template:TOC right]] {{Redirect category shell|{{R from move}}{{R from modification}}{{R from template shortcut}}}}
- WHEN YOU COPY & PASTE, PLEASE LEAVE THE SKIPPED LINE BLANK FOR READABILITY.
The {{Redirect category shell}} template is used to sort redirects into one or more categories. When {{pp-protected}} and/or {{pp-move}} suffice, the Redirect category shell template will detect the protection level(s) and categorize the redirect automatically. (Also, the categories will be automatically removed or changed when and if protection is lifted, raised or lowered.) Thank you in advance! Paine Ellsworth put'r there 21:14, 30 March 2017 (UTC)
Not done: The page's protection level has changed since this request was placed. You should now be able to edit the page yourself. If you still seem to be unable to, please reopen the request with further details. Jo-Jo Eumerus (talk, contributions) 22:03, 30 March 2017 (UTC)
- Thank you very much, Jo-Jo Eumerus! Paine Ellsworth put'r there 02:10, 31 March 2017 (UTC)
Revert last edit
[edit]![]() | This edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
This edit breaks Wikipedia:Book sources and should be reverted until this bug is fixed.--Srleffler (talk) 18:24, 31 December 2018 (UTC)
- Pinging TheDJ, who made the edit and submitted the bug. – Jonesey95 (talk) 18:52, 31 December 2018 (UTC)
- Jonesey95, no it shouldn't it's a cosmetic detail on a single page, for which we shouldn't stop the rest of the encyclopedia from progressing. —TheDJ (talk • contribs) 19:29, 31 December 2018 (UTC)
Not done for now: Merits additional discussion about whether this change, which stopped the template from working on one page, has more benefit than cost. – Jonesey95 (talk) 21:17, 31 December 2018 (UTC)
- What is the benefit of this change? Does it actually improve the appearance or function of the template, or is it just some effort to standardize how things work "under the hood"? The template worked fine before. I see no downside in reverting to the version that worked fine until the bug is fixed. The cost is not merely cosmetic: it makes the ISBN lookup feature hard to use—especially for newer readers—by burying the links to the actual sources beneath four screens of TOC. This doesn't just affect the master "book sources" page. It affects every attempt by a reader to look up a book by ISBN.--Srleffler (talk) 22:05, 31 December 2018 (UTC)
- @Srleffler: how about just turning off TOC there if noone is using it? — xaosflux Talk 00:35, 2 January 2019 (UTC)
- I tried editing that page to produce the effect of TOC right without calling the current version of the template, but Izno reverted me. I assume eliminating the TOC altogether would have been even more controversial. Bypassing the malfunctioning template on the page where it malfunctions seemed like the obvious solution to me, but apparently Izno felt otherwise. I don't understand his thinking, so I'm holding off on further edits to that page for now, hoping that other editors will get involved so we have more of a consensus.--Srleffler (talk) 03:15, 2 January 2019 (UTC)
Does not work on mobile
[edit]Toc shows up on right but blank field in the left; i.e the toc pushes down all text Erentar2002 (talk) 00:01, 10 October 2019 (UTC)
Template-protected edit request on 14 January 2020
[edit]![](http://upload.wikimedia.org/wikipedia/commons/thumb/e/ea/Purple_arrow_down.svg/20px-Purple_arrow_down.svg.png)
![]() | This edit request to Template:TOC right/styles.css has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
There is something wrong:
Before | After |
.tocright {
float: right;
clear: right;
width: auto;
background: none;
padding: .5em 0 .8em 1.4em;
margin-bottom: .5em;
}
|
.tocright {
float: right;
width: auto;
background: none;
padding: .5em 0 .8em 1.4em;
margin-bottom: .5em;
}
|
Keyacom (talk) 15:16, 14 January 2020 (UTC)
Not done - it is not clear what the change you would make, were this page not protected, is - please be very clear as in "change X on line n to Y". — xaosflux Talk 15:20, 14 January 2020 (UTC)
- I don't think that's quite the right response here; the change is obvious. The rationale for the change is not, and so it should be declined for that reason. --Izno (talk) 21:01, 16 January 2020 (UTC)
- I took that to be examples of some sort of result, not of the actual change (I didn't spend very long on it);nonetheless, agree needs more explanation at least. — xaosflux Talk 21:27, 16 January 2020 (UTC)
- I don't think that's quite the right response here; the change is obvious. The rationale for the change is not, and so it should be declined for that reason. --Izno (talk) 21:01, 16 January 2020 (UTC)
Syntaxhighlight makes the TOC links unclickable
[edit]<syntaxhighlight> makes lhe TOC links next to it unclickable, see e.g. Wikipedia:User scripts/Guide or Wikipedia:WikiProject Check Wikipedia/Translation and try to click the TOC links that have syntaxhighlight next to them on left side. 87.95.206.253 (talk) 22:14, 15 January 2021 (UTC)
- This was quickly fixed. Now they seem to work again. Not sure but it seems that the most recent MediaWiki update fixed it. 87.95.206.253 (talk) 15:40, 29 January 2021 (UTC)
Template broken?
[edit]Did something just change that broke the functionality of {{TOC right}} on my talk page? wbm1058 (talk) 14:49, 11 January 2022 (UTC)
- @Wbm1058: it looks fine, but some absurdly long section titles just forced it to expand, I zapped these for you here (feel free to revert of course!). — xaosflux Talk 15:04, 11 January 2022 (UTC)
- Thanks. Funny I didn't notice the problem a week ago. I just noticed it this morning. Go figure. wbm1058 (talk) 15:07, 11 January 2022 (UTC)
Redundant?
[edit]The default view of displays the t.o.c. on the left and this template has no effect. Shouldn't this be deprecated? Iterresise (talk) 06:27, 13 September 2023 (UTC)
Start a discussion about improving the Template:TOC right page
Talk pages are where people discuss how to make content on Wikipedia the best that it can be. You can use this page to start a discussion with others about how to improve the "Template:TOC right" page.