Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Anchor: Difference between revisions

Template page
imported>Flozi
No edit summary
imported>Flozi
Undo revision 31203 by Flozi (talk)
Line 1: Line 1:
<span id="{{{1|{{{anchor}}}}}}">{{{1|}}}</span><noinclude>
<span id="{{{1|{{{anchor}}}}}}"></span><noinclude>


A small template to manually create an anchor link, see http://meta.wikimedia.org/wiki/Template:Anchor
A small template to manually create an anchor link, see http://meta.wikimedia.org/wiki/Template:Anchor
Line 6: Line 6:


<pre>{{anchor|foo}}</pre>
<pre>{{anchor|foo}}</pre>
<pre>{{anchor|foo|bar}}</pre>


Creates an invisible anchor which you can link to within the page as <pre>[[#foo]]</pre> or externally by <pre>[[page_name#foo]]</pre>
Creates an invisible anchor which you can link to within the page as <pre>[[#foo]]</pre> or externally by <pre>[[page_name#foo]]</pre>

Revision as of 17:27, 28 March 2020

A small template to manually create an anchor link, see http://meta.wikimedia.org/wiki/Template:Anchor

Usage:

{{anchor|foo}}

Creates an invisible anchor which you can link to within the page as

[[#foo]]

or externally by

[[page_name#foo]]