Changes

Jump to navigation Jump to search
m
→‎Example: update /doc
{{Documentation subpage}}
{{substituted}}
<!-- Categories go at the bottom of this page and interwikis go to Wikidata. -->
== Example ==
<code><nowiki>&lt;!-- This Anchor tag serves to provide a permanent target for incoming section links. Please do not remove it, nor modify it, except to add another appropriate anchor. If you modify the section title, please anchor the old title. It is always best to anchor an old section header that has been changed so that links to it will not be broken. See [[Template:Anchor]] for details. This template is {{subst:Anchor comment}} --&gt;</nowiki></code>

== Usage ==
[[WP:Substitute|Substitute]] this template immediately beneath any anchor or section heading that contains an in-line {{tl|anchor}} to alert other editors to its purpose.

The reason to use this template underneath section anchors is twofold:
* To prevent editors from moving the {{tl|anchor}} placement in an effort to avoid edit summary obfuscation. Any edit summary can be altered directly while making it to furnish more space for a longer summary;
* To prevent editors from changing the contents of the anchor tag if they change the name of the section, in an assumption that they must continue to match. More anchors may be added to the Anchor template if needed:
<pre>
{{Anchor|(first anchor)|(second anchor)|(and so on)}}
</pre>
See the [[Template:Anchor|Anchor template]] for more details.

== See also ==
* {{tl|Vanchor}}

<includeonly>
<!-- Categories go here and interwikis go to Wikidata -->
[[Category:Template documentation]]
[[Category:Wikipedia formatting and function templates]]
</includeonly>
Anonymous user

Navigation menu