Template:Anchor/doc: Difference between revisions
From Portals of Phereon Wiki
Content added Content deleted
portalsofphereon>Olaroll (Created page with "This template manually adds one or more HTML anchors (i.e., link targets) to a page. This allows incoming links to target locations on the page other than section headings. ...") |
m (1 revision imported) |
||
Line 1:
{{doc/start}}
Anchors are "jump points". Place them somewhere on a page and you will be able to link to that section of the page directly. Without the use of ==sections/headings/titles==.
==Usage==
<nowiki>{{</nowiki>Anchor|''Anchor ID''}}
*''Anchor ID'' is the text after the # character that you would like to be used in a link.
*These anchors are invisible.
==How to link to anchors==
As an example, if you placed <nowiki>{{</nowiki>Anchor|Foo}} on the [[Sandbox]] page, you could use <nowiki>[[</nowiki>Sandbox#Foo]] as a link that jumps to it.
{{doc/end}}
|
Revision as of 12:34, 1 December 2019
Anchors are "jump points". Place them somewhere on a page and you will be able to link to that section of the page directly. Without the use of ==sections/headings/titles==.
Usage
{{Anchor|Anchor ID}}
- Anchor ID is the text after the # character that you would like to be used in a link.
- These anchors are invisible.
How to link to anchors
As an example, if you placed {{Anchor|Foo}} on the Sandbox page, you could use [[Sandbox#Foo]] as a link that jumps to it.