Template:Anchor: Difference between revisions

323 bytes removed ,  2 years ago
m
1 revision imported from wikipedia:Template:Anchor
(more docs)
m (1 revision imported from wikipedia:Template:Anchor)
 
(31 intermediate revisions by 21 users not shown)
Line 1:
<span id="{{{1|<includeonly>safesubst:</includeonly>#invoke:anchor|main}}}"/><noinclude>
{{Documentation}}
This template manually adds an [[HTML element#Links and anchors|HTML anchor]] to a page at the location of its invocation.
<!-- Categories go on the /doc subpage, and interwikis go on Wikidata. -->
 
Usage:
<pre>{{anchor|foo}}</pre>
 
With this you can link to <nowiki>[[Page#foo]]</nowiki> to have people following the link arrive at the anchor location.
 
[[Category:Function templates|{{PAGENAME}}]]
 
[[de:Vorlage:Anker]]
<!--[[en:Template:Anchor]]-->
[[fr:Modèle:Ancre]]
[[ru:Шаблон:Anchor]]
[[sl:Predloga:Sidro]]
</noinclude>