Template:Anchor comment
This template should always be substituted – use {{subst:Anchor comment}}. |
This template adds a wikitext comment to explain the use of {{anchor}}.
Usage
{{subst:Anchor comment}}
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 Template:Anchor for more details.
Example
This
{{subst: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:
<span class="anchor" id="Polysulfide_shuttle"></span><span class="anchor" id="Polysulfide_"></span><span class="anchor" id="Polysulfide shuttle"></span>
<!-- 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
| Template | Shortcut | Result |
|---|---|---|
| {{Shortcut}} | {{Sh}}
|
|
| {{Shortcut compact}} | {{Hsh}}
|
|
| {{Shortcut mini}} | {{Msh}}
|
WP:THIS 📌 |
| {{Template shortcut}} | {{Tsh}}
|
|
| {{Template redirect}} | {{Tlr}}
|
|
| {{Short URL box}} | {{Urlb}}
|
|
| {{Shortcut-style further links}} | {{Msh}}
|
- {{Anchor}} – Creates an HTML anchor that can be linked to
- {{Visible anchor}} – Highlights the linked text, like this.
- {{Section link}} – Link to an anchor or section
- {{R for convenience}} – For placement on the redirect page
- {{R from shortcut}} – For shortcut boxes
- {{R to redirect template}} – For template redirects
Content Disclaimer
Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.
- The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
- There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
- It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
- Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
- Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.