Template:Skip to bottom/doc

Adds a small floating box in the upper-right corner of the page, with "Skip to TOC" and "Skip to bottom" links. May be placed on Talk pages (or other non-article pages) when appropriate. This usually means pages in the "Talk:", Wikipedia:" and "Help:" namespaces.

Note: Since the Vector 2022 skin has a sticky table of contents (either in the sidebar, or collapsed into the header), that link is unnecessary and has no effect there. Therefore "Skip to TOC" is hidden when using Vector 2022.

Usage


Table of Contents link

Use to place the "Skip to bottom" link without the "Skip to TOC" link.

Box position

The box normally appears top right on the page, about even with the phrase "From Wikipedia, the free encyclopedia", just below the separator line. Parameter force is available to adjust this.

By default, the box appears top right, no matter where you place the template in the code, using CSS absolute positioning. This can be overridden; see no below.

Parameters
All parameters are optional; in the typical case, leave them out.
 * yes – do not include the Table of Contents link (default: TOC link is included)
 * yes – reduce top margin of the box by 2 em. (default: top margin is 1 em)
 * no – render the box at the point where the template is transcluded (default: place the box at the absolute top right of the page, no matter where in the code the template appears)
 * absolute this is an alias of the parameter 'abs'

Note about param 'force'

The box position originally was right at the very top of the article, so the box is on the same line as the title. The problem with this is that, on longer named article titles, the box would end up "parking" over them, which would obscure part of the article's title. If this template is transcluded by an article with a very short title, (less than about 20 characters including any prefixes like template:)  and you think it is appropriate to place this box on the title line, then you may use  which will force the box on the same position as the article's title. Please do not use |force=yes unless you have checked how the page will look in other skins and devices, including narrow viewers like mobile devices. If in doubt, leave it out.