Template: Anchor

(util template)
 
No edit summary
Line 1: Line 1:
<span id="{{{1}}}">{{{2|}}}</span><noinclude>This is a copy of [[meta:Template:Section]]</noinclude>
<span id="{{{1}}}">{{{2|}}}</span><noinclude>
Create a URL anchor. For example, to make a neater link to a page section:
 
<syntaxhighlight>
== Lorem ipsum {{anchor|lorem}} ==
</syntaxhighlight>
 
This can then be liked via e.g. <code><nowiki>https://example.org/wiki/Example_Page#lorem</nowiki></code>
 
This is a copy of [[meta:Template:Section]].</noinclude>

Revision as of 04:40, 22 March 2022

Create a URL anchor. For example, to make a neater link to a page section:

== Lorem ipsum {{anchor|lorem}} ==

This can then be liked via e.g. https://example.org/wiki/Example_Page#lorem

This is a copy of meta:Template:Section.

Discuss this page