Template:Anchor/doc: Difference between revisions

From DynamicPageList3 Manual
Content added Content deleted
(+TR)
Line 1: Line 1:
{{Documentation subpage}}
{{doc/start}}
<!-- 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 ==
== Usage ==
<nowiki>{{</nowiki>Anchor|''Anchor ID''}}
{{T|style=code|Anchor|Anchor ID|...}}


* ''Anchor ID'' is the text after the # character that you would like to be used in a link.
* ''Anchor ID'' is the text after the # character that you would like to be used in a link.
Line 11: Line 13:
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.
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.


== Examples ==
<noinclude>
* <pre>{{Anchor|foo|bar|baz}}</pre>{{#tag:syntaxhighlight|{{Anchor|foo|bar|baz}}|lang="html"}}

<includeonly>
<!-- Template categories/interwikis here -->
[[Category:Templates]]
[[tr:Şablon:Çengel]]
</includeonly><noinclude>
<!-- Documentation categories/interwikis here -->
[[tr:Şablon:Çengel/belge]]
[[tr:Şablon:Çengel/belge]]
</noinclude>
</noinclude>
{{doc/end}}

Revision as of 14:16, 16 May 2021

This is the documentation page, it should be transcluded into the main template page. See Template:Documentation for more information

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.

Examples

  • {{Anchor|foo|bar|baz}}
    {{#fornumargs:|v|<span id="&#123;&#123;#var:v&#125;&#125;"></span>}}
    


tr:Şablon:Çengel/belge