Template:Anchor/doc: Difference between revisions
Jump to navigation
Jump to search
(Created page) |
Dung Eater (talk | contribs) (thnx mario wiki) |
||
| (One intermediate revision by one other user not shown) | |||
| Line 5: | Line 5: | ||
Avoid using this template within section headings, as doing so breaks automatic section linking in edit summaries. | Avoid using this template within section headings, as doing so breaks automatic section linking in edit summaries. | ||
Also the ID is case sensitive. | |||
== Example == | == Example == | ||
| Line 18: | Line 20: | ||
== Showcase == | == Showcase == | ||
Here an example will link to the anchor on the engineer's page: [[The Engineer#Example]] | Here an example will link to the rick roll anchor on the engineer's page: [[The Engineer#Example]] | ||
== Credits == | == Credits == | ||
I stole this from the mario wiki: https://www.mariowiki.com/Template:Anchor | I stole this from the mario wiki: https://www.mariowiki.com/Template:Anchor | ||
<br>Thnx mario wiki | |||
Latest revision as of 19:05, 1 November 2026
This template inserts an invisible HTML anchor onto a page, enabling direct links to a specific location without requiring a section header.
Usage
Specify the unique anchor ID as the first parameter. An optional second parameter allows you to display visible text at the anchor point.
Avoid using this template within section headings, as doing so breaks automatic section linking in edit summaries.
Also the ID is case sensitive.
Example
| Description | Input | Output |
|---|---|---|
| With visible text | {{anchor|ID|This text is anchored}}
|
This text is anchored |
Showcase
Here an example will link to the rick roll anchor on the engineer's page: The Engineer
Credits
I stole this from the mario wiki: https://www.mariowiki.com/Template:Anchor
Thnx mario wiki