Template:Anchor/doc: Difference between revisions
Content deleted Content added
Created page with "{{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/headin..." |
imported>FrozenPlum m Undo revision 1163 wrong window for category, oops |
||
(5 intermediate revisions by 3 users not shown) | |||
Line 1:
{{Documentation subpage}}
<!-- Documentation here -->
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==.▼
▲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''}}▼
▲== Usage ==
*''Anchor ID'' is the text after the # character that you would like to be used in a link.▼
*These anchors are invisible.▼
▲* ''Anchor ID'' is the text after the # character that you would like to be used in a link.
==How to link to anchors==▼
▲* These anchors are invisible.
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.▼
▲== How to link to anchors ==
▲As an example, if you placed <nowiki>{{</nowiki>Anchor|Foo}} on
== Examples ==
* <pre>{{Anchor|foo|bar|baz}}</pre>{{#tag:syntaxhighlight|{{Anchor|foo|bar|baz}}|lang="html"}}
<includeonly>
<!-- Template categories/interwikis here -->
[[Category:Templates]]
</includeonly>
|