Jump to content

Template talk:TOC right

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

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)[reply]

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)[reply]

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)[reply]

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)[reply]

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)[reply]

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)[reply]
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)[reply]
@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)[reply]
@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)[reply]
 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)[reply]
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)[reply]

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)[reply]

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)[reply]
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)[reply]

Fully protected edit request on 30 March 2017

[edit]

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)[reply]

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)[reply]
Thank you very much, Jo-Jo Eumerus!  Paine Ellsworth  put'r there  02:10, 31 March 2017 (UTC)[reply]

Revert last edit

[edit]

This edit breaks Wikipedia:Book sources and should be reverted until this bug is fixed.--Srleffler (talk) 18:24, 31 December 2018 (UTC)[reply]

Pinging TheDJ, who made the edit and submitted the bug. – Jonesey95 (talk) 18:52, 31 December 2018 (UTC)[reply]
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 (talkcontribs) 19:29, 31 December 2018 (UTC)[reply]
 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)[reply]
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)[reply]
@Srleffler: how about just turning off TOC there if noone is using it? — xaosflux Talk 00:35, 2 January 2019 (UTC)[reply]
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)[reply]

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)[reply]

Template-protected edit request on 14 January 2020

[edit]

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)[reply]

 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)[reply]
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)[reply]
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)[reply]
[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)[reply]

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)[reply]

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)[reply]

@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)[reply]
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)[reply]

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)[reply]