Template:Anchor: Difference between revisions
Content added Content deleted
(+TR) |
(Use Extension:Loops) |
||
Line 1: | Line 1: | ||
<includeonly>< |
<onlyinclude><includeonly>{{#fornumargs:|v|<span id="{{anchorencode:{{#var:v}}}}"></span>}}</includeonly></onlyinclude> |
||
{{ |
{{Documentation}} |
||
[[Category:Templates]] |
|||
[[tr:Şablon:Çengel]]</noinclude> |
Revision as of 14:17, 16 May 2021
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 a sandbox page, you could use [[Sandbox#Foo]] as a link that jumps to it.
Examples
{{Anchor|foo|bar|baz}}
{{#fornumargs:|v|<span id="{{#var:v}}"></span>}}
[view | edit | purge]The above documentation is transcluded from Template:Anchor/doc.