Template:Anchor: Difference between revisions

m
45 revisions imported from templatewiki:Template:Anchor
(more docs)
m (45 revisions imported from templatewiki:Template:Anchor)
 
(29 intermediate revisions by 19 users not shown)
Line 1:
<span id="{{{1{{|anchorsafesubst:}}}"/>#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. -->
 
{{En-WP attribution notice|Template:Anchor}}
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>