Difference between revisions of "Template:Anchor comment"
blackwiki>Paine Ellsworth (clarify) |
blackwiki>Paine Ellsworth m (strengthen) |
||
| Line 1: | Line 1: | ||
| − | <!-- This Anchor tag serves to provide a permanent target for incoming section links. Please do not move it out of the section heading, even though it disrupts edit summary generation (you can manually fix the edit summary before | + | <!-- This Anchor tag serves to provide a permanent target for incoming section links. Please do not move it out of the section heading, even though it disrupts edit summary generation (you can manually fix the edit summary before you save your changes). Please do not modify it, even if you modify the section title. It is always best to anchor an old section header that has been changed so that links to it won't be broken. See [[Template:Anchor]] for details. (This text: [[Template:Anchor comment]]) --><noinclude> |
{{Documentation}} | {{Documentation}} | ||
</noinclude> | </noinclude> | ||
Revision as of 21:54, 7 December 2013
Contents
Result
<!-- 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}} -->
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:
{{Anchor|(first anchor)|(second anchor)|(and so on)}}
See the Anchor template for more details.
Example
This
{{Anchor|Polysulfide_shuttle|Polysulfide_|Polysulfide shuttle}}
{{subst:Anchor comment}} <!-- Second anchor makes (defective) link from https://arstechnica.com/science/2020/01/will-lithium-sulfur-batteries-be-in-our-future/ work.-->
inserts the following:
{{Anchor|Polysulfide_shuttle|Polysulfide_|Polysulfide shuttle}}
<!-- 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}} --><!-- Second anchor makes (defective) link from https://arstechnica.com/science/2020/01/will-lithium-sulfur-batteries-be-in-our-future/ work.-->
See also
- {{Visible anchor}}
| The above documentation is transcluded from Template:Anchor comment/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |