Predloga:Skoči na dno/dok

Iz Wikipedije, proste enciklopedije

Adds a small floating box in the upper-right corner of the page, with "skip to bottom" and "skip to TOC" 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.

Usage[uredi kodo]

  • {{Skip to bottom}}

Table of Contents link

Use {{Skip to bottom|notoc=yes}} 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 |abs=no below.

Parameters[uredi kodo]

CSS box model showing top margin

All parameters are optional; in the typical case, leave them out.

  • |notoc=yes – do not include the Table of Contents link (default: TOC link is included)
  • |force=yes – reduce top margin of the box by 2 em. (default: top margin is 1 em)
  • |abs=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 {{skip to bottom|force=yes}} 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.

Predloga:Skip templates