Template:Anchor: Difference between revisions

From DynamicPageList3 Manual
Content added Content deleted
(Created page with "<includeonly><div id="{{anchorencode:{{{1|}}}}}"></div></includeonly><noinclude>{{doc}} Category:Templates el:Πρότυπο:Anchor</noinclude>")
 
imported>FrozenPlum
m (4 revisions imported)
 
(3 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<includeonly><div id="{{anchorencode:{{{1|}}}}}"></div></includeonly><noinclude>{{doc}}
<onlyinclude><includeonly>{{#fornumargs:|v|<span id="{{anchorencode:{{#var:v}}}}"></span>}}</includeonly></onlyinclude>
{{Documentation}}

[[Category:Templates]]

[[el:Πρότυπο:Anchor]]</noinclude>

Latest revision as of 02:08, 29 March 2022

[view | edit | purge]Template Documentation

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="&#123;&#123;#var:v&#125;&#125;"></span>}}
    
[view | edit | purge]The above documentation is transcluded from Template:Anchor/doc.