Szablon:Anchor Wyświetl historię

Wersja z dnia 07:06, 20 cze 2016 autorstwa Wottem (dyskusja | edycje) (9 wersji)
(różn.) ← poprzednia wersja | przejdź do aktualnej wersji (różn.) | następna wersja → (różn.)


Documentation icon Template documentation[view] [edit] [history] [purge]

This template creates a point on a page that can be linked from other pages. It works like the section headings without being displayed on the screen.

Use

Place the following example code on a page in the spot to which you need to link:

{{Anchor|Name for the link on the page}}

Then from another page you can enter the code:

[[PageNameWithNewAnchor#Name for the link on the page]]

or if it is on the current page you can alternately use:

[[#Name for the link on the page]]

Note that both entries can also use the pipe character (|) to display alternate text to the user instead of the actual link name.

Parameters

There is a minimum of one parameter that must be included in the template. Additional links can be defined as additional text parameters separated by the pipe character (|) like the following:

{{Anchor|First link name|Second link name|Third link name}}

Limitations

  • Only 10 named links can be added to one anchor template.
  • Placement of the anchor template in section headings has some known side effects discussed in the Wikipedia anchor template talk page. The significant issues is that the summary description from editing sections have a broken link. However, if you do edit the section you can just remove that portion of the edt summary. Therefore it is considered acceptable to include the anchor template at the beginning of the text in a section heading.
The above documentation is transcluded from Szablon:Anchor/doc.
Please add categories to the /doc subpage.
Subpages of this template.