Template:Anchor: Difference between revisions

323 bytes removed ,  1 month ago
m
1 revision imported
Enwikipedia>BenB4
(more docs)
m (1 revision imported)
 
(29 intermediate revisions by 20 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>