Template:Anchor comment/doc
![]() | This is a documentation subpage for Template:Anchor comment. It may contain usage information, categories and other content that is not part of the original template page. |
![]() | This template should always be substituted (i.e., use {{subst:Anchor comment}} ). |
__EXPECTUNUSEDTEMPLATE__
Result
<syntaxhighlight lang="wikitext"></syntaxhighlight>
Usage
Substitute this template immediately beneath any anchor or section heading that contains an in-line {{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 {{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:
<syntaxhighlight lang="wikitext"> </syntaxhighlight> See the Template:Anchor for more details.
Example
This
<syntaxhighlight lang="wikitext">{{subst:Anchor|Polysulfide_shuttle|Polysulfide_|Polysulfide shuttle}} {{subst:Anchor comment}} </syntaxhighlight>
inserts the following:
<syntaxhighlight lang="wikitext"> </syntaxhighlight>
See also
- {{Visible anchor}}